Changeset 868

Show
Ignore:
Timestamp:
04/30/08 14:19:43 (4 months ago)
Author:
gbooker
Message:

Added RGB24 (doesn't seem to be an edian issue with this one as there was with 32)

Files:

Legend:

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

    r836 r868  
    379379} 
    380380 
     381void RGB24toRGB24(UInt8 *baseAddr, unsigned rowBytes, unsigned width, unsigned height, AVFrame *picture) 
     382{ 
     383        unsigned y; 
     384        UInt8 *srcPtr = picture->data[0]; 
     385         
     386        for (y = 0; y < height; y++) { 
     387                memcpy(baseAddr, srcPtr, width * 3); 
     388                 
     389                baseAddr += rowBytes; 
     390                srcPtr += picture->linesize[0]; 
     391        } 
     392} 
     393 
    381394void Y422toY422(UInt8* o, unsigned outRB, unsigned width, unsigned height, AVFrame * picture) 
    382395{ 
  • trunk/ColorConversions.h

    r344 r868  
    2424extern void Y420toY422(UInt8* baseAddr, unsigned rowBytes, unsigned width, unsigned height, AVFrame * picture); 
    2525extern void RGB32toRGB32(UInt8 *baseAddr, unsigned rowBytes, unsigned width, unsigned height, AVFrame *picture); 
     26extern void RGB24toRGB24(UInt8 *baseAddr, unsigned rowBytes, unsigned width, unsigned height, AVFrame *picture); 
    2627extern void BGR24toRGB24(UInt8 *baseAddr, unsigned rowBytes, unsigned width, unsigned height, AVFrame *picture); 
    2728extern void Y422toY422(UInt8* o, unsigned outRB, unsigned width, unsigned height, AVFrame * picture);