/***************************************************************************** * * Avi Import Component Resources * * Copyright(C) 2006 Christoph Naegeli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ****************************************************************************/ #define kPerianManufacturer 'Peri' #define thng_RezTemplateVersion 2 #include "PerianResourceIDs.h" #include #include #undef __CARBON_R__ #undef __CORESERVICES_R__ #undef __CARBONCORE_R__ #undef __COMPONENTS_R__ #define kAVIthngResID 512 #define kFLVthngResID 515 #define kTTAthngResID 517 #define kNuvthngResID 518 #define kFFAvi_MovieImportFlags \ ( canMovieImportFiles | canMovieImportInPlace | canMovieImportDataReferences | canMovieImportValidateFile \ | canMovieImportValidateDataReferences | canMovieImportWithIdle | hasMovieImportMIMEList \ | movieImportMustGetDestinationMediaType | cmpThreadSafe ) /* Component Manager Things - AVI */ resource 'thng' (kAVIthngResID) { 'eat ', // Type 'VfW ', // SubType kPerianManufacturer, // Manufacturer 0, 0, 0, 0, 'STR ', // Name Type kAVIthngResID, // Name ID 0, // Info Type 0, // Info ID 0, // Icon Type 0, // Icon ID kFFAviComponentVersion, // Version componentHasMultiplePlatforms + componentDoAutoVersion, // Registratin Flags 0, // Resource ID of Icon Family { kFFAvi_MovieImportFlags, 'dlle', // Code Resource type 512, platformIA32NativeEntryPoint, // IA32 kFFAvi_MovieImportFlags, 'dlle', 512, platformPowerPCNativeEntryPoint, // PowerPC }, 'thnr', kAVIthngResID }; resource 'thga' (513) { 'eat ', // Type 'VFW ', // SubType kPerianManufacturer, // Manufacturer kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 0, 0, 0, 'STR ', // Name Type kAVIthngResID, // Name ID 0, // Info Type 0, // Info ID 0, // Icon Type 0, // Icon ID // TARGET COMPONENT --------------- 'eat ', // Type 'VfW ', // SubType kPerianManufacturer, // Manufaturer 0, // Component Flags 0, // Component Flags Mask 'thnr', kAVIthngResID, // Component public resource identifier cmpAliasOnlyThisFile }; resource 'thga' (514) { 'eat ', // Type 'AVI ', // SubType kPerianManufacturer, // Manufacturer kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 0, 0, 0, 'STR ', // Name Type kAVIthngResID, // Name ID 0, // Info Type 0, // Info ID 0, // Icon Type 0, // Icon ID // TARGET COMPONENT --------------- 'eat ', // Type 'VfW ', // SubType kPerianManufacturer, // Manufaturer 0, // Component Flags 0, // Component Flags Mask 'thnr', kAVIthngResID, // Component public resource identifier cmpAliasOnlyThisFile }; resource 'thga' (515) { 'eat ', // Type 'DIVX', // SubType kPerianManufacturer, // Manufacturer kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 0, 0, 0, 'STR ', // Name Type kAVIthngResID, // Name ID 0, // Info Type 0, // Info ID 0, // Icon Type 0, // Icon ID // TARGET COMPONENT --------------- 'eat ', // Type 'VfW ', // SubType kPerianManufacturer, // Manufaturer 0, // Component Flags 0, // Component Flags Mask 'thnr', kAVIthngResID, // Component public resource identifier cmpAliasOnlyThisFile }; resource 'thga' (516) { 'eat ', // Type 'GVI ', // SubType kPerianManufacturer, // Manufacturer kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 0, 0, 0, 'STR ', // Name Type kAVIthngResID, // Name ID 0, // Info Type 0, // Info ID 0, // Icon Type 0, // Icon ID // TARGET COMPONENT --------------- 'eat ', // Type 'VfW ', // SubType kPerianManufacturer, // Manufaturer 0, // Component Flags 0, // Component Flags Mask 'thnr', kAVIthngResID, // Component public resource identifier cmpAliasOnlyThisFile }; resource 'thga' (517) { 'eat ', // Type 'VP6 ', // SubType kPerianManufacturer, // Manufacturer kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 0, 0, 0, 'STR ', // Name Type kAVIthngResID, // Name ID 0, // Info Type 0, // Info ID 0, // Icon Type 0, // Icon ID // TARGET COMPONENT --------------- 'eat ', // Type 'VfW ', // SubType kPerianManufacturer, // Manufaturer 0, // Component Flags 0, // Component Flags Mask 'thnr', kAVIthngResID, // Component public resource identifier cmpAliasOnlyThisFile }; /* Perhaps in a later version, we have to use "QuickTime Media Configuration Resources" */ resource 'thnr' (kAVIthngResID) { { 'mime', 1, 0, 'mime', kAVIthngResID, 0, } }; resource 'mime' (kAVIthngResID) { { kMimeInfoMimeTypeTag, 1, "video/x-msvideo"; kMimeInfoMimeTypeTag, 2, "video/msvideo"; kMimeInfoMimeTypeTag, 3, "video/avi"; kMimeInfoFileExtensionTag, 1, "avi"; kMimeInfoFileExtensionTag, 2, "avi"; kMimeInfoFileExtensionTag, 3, "avi"; kMimeInfoDescriptionTag, 1, "XviD Avi Import"; kMimeInfoDescriptionTag, 2, "XviD Avi Import"; kMimeInfoDescriptionTag, 3, "XviD Avi Import"; }; }; resource 'STR ' (kAVIthngResID) { "FFAvi Movie Importer" }; /* Component Manager Things - FLV */ resource 'thng' (kFLVthngResID) { 'eat ', // Type 'FLV ', // SubType 'vide', // Manufacturer 0, 0, 0, 0, 'STR ', // Name Type kFLVthngResID, // Name ID 0, // Info Type 0, // Info ID 0, // Icon Type 0, // Icon ID kFFAviComponentVersion, // Version componentHasMultiplePlatforms + componentDoAutoVersion, // Registratin Flags 0, // Resource ID of Icon Family { kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 'dlle', // Code Resource type 512, platformIA32NativeEntryPoint, // IA32 kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 'dlle', 512, platformPowerPCNativeEntryPoint, // PowerPC }, 'thnr', kFLVthngResID }; resource 'thnr' (kFLVthngResID) { { 'mime', 1, 0, 'mime', kFLVthngResID, 0, } }; resource 'mime' (kFLVthngResID) { { kMimeInfoMimeTypeTag, 1, "video/x-flv"; kMimeInfoFileExtensionTag, 1, "flv"; kMimeInfoDescriptionTag, 1, "Flash Video"; }; }; resource 'STR ' (kFLVthngResID) { "Flash Video Importer" }; /* Component Manager Things - TTA */ resource 'thng' (kTTAthngResID) { 'eat ', // Type 'TTA ', // SubType 'soun', // Manufacturer 0, 0, 0, 0, 'STR ', // Name Type kTTAthngResID, // Name ID 0, // Info Type 0, // Info ID 0, // Icon Type 0, // Icon ID kFFAviComponentVersion, // Version componentHasMultiplePlatforms + componentDoAutoVersion, // Registratin Flags 0, // Resource ID of Icon Family { kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 'dlle', // Code Resource type 512, platformIA32NativeEntryPoint, // IA32 kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 'dlle', 512, platformPowerPCNativeEntryPoint, // PowerPC }, 'thnr', kTTAthngResID }; resource 'thnr' (kTTAthngResID) { { 'mime', 1, 0, 'mime', kTTAthngResID, 0, } }; resource 'mime' (kTTAthngResID) { { kMimeInfoMimeTypeTag, 1, "audio/x-tta"; kMimeInfoFileExtensionTag, 1, "tta"; kMimeInfoDescriptionTag, 1, "True Audio"; }; }; resource 'STR ' (kTTAthngResID) { "True Audio Importer" }; /* Component Manager Things - Nuv */ resource 'thng' (kNuvthngResID) { 'eat ', // Type 'NUV ', // SubType 'Myth', // Manufacturer 0, 0, 0, 0, 'STR ', // Name Type kNuvthngResID, // Name ID 0, // Info Type 0, // Info ID 0, // Icon Type 0, // Icon ID kFFAviComponentVersion, // Version componentHasMultiplePlatforms + componentDoAutoVersion, // Registratin Flags 0, // Resource ID of Icon Family { kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 'dlle', // Code Resource type 512, platformIA32NativeEntryPoint, // IA32 kFFAvi_MovieImportFlags | movieImportSubTypeIsFileExtension, 'dlle', 512, platformPowerPCNativeEntryPoint, // PowerPC }, 'thnr', kNuvthngResID }; resource 'thnr' (kNuvthngResID) { { 'mime', 1, 0, 'mime', kNuvthngResID, 0, } }; resource 'mime' (kNuvthngResID) { { kMimeInfoMimeTypeTag, 1, "audio/x-nuv"; kMimeInfoFileExtensionTag, 1, "nuv"; kMimeInfoDescriptionTag, 1, "NuppelVideo"; }; }; resource 'STR ' (kNuvthngResID) { "NuppelVideo" }; resource 'dlle' (512) { "FFAvi_MovieImportComponentDispatch" };