Show
Ignore:
Timestamp:
03/11/09 16:12:46 (4 years ago)
Author:
robert
Message:

From Tanguy Fautre,

Clean up of the FFmpeg plugin's class API/AudioStream API.
Implementation of isImageTransparent().
Implementation of Image:g/setPixelAspectRatio()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/Image.cpp

    r9682 r9910  
    3434 
    3535Image::Image() 
    36     :Object(true) 
     36    :Object(true), 
     37    _fileName(""), 
     38    _writeHint(NO_PREFERENCE), 
     39    _origin(BOTTOM_LEFT), 
     40    _s(0), _t(0), _r(0), 
     41    _internalTextureFormat(0), 
     42    _pixelFormat(0), 
     43    _dataType(0), 
     44    _packing(4), 
     45    _pixelAspectRatio(1.0), 
     46    _allocationMode(USE_NEW_DELETE), 
     47    _data(0L), 
     48    _modifiedCount(0) 
    3749{ 
    3850    setDataVariance(STATIC);  
    39  
    40     _fileName               = ""; 
    41     _writeHint              = NO_PREFERENCE; 
    42     _origin                 = BOTTOM_LEFT; 
    43     _s = _t = _r            = 0; 
    44     _internalTextureFormat  = 0; 
    45     _pixelFormat            = (unsigned int)0; 
    46     _dataType               = (unsigned int)0; 
    47     _packing                = 4; 
    48  
    49     _allocationMode         = USE_NEW_DELETE; 
    50     _data                   = (unsigned char *)0L; 
    51  
    52     _modifiedCount = 0; 
    5351} 
    5452 
     
    6361    _dataType(image._dataType), 
    6462    _packing(image._packing), 
     63    _pixelAspectRatio(image._pixelAspectRatio), 
    6564    _data(0L), 
    6665    _modifiedCount(image._modifiedCount),