Changeset 869
- Timestamp:
- 04/30/08 14:21:07 (7 months ago)
- Files:
-
- trunk/FFusionCodec.c (modified) (4 diffs)
- trunk/FFusionCodec.h (modified) (1 diff)
- trunk/FFusionCodec.r (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/FFusionCodec.c
r861 r869 672 672 codecID = CODEC_ID_TSCC; 673 673 break; 674 675 case 'ZMBV': 676 codecID = CODEC_ID_ZMBV; 677 break; 674 678 675 679 … … 823 827 case PIX_FMT_RGB32: 824 828 pos[index++] = k32ARGBPixelFormat; 829 break; 830 case PIX_FMT_RGB24: 831 pos[index++] = k24RGBPixelFormat; 825 832 break; 826 833 case PIX_FMT_YUV420P: … … 1301 1308 RGB32toRGB32((UInt8 *)drp->baseAddr, drp->rowBytes, myDrp->width, myDrp->height, picture); 1302 1309 } 1310 else if (myDrp->pixelFormat == k24RGBPixelFormat && glob->avContext->pix_fmt == PIX_FMT_RGB24) 1311 { 1312 RGB24toRGB24((UInt8 *)drp->baseAddr, drp->rowBytes, myDrp->width, myDrp->height, picture); 1313 } 1303 1314 else if (myDrp->pixelFormat == k2vuyPixelFormat && glob->avContext->pix_fmt == PIX_FMT_YUV422P) 1304 1315 { … … 1577 1588 break; 1578 1589 1590 case 'ZMBV': 1591 err = GetComponentResource((Component)glob->self, codecInfoResourceType, kZMBVCodecInfoResID, (Handle *)&tempCodecInfo); 1592 break; 1593 1579 1594 1580 1595 default: // should never happen but we have to handle the case trunk/FFusionCodec.h
r832 r869 52 52 #define kNuvCodecInfoResID 275 53 53 #define kTSCCCodecInfoResID 305 54 #define kZMBVCodecInfoResID 307 54 55 55 56 #define kFFusionCodecManufacturer 'Peri' trunk/FFusionCodec.r
r832 r869 65 65 #define kNuvName "NuppelVideo" 66 66 #define kTSCCName "Techsmith Screen Capture" 67 #define kZMBVName "DosBox Capture" 67 68 68 69 // Codec names Resource ID … … 88 89 #define kSnowNameResID 274 89 90 #define kNuvNameResID 275 91 #define kTSCCNameResID 305 92 #define kZMBVNameResID 307 90 93 91 94 // Codec infos Resource ID … … 111 114 #define kSnowInfoResID 303 112 115 #define kNuvInfoResID 304 113 #define kTSCCNameResID 305114 116 #define kTSCCInfoResID 306 117 #define kZMBVInfoResID 308 115 118 116 119 // These flags specify information about the capabilities of the component … … 632 635 resource 'cdci' (kTSCCCodecInfoResID) { 633 636 kTSCCName, // Type 637 1, // Version 638 1, // Revision level 639 kFFusionCodecManufacturer, // Manufacturer 640 kFFusionDecompressionFlags, // Decompression Flags 641 0, // Compression Flags 642 kFFusionFormatFlags, // Format Flags 643 128, // Compression Accuracy 644 128, // Decomression Accuracy 645 200, // Compression Speed 646 200, // Decompression Speed 647 128, // Compression Level 648 0, // Reserved 649 1, // Minimum Height 650 1, // Minimum Width 651 0, // Decompression Pipeline Latency 652 0, // Compression Pipeline Latency 653 0 // Private Data 654 }; 655 656 //--------------------------------------------------------------------------- 657 // ZMBV Description Resources 658 //--------------------------------------------------------------------------- 659 660 resource 'cdci' (kZMBVCodecInfoResID) { 661 kZMBVName, // Type 634 662 1, // Version 635 663 1, // Revision level … … 3161 3189 3162 3190 //--------------------------------------------------------------------------- 3191 // ZMBV Components 3192 //--------------------------------------------------------------------------- 3193 resource 'thng' (337) { 3194 decompressorComponentType, // Type 3195 'ZMBV', // SubType 3196 kFFusionCodecManufacturer, // Manufacturer 3197 0, // - use componentHasMultiplePlatforms 3198 0, 3199 0, 3200 0, 3201 'STR ', // Name Type 3202 kZMBVNameResID, // Name ID 3203 'STR ', // Info Type 3204 kZMBVInfoResID, // Info ID 3205 0, // Icon Type 3206 0, // Icon ID 3207 kFFusionCodecVersion, // Version 3208 componentHasMultiplePlatforms + // Registration Flags 3209 componentDoAutoVersion, // Registration Flags 3210 0, // Resource ID of Icon Family 3211 { 3212 kFFusionDecompressionFlags, 3213 'dlle', // Entry point found by symbol name 'dlle' resource 3214 256, // ID of 'dlle' resource 3215 platformPowerPCNativeEntryPoint, 3216 kFFusionDecompressionFlags, 3217 'dlle', 3218 256, 3219 platformIA32NativeEntryPoint, 3220 }; 3221 }; 3222 3223 3224 //--------------------------------------------------------------------------- 3163 3225 // Component Name Resources 3164 3226 //--------------------------------------------------------------------------- … … 3248 3310 }; 3249 3311 3312 resource 'STR ' (kZMBVNameResID) { 3313 "DosBox Capture (Perian)" 3314 }; 3315 3250 3316 //--------------------------------------------------------------------------- 3251 3317 // Component Name Resources … … 3336 3402 }; 3337 3403 3404 resource 'STR ' (kZMBVInfoResID) { 3405 "Decompresses video stored in DosBox Capture format." 3406 }; 3407 3338 3408 //--------------------------------------------------------------------------- 3339 3409 // Code Entry Point for Mach-O
