Changeset 880

Show
Ignore:
Timestamp:
05/17/08 23:26:09 (5 months ago)
Author:
astrange
Message:

Add debug option to disable framedropping. This one's practically worth saving in the prefs, but we'll see.

Files:

Legend:

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

    r806 r880  
    286286        return 0; 
    287287} 
     288 
     289int IsFrameDroppingEnabled() 
     290{ 
     291        static int enabled = -1; 
     292         
     293        if (enabled == -1) enabled = getenv("PerianNoFrameDropping") == NULL; 
     294         
     295        return enabled; 
     296} 
  • trunk/CommonUtils.h

    r585 r880  
    3939int isImageDescriptionExtensionPresent(ImageDescriptionHandle desc, long type); 
    4040 
     41int IsFrameDroppingEnabled(); 
     42 
    4143#ifdef __cplusplus 
    4244} 
  • trunk/FFusionCodec.c

    r878 r880  
    878878                        return kCodecFrameTypeKey; 
    879879        } 
    880         else if(skippable
     880        else if(skippable && IsFrameDroppingEnabled()
    881881                return kCodecFrameTypeDroppableDifference; 
    882882        else if(fftype != 0) 
  • trunk/MatroskaImportPrivate.cpp

    r877 r880  
    836836                        if (!simpleBlock.IsKeyframe()) 
    837837                                flags |= mediaSampleNotSync; 
    838                         if (simpleBlock.IsDiscardable()
     838                        if (simpleBlock.IsDiscardable() && IsFrameDroppingEnabled()
    839839                                flags |= mediaSampleDroppable; 
    840840                }