Changeset 869

Show
Ignore:
Timestamp:
04/30/08 14:21:07 (7 months ago)
Author:
gbooker
Message:

Added 'ZMBV' (DosBox? Capture)

Files:

Legend:

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

    r861 r869  
    672672                                codecID = CODEC_ID_TSCC; 
    673673                                break; 
     674                                 
     675                        case 'ZMBV': 
     676                                codecID = CODEC_ID_ZMBV; 
     677                                break; 
    674678 
    675679                                 
     
    823827                case PIX_FMT_RGB32: 
    824828                        pos[index++] = k32ARGBPixelFormat; 
     829                        break; 
     830                case PIX_FMT_RGB24: 
     831                        pos[index++] = k24RGBPixelFormat; 
    825832                        break; 
    826833                case PIX_FMT_YUV420P: 
     
    13011308                RGB32toRGB32((UInt8 *)drp->baseAddr, drp->rowBytes, myDrp->width, myDrp->height, picture); 
    13021309        } 
     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        } 
    13031314        else if (myDrp->pixelFormat == k2vuyPixelFormat && glob->avContext->pix_fmt == PIX_FMT_YUV422P) 
    13041315        { 
     
    15771588                break; 
    15781589                                 
     1590                        case 'ZMBV': 
     1591                                err = GetComponentResource((Component)glob->self, codecInfoResourceType, kZMBVCodecInfoResID, (Handle *)&tempCodecInfo); 
     1592                                break; 
     1593                                 
    15791594                                 
    15801595            default:    // should never happen but we have to handle the case 
  • trunk/FFusionCodec.h

    r832 r869  
    5252#define kNuvCodecInfoResID                      275 
    5353#define kTSCCCodecInfoResID                     305 
     54#define kZMBVCodecInfoResID                     307 
    5455 
    5556#define kFFusionCodecManufacturer       'Peri' 
  • trunk/FFusionCodec.r

    r832 r869  
    6565#define kNuvName                "NuppelVideo" 
    6666#define kTSCCName               "Techsmith Screen Capture" 
     67#define kZMBVName               "DosBox Capture" 
    6768 
    6869// Codec names Resource ID 
     
    8889#define kSnowNameResID          274 
    8990#define kNuvNameResID           275 
     91#define kTSCCNameResID          305 
     92#define kZMBVNameResID          307 
    9093 
    9194// Codec infos Resource ID 
     
    111114#define kSnowInfoResID          303 
    112115#define kNuvInfoResID           304 
    113 #define kTSCCNameResID          305 
    114116#define kTSCCInfoResID          306 
     117#define kZMBVInfoResID          308 
    115118 
    116119// These flags specify information about the capabilities of the component 
     
    632635resource 'cdci' (kTSCCCodecInfoResID) { 
    633636        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 
     660resource 'cdci' (kZMBVCodecInfoResID) { 
     661        kZMBVName,                              // Type 
    634662        1,                                      // Version 
    635663        1,                                      // Revision level 
     
    31613189 
    31623190//--------------------------------------------------------------------------- 
     3191// ZMBV Components 
     3192//--------------------------------------------------------------------------- 
     3193resource '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//--------------------------------------------------------------------------- 
    31633225// Component Name Resources 
    31643226//--------------------------------------------------------------------------- 
     
    32483310}; 
    32493311 
     3312resource 'STR ' (kZMBVNameResID) { 
     3313        "DosBox Capture (Perian)" 
     3314}; 
     3315 
    32503316//--------------------------------------------------------------------------- 
    32513317// Component Name Resources 
     
    33363402}; 
    33373403 
     3404resource 'STR ' (kZMBVInfoResID) { 
     3405        "Decompresses video stored in DosBox Capture format." 
     3406}; 
     3407 
    33383408//--------------------------------------------------------------------------- 
    33393409// Code Entry Point for Mach-O