Ticket #53: indeo3codec.diff
| File indeo3codec.diff, 8.9 KB (added by Madd_the_Sane, 5 years ago) |
|---|
-
ff_MovieImport.c
123 123 REGISTER_DECODER(tscc); 124 124 REGISTER_DECODER(vp6a); 125 125 REGISTER_DECODER(zmbv); 126 REGISTER_DECODER(indeo2); 127 REGISTER_DECODER(indeo3); 126 128 127 129 av_log_set_callback(FFMpegCodecprintf); 128 130 } -
FFusionCodec.c
1532 1532 case 'UMP4': 1533 1533 err = GetComponentResource((Component)glob->self, codecInfoResourceType, kDivX4CodecInfoResID, (Handle *)&tempCodecInfo); 1534 1534 break; 1535 1536 case 'IV31': // Indeo 3 1537 case 'IV32': 1538 case 'iv31': 1539 case 'iv32': 1540 err = GetComponentResource((Component)glob->self, codecInfoResourceType, kIndeo3CodecInfoResID, (Handle *)&tempCodecInfo); 1541 break; 1542 1543 case 'RT21': // Indeo 2 1544 err = GetComponentResource((Component)glob->self, codecInfoResourceType, kIndeo2CodecInfoResID, (Handle *)&tempCodecInfo); 1545 break; 1535 1546 1536 1547 case 'DX50': 1537 1548 err = GetComponentResource((Component)glob->self, codecInfoResourceType, kDivX5CodecInfoResID, (Handle *)&tempCodecInfo); -
FFusionCodec.h
50 50 #define kFRAPSCodecInfoResID 273 51 51 #define kSnowCodecInfoResID 274 52 52 #define kNuvCodecInfoResID 275 53 #define kIndeo2CodecInfoResID 276 54 #define kIndeo3CodecInfoResID 277 53 55 #define kTSCCCodecInfoResID 305 54 56 #define kZMBVCodecInfoResID 307 55 57 #define kVP6ACodecInfoResID 309 -
CodecIDs.h
81 81 kVideoFormatReal8 = 'RV30', 82 82 kVideoFormatReal9 = 'RV40', 83 83 kVideoFormatSnow = 'SNOW', 84 kVideoFormatIndeo2 = 'RT21', 85 kVideoFormatIndeo3 = 'IV32', 84 86 85 87 kAudioFormatFlashADPCM = 'FlAd', 86 88 kAudioFormatDTS = 'DTS ', -
FFusionCodec.r
63 63 #define kMPEG2Name "MPEG-2 Video" 64 64 #define kFRAPSName "Fraps" 65 65 #define kSnowName "Snow" 66 #define kIndeo2Name "Intel Indeo 2" 67 #define kIndeo3Name "Intel Indeo 3" 66 68 #define kNuvName "NuppelVideo" 67 69 #define kTSCCName "Techsmith Screen Capture" 68 70 #define kZMBVName "DosBox Capture" … … 89 91 #define kFRAPSNameResID 273 90 92 #define kSnowNameResID 274 91 93 #define kNuvNameResID 275 94 #define kIndeo2NameResID 276 95 #define kIndeo3NameResID 277 92 96 #define kTSCCNameResID 305 93 97 #define kZMBVNameResID 307 94 98 #define kVP6ANameResID 309 … … 118 122 #define kTSCCInfoResID 306 119 123 #define kZMBVInfoResID 308 120 124 #define kVP6AInfoResID 310 125 #define kIndeo2InfoResID 311 126 #define kIndeo3InfoResID 312 121 127 122 128 // These flags specify information about the capabilities of the component 123 129 // Works with 1-bit, 8-bit, 16-bit and 32-bit Pixel Maps … … 205 211 0 // Private Data 206 212 }; 207 213 214 208 215 //--------------------------------------------------------------------------- 216 // Intel Indeo 2 Description Resource 217 //--------------------------------------------------------------------------- 218 219 resource 'cdci' (kIndeo2CodecInfoResID) { 220 kIndeo2Name, // Type 221 1, // Version 222 1, // Revision level 223 kFFusionCodecManufacturer, // Manufacturer 224 kFFusionDecompressionFlags, // Decompression Flags 225 0, // Compression Flags 226 kFFusionFormatFlags, // Format Flags 227 128, // Compression Accuracy 228 128, // Decomression Accuracy 229 200, // Compression Speed 230 200, // Decompression Speed 231 128, // Compression Level 232 0, // Reserved 233 1, // Minimum Height 234 1, // Minimum Width 235 0, // Decompression Pipeline Latency 236 0, // Compression Pipeline Latency 237 0 // Private Data 238 }; 239 240 //--------------------------------------------------------------------------- 241 // Intel Indeo 3 Description Resource 242 //--------------------------------------------------------------------------- 243 244 resource 'cdci' (kIndeo3CodecInfoResID) { 245 kIndeo3Name, // Type 246 1, // Version 247 1, // Revision level 248 kFFusionCodecManufacturer, // Manufacturer 249 kFFusionDecompressionFlags, // Decompression Flags 250 0, // Compression Flags 251 kFFusionFormatFlags, // Format Flags 252 128, // Compression Accuracy 253 128, // Decomression Accuracy 254 200, // Compression Speed 255 200, // Decompression Speed 256 128, // Compression Level 257 0, // Reserved 258 1, // Minimum Height 259 1, // Minimum Width 260 0, // Decompression Pipeline Latency 261 0, // Compression Pipeline Latency 262 0 // Private Data 263 }; 264 265 //--------------------------------------------------------------------------- 209 266 // DivX 4 (OpenDivX) Description Resource 210 267 //--------------------------------------------------------------------------- 211 268 … … 3281 3338 }; 3282 3339 3283 3340 //--------------------------------------------------------------------------- 3341 // Indeo 3 Components 3342 //--------------------------------------------------------------------------- 3343 resource 'thng' (339) { 3344 decompressorComponentType, // Type 3345 'IV32', // SubType 3346 kFFusionCodecManufacturer, // Manufacturer 3347 0, // - use componentHasMultiplePlatforms 3348 0, 3349 0, 3350 0, 3351 'STR ', // Name Type 3352 kIndeo3NameResID, // Name ID 3353 'STR ', // Info Type 3354 kIndeo3InfoResID, // Info ID 3355 0, // Icon Type 3356 0, // Icon ID 3357 kFFusionCodecVersion, // Version 3358 componentHasMultiplePlatforms + // Registration Flags 3359 componentDoAutoVersion, // Registration Flags 3360 0, // Resource ID of Icon Family 3361 { 3362 kFFusionDecompressionFlags, 3363 'dlle', // Entry point found by symbol name 'dlle' resource 3364 256, // ID of 'dlle' resource 3365 platformPowerPCNativeEntryPoint, 3366 kFFusionDecompressionFlags, 3367 'dlle', 3368 256, 3369 platformIA32NativeEntryPoint, 3370 }; 3371 }; 3372 3373 //--------------------------------------------------------------------------- 3374 // Indeo 2 Components 3375 //--------------------------------------------------------------------------- 3376 resource 'thng' (340) { 3377 decompressorComponentType, // Type 3378 'RT21', // SubType 3379 kFFusionCodecManufacturer, // Manufacturer 3380 0, // - use componentHasMultiplePlatforms 3381 0, 3382 0, 3383 0, 3384 'STR ', // Name Type 3385 kIndeo2NameResID, // Name ID 3386 'STR ', // Info Type 3387 kIndeo2InfoResID, // Info ID 3388 0, // Icon Type 3389 0, // Icon ID 3390 kFFusionCodecVersion, // Version 3391 componentHasMultiplePlatforms + // Registration Flags 3392 componentDoAutoVersion, // Registration Flags 3393 0, // Resource ID of Icon Family 3394 { 3395 kFFusionDecompressionFlags, 3396 'dlle', // Entry point found by symbol name 'dlle' resource 3397 256, // ID of 'dlle' resource 3398 platformPowerPCNativeEntryPoint, 3399 kFFusionDecompressionFlags, 3400 'dlle', 3401 256, 3402 platformIA32NativeEntryPoint, 3403 }; 3404 }; 3405 3406 3407 3408 //--------------------------------------------------------------------------- 3284 3409 // Component Name Resources 3285 3410 //--------------------------------------------------------------------------- 3286 3411 … … 3376 3501 "On2 VP6A (Perian)" 3377 3502 }; 3378 3503 3504 resource 'STR ' (kIndeo2NameResID) { 3505 "Indeo 2 (Perian)" 3506 }; 3507 3508 resource 'STR ' (kIndeo3NameResID) { 3509 "Indeo 3 (Perian)" 3510 }; 3511 3379 3512 //--------------------------------------------------------------------------- 3380 3513 // Component Name Resources 3381 3514 //--------------------------------------------------------------------------- … … 3472 3605 "Decompresses video stored in On2 VP6A format." 3473 3606 }; 3474 3607 3608 resource 'STR ' (kIndeo2InfoResID) { 3609 "Decompresses video stored in Intel's Indeo 2 format." 3610 }; 3611 3612 resource 'STR ' (kIndeo3InfoResID) { 3613 "Decompresses video stored in Intel's Indeo 3 format." 3614 }; 3615 3475 3616 //--------------------------------------------------------------------------- 3476 3617 // Code Entry Point for Mach-O 3477 3618 //---------------------------------------------------------------------------
