Changeset 230

Show
Ignore:
Timestamp:
01/04/07 13:59:09 (2 years ago)
Author:
astrange
Message:

Broken HuffYUV decoder (references #68)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/FFusionCodec.c

    r221 r230  
    507507                                glob->avCodec = avcodec_find_decoder(CODEC_ID_VP3); 
    508508                                break; 
    509  
     509                                 
     510                        case 'HFYU': 
     511                                glob->avCodec = avcodec_find_decoder(CODEC_ID_HUFFYUV); 
     512                                break; 
     513 
     514                        case 'FFVH': 
     515                                glob->avCodec = avcodec_find_decoder(CODEC_ID_FFVHUFF); 
     516                                break; 
     517                                 
    510518            default: 
    511519                        Codecprintf(glob->fileLog, "Warning! Unknown codec type! Using MPEG4 by default.\n"); 
     
    11271135                                break; 
    11281136                                 
     1137                        case 'FFVH': 
     1138                        case 'HFYU': 
     1139                                err = GetComponentResource((Component)glob->self, codecInfoResourceType, kHuffYUVCodecInfoResID, (Handle *)&tempCodecInfo); 
     1140                                break; 
     1141                                 
    11291142            default:    // should never happen but we have to handle the case 
    11301143                err = GetComponentResource((Component)glob->self, codecInfoResourceType, kDivX4CodecInfoResID, (Handle *)&tempCodecInfo); 
  • trunk/FFusionCodec.h

    r221 r230  
    4545#define kI263CodecInfoResID                     268 
    4646#define kVP3CodecInfoResID                      269 
     47#define kHuffYUVCodecInfoResID          270 
    4748 
    4849#define kFFusionCodecManufacturer       'SNE2' 
  • trunk/FFusionCodec.r

    r221 r230  
    5858#define kI263Name               "Intel H.263" 
    5959#define kVP3Name                "On2 VP3" 
     60#define kHuffYUVName            "HuffYUV" 
    6061 
    6162// Codec names Resource ID 
     
    7576#define kI263NameResID          268 
    7677#define kVP3NameResID           269 
     78#define kHuffYUVNameResID       270 
    7779 
    7880// Codec infos Resource ID 
     
    9294#define kI263InfoResID          297 
    9395#define kVP3InfoResID           298 
     96#define kHuffYUVInfoResID               299 
    9497 
    9598// These flags specify information about the capabilities of the component 
     
    25162519}; 
    25172520 
     2521 
     2522//--------------------------------------------------------------------------- 
     2523// VP3 Components 
     2524//--------------------------------------------------------------------------- 
     2525resource 'thng' (323) { 
     2526        decompressorComponentType,              // Type                  
     2527        'HFYU',                                 // SubType 
     2528        kFFusionCodecManufacturer,                      // Manufacturer 
     2529        0,                                      // - use componentHasMultiplePlatforms 
     2530        0, 
     2531        0, 
     2532        0, 
     2533        'STR ',                                 // Name Type 
     2534        kHuffYUVNameResID,                      // Name ID 
     2535        'STR ',                                 // Info Type 
     2536        kHuffYUVInfoResID,                      // Info ID 
     2537        0,                                      // Icon Type 
     2538        0,                                      // Icon ID 
     2539        kFFusionCodecVersion,                   // Version 
     2540        componentHasMultiplePlatforms +         // Registration Flags  
     2541        componentDoAutoVersion,                 // Registration Flags 
     2542        0,                                      // Resource ID of Icon Family 
     2543{ 
     2544        kFFusionDecompressionFlags,  
     2545        'dlle',                         // Entry point found by symbol name 'dlle' resource 
     2546        256,                            // ID of 'dlle' resource 
     2547        platformPowerPCNativeEntryPoint, 
     2548        kFFusionDecompressionFlags, 
     2549        'dlle', 
     2550        256, 
     2551        platformIA32NativeEntryPoint, 
     2552}; 
     2553}; 
     2554 
     2555resource 'thng' (324) { 
     2556        decompressorComponentType,              // Type                  
     2557        'FFVH',                                 // SubType 
     2558        kFFusionCodecManufacturer,                      // Manufacturer 
     2559        0,                                      // - use componentHasMultiplePlatforms 
     2560        0, 
     2561        0, 
     2562        0, 
     2563        'STR ',                                 // Name Type 
     2564        kHuffYUVNameResID,                      // Name ID 
     2565        'STR ',                                 // Info Type 
     2566        kHuffYUVInfoResID,                      // Info ID 
     2567        0,                                      // Icon Type 
     2568        0,                                      // Icon ID 
     2569        kFFusionCodecVersion,                   // Version 
     2570        componentHasMultiplePlatforms +         // Registration Flags  
     2571        componentDoAutoVersion,                 // Registration Flags 
     2572        0,                                      // Resource ID of Icon Family 
     2573{ 
     2574        kFFusionDecompressionFlags,  
     2575        'dlle',                         // Entry point found by symbol name 'dlle' resource 
     2576        256,                            // ID of 'dlle' resource 
     2577        platformPowerPCNativeEntryPoint, 
     2578        kFFusionDecompressionFlags, 
     2579        'dlle', 
     2580        256, 
     2581        platformIA32NativeEntryPoint, 
     2582}; 
     2583}; 
     2584 
    25182585//--------------------------------------------------------------------------- 
    25192586// Component Name Resources 
     
    25762643}; 
    25772644 
     2645resource 'STR ' (kHuffYUVNameResID) { 
     2646        "HuffYUV Decoder" 
     2647}; 
     2648 
    25782649//--------------------------------------------------------------------------- 
    25792650// Component Name Resources 
     
    26362707}; 
    26372708 
     2709resource 'STR ' (kHuffYUVInfoResID) { 
     2710        "Decompresses video stored in HuffYUV format." 
     2711}; 
     2712 
    26382713//--------------------------------------------------------------------------- 
    26392714// Code Entry Point for Mach-O 
  • trunk/ff_MovieImport.c

    r221 r230  
    7777                register_avcodec(&vp6f_decoder); 
    7878                register_avcodec(&h263i_decoder); 
     79                register_avcodec(&huffyuv_decoder); 
     80                register_avcodec(&ffvhuff_decoder); 
    7981                 
    8082                register_avcodec(&wmav1_decoder);