| 1 | /***************************************************************************** |
|---|
| 2 | * |
|---|
| 3 | * Avi Import Component Resources |
|---|
| 4 | * |
|---|
| 5 | * Copyright(C) 2006 Christoph Naegeli <chn1@mac.com> |
|---|
| 6 | * |
|---|
| 7 | * This library is free software; you can redistribute it and/or |
|---|
| 8 | * modify it under the terms of the GNU Lesser General Public |
|---|
| 9 | * License as published by the Free Software Foundation; either |
|---|
| 10 | * version 2.1 of the License, or (at your option) any later version. |
|---|
| 11 | * |
|---|
| 12 | * This library is distributed in the hope that it will be useful, |
|---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 15 | * Lesser General Public License for more details. |
|---|
| 16 | * |
|---|
| 17 | * You should have received a copy of the GNU Lesser General Public |
|---|
| 18 | * License along with this library; if not, write to the Free Software |
|---|
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 20 | * |
|---|
| 21 | ****************************************************************************/ |
|---|
| 22 | |
|---|
| 23 | #define kChristophManufacturer 'Rafz' |
|---|
| 24 | |
|---|
| 25 | #define thng_RezTemplateVersion 2 |
|---|
| 26 | |
|---|
| 27 | #include "ff_MovieImportVersion.h" |
|---|
| 28 | #include <Carbon/Carbon.r> |
|---|
| 29 | #include <QuickTime/QuickTime.r> |
|---|
| 30 | #undef __CARBON_R__ |
|---|
| 31 | #undef __CORESERVICES_R__ |
|---|
| 32 | #undef __CARBONCORE_R__ |
|---|
| 33 | #undef __COMPONENTS_R__ |
|---|
| 34 | |
|---|
| 35 | #define kFFAvi_MovieImportFlags \ |
|---|
| 36 | ( canMovieImportFiles | canMovieImportInPlace | canMovieImportDataReferences | canMovieImportValidateFile \ |
|---|
| 37 | | canMovieImportValidateDataReferences | canMovieImportWithIdle | hasMovieImportMIMEList \ |
|---|
| 38 | | movieImportMustGetDestinationMediaType | cmpThreadSafe ) |
|---|
| 39 | |
|---|
| 40 | /* Component Manager Things - |
|---|
| 41 | AVI */ |
|---|
| 42 | resource 'thng' (kAVIthngResID) { |
|---|
| 43 | 'eat ', // Type |
|---|
| 44 | 'VfW ', // SubType |
|---|
| 45 | kChristophManufacturer, // Manufacturer |
|---|
| 46 | 0, |
|---|
| 47 | 0, |
|---|
| 48 | 0, |
|---|
| 49 | 0, |
|---|
| 50 | 'STR ', // Name Type |
|---|
| 51 | kAVIthngResID, // Name ID |
|---|
| 52 | 0, // Info Type |
|---|
| 53 | 0, // Info ID |
|---|
| 54 | 0, // Icon Type |
|---|
| 55 | 0, // Icon ID |
|---|
| 56 | kFFAviComponentVersion, // Version |
|---|
| 57 | componentHasMultiplePlatforms + |
|---|
| 58 | componentDoAutoVersion, // Registratin Flags |
|---|
| 59 | 0, // Resource ID of Icon Family |
|---|
| 60 | { |
|---|
| 61 | kFFAvi_MovieImportFlags, |
|---|
| 62 | 'dlle', // Code Resource type |
|---|
| 63 | 512, |
|---|
| 64 | platformIA32NativeEntryPoint, // IA32 |
|---|
| 65 | kFFAvi_MovieImportFlags, |
|---|
| 66 | 'dlle', |
|---|
| 67 | 512, |
|---|
| 68 | platformPowerPCNativeEntryPoint, // PowerPC |
|---|
| 69 | }, |
|---|
| 70 | 'thnr', kAVIthngResID |
|---|
| 71 | }; |
|---|
| 72 | |
|---|
| 73 | resource 'thga' (513) { |
|---|
| 74 | 'eat ', // Type |
|---|
| 75 | 'VFW ', // SubType |
|---|
| 76 | kChristophManufacturer, // Manufacturer |
|---|
| 77 | kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, |
|---|
| 78 | 0, |
|---|
| 79 | 0, |
|---|
| 80 | 0, |
|---|
| 81 | 'STR ', // Name Type |
|---|
| 82 | kAVIthngResID, // Name ID |
|---|
| 83 | 0, // Info Type |
|---|
| 84 | 0, // Info ID |
|---|
| 85 | 0, // Icon Type |
|---|
| 86 | 0, // Icon ID |
|---|
| 87 | // TARGET COMPONENT --------------- |
|---|
| 88 | 'eat ', // Type |
|---|
| 89 | 'VfW ', // SubType |
|---|
| 90 | kChristophManufacturer, // Manufaturer |
|---|
| 91 | 0, // Component Flags |
|---|
| 92 | 0, // Component Flags Mask |
|---|
| 93 | 'thnr', kAVIthngResID, // Component public resource identifier |
|---|
| 94 | cmpAliasOnlyThisFile |
|---|
| 95 | }; |
|---|
| 96 | |
|---|
| 97 | resource 'thga' (514) { |
|---|
| 98 | 'eat ', // Type |
|---|
| 99 | 'AVI ', // SubType |
|---|
| 100 | kChristophManufacturer, // Manufacturer |
|---|
| 101 | kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, |
|---|
| 102 | 0, |
|---|
| 103 | 0, |
|---|
| 104 | 0, |
|---|
| 105 | 'STR ', // Name Type |
|---|
| 106 | kAVIthngResID, // Name ID |
|---|
| 107 | 0, // Info Type |
|---|
| 108 | 0, // Info ID |
|---|
| 109 | 0, // Icon Type |
|---|
| 110 | 0, // Icon ID |
|---|
| 111 | // TARGET COMPONENT --------------- |
|---|
| 112 | 'eat ', // Type |
|---|
| 113 | 'VfW ', // SubType |
|---|
| 114 | kChristophManufacturer, // Manufaturer |
|---|
| 115 | 0, // Component Flags |
|---|
| 116 | 0, // Component Flags Mask |
|---|
| 117 | 'thnr', kAVIthngResID, // Component public resource identifier |
|---|
| 118 | cmpAliasOnlyThisFile |
|---|
| 119 | }; |
|---|
| 120 | |
|---|
| 121 | resource 'thga' (515) { |
|---|
| 122 | 'eat ', // Type |
|---|
| 123 | 'DIVX', // SubType |
|---|
| 124 | kChristophManufacturer, // Manufacturer |
|---|
| 125 | kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, |
|---|
| 126 | 0, |
|---|
| 127 | 0, |
|---|
| 128 | 0, |
|---|
| 129 | 'STR ', // Name Type |
|---|
| 130 | kAVIthngResID, // Name ID |
|---|
| 131 | 0, // Info Type |
|---|
| 132 | 0, // Info ID |
|---|
| 133 | 0, // Icon Type |
|---|
| 134 | 0, // Icon ID |
|---|
| 135 | // TARGET COMPONENT --------------- |
|---|
| 136 | 'eat ', // Type |
|---|
| 137 | 'VfW ', // SubType |
|---|
| 138 | kChristophManufacturer, // Manufaturer |
|---|
| 139 | 0, // Component Flags |
|---|
| 140 | 0, // Component Flags Mask |
|---|
| 141 | 'thnr', kAVIthngResID, // Component public resource identifier |
|---|
| 142 | cmpAliasOnlyThisFile |
|---|
| 143 | }; |
|---|
| 144 | |
|---|
| 145 | resource 'thga' (516) { |
|---|
| 146 | 'eat ', // Type |
|---|
| 147 | 'GVI ', // SubType |
|---|
| 148 | kChristophManufacturer, // Manufacturer |
|---|
| 149 | kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, |
|---|
| 150 | 0, |
|---|
| 151 | 0, |
|---|
| 152 | 0, |
|---|
| 153 | 'STR ', // Name Type |
|---|
| 154 | kAVIthngResID, // Name ID |
|---|
| 155 | 0, // Info Type |
|---|
| 156 | 0, // Info ID |
|---|
| 157 | 0, // Icon Type |
|---|
| 158 | 0, // Icon ID |
|---|
| 159 | // TARGET COMPONENT --------------- |
|---|
| 160 | 'eat ', // Type |
|---|
| 161 | 'VfW ', // SubType |
|---|
| 162 | kChristophManufacturer, // Manufaturer |
|---|
| 163 | 0, // Component Flags |
|---|
| 164 | 0, // Component Flags Mask |
|---|
| 165 | 'thnr', kAVIthngResID, // Component public resource identifier |
|---|
| 166 | cmpAliasOnlyThisFile |
|---|
| 167 | }; |
|---|
| 168 | |
|---|
| 169 | /* Perhaps in a later version, we have to use "QuickTime Media Configuration Resources" */ |
|---|
| 170 | resource 'thnr' (kAVIthngResID) { |
|---|
| 171 | { |
|---|
| 172 | 'mime', 1, 0, |
|---|
| 173 | 'mime', kAVIthngResID, 0, |
|---|
| 174 | } |
|---|
| 175 | }; |
|---|
| 176 | |
|---|
| 177 | resource 'mime' (kAVIthngResID) { |
|---|
| 178 | { |
|---|
| 179 | kMimeInfoMimeTypeTag, 1, "video/x-msvideo"; |
|---|
| 180 | kMimeInfoMimeTypeTag, 2, "video/msvideo"; |
|---|
| 181 | kMimeInfoMimeTypeTag, 3, "video/avi"; |
|---|
| 182 | kMimeInfoFileExtensionTag, 1, "avi"; |
|---|
| 183 | kMimeInfoFileExtensionTag, 2, "avi"; |
|---|
| 184 | kMimeInfoFileExtensionTag, 3, "avi"; |
|---|
| 185 | kMimeInfoDescriptionTag, 1, "XviD Avi Import"; |
|---|
| 186 | kMimeInfoDescriptionTag, 2, "XviD Avi Import"; |
|---|
| 187 | kMimeInfoDescriptionTag, 3, "XviD Avi Import"; |
|---|
| 188 | }; |
|---|
| 189 | }; |
|---|
| 190 | |
|---|
| 191 | resource 'STR ' (kAVIthngResID) { |
|---|
| 192 | "FFAvi Movie Importer" |
|---|
| 193 | }; |
|---|
| 194 | |
|---|
| 195 | |
|---|
| 196 | /* Component Manager Things - |
|---|
| 197 | FLV */ |
|---|
| 198 | resource 'thng' (kFLVthngResID) { |
|---|
| 199 | 'eat ', // Type |
|---|
| 200 | 'FLV ', // SubType |
|---|
| 201 | 'vide', // Manufacturer |
|---|
| 202 | 0, |
|---|
| 203 | 0, |
|---|
| 204 | 0, |
|---|
| 205 | 0, |
|---|
| 206 | 'STR ', // Name Type |
|---|
| 207 | kFLVthngResID, // Name ID |
|---|
| 208 | 0, // Info Type |
|---|
| 209 | 0, // Info ID |
|---|
| 210 | 0, // Icon Type |
|---|
| 211 | 0, // Icon ID |
|---|
| 212 | kFFAviComponentVersion, // Version |
|---|
| 213 | componentHasMultiplePlatforms + |
|---|
| 214 | componentDoAutoVersion, // Registratin Flags |
|---|
| 215 | 0, // Resource ID of Icon Family |
|---|
| 216 | { |
|---|
| 217 | kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, |
|---|
| 218 | 'dlle', // Code Resource type |
|---|
| 219 | 512, |
|---|
| 220 | platformIA32NativeEntryPoint, // IA32 |
|---|
| 221 | kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, |
|---|
| 222 | 'dlle', |
|---|
| 223 | 512, |
|---|
| 224 | platformPowerPCNativeEntryPoint, // PowerPC |
|---|
| 225 | }, |
|---|
| 226 | 'thnr', kFLVthngResID |
|---|
| 227 | }; |
|---|
| 228 | |
|---|
| 229 | resource 'thnr' (kFLVthngResID) { |
|---|
| 230 | { |
|---|
| 231 | 'mime', 1, 0, |
|---|
| 232 | 'mime', kFLVthngResID, 0, |
|---|
| 233 | } |
|---|
| 234 | }; |
|---|
| 235 | |
|---|
| 236 | resource 'mime' (kFLVthngResID) { |
|---|
| 237 | { |
|---|
| 238 | kMimeInfoMimeTypeTag, 1, "video/x-flv"; |
|---|
| 239 | kMimeInfoFileExtensionTag, 1, "flv"; |
|---|
| 240 | kMimeInfoDescriptionTag, 1, "Flash Video"; |
|---|
| 241 | }; |
|---|
| 242 | }; |
|---|
| 243 | |
|---|
| 244 | resource 'STR ' (kFLVthngResID) { |
|---|
| 245 | "Flash Video Importer" |
|---|
| 246 | }; |
|---|
| 247 | |
|---|
| 248 | resource 'dlle' (512) { |
|---|
| 249 | "FFAvi_MovieImportComponentDispatch" |
|---|
| 250 | }; |
|---|