Changeset 868
- Timestamp:
- 04/30/08 14:19:43 (4 months ago)
- Files:
-
- trunk/ColorConversions.c (modified) (1 diff)
- trunk/ColorConversions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ColorConversions.c
r836 r868 379 379 } 380 380 381 void 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 381 394 void Y422toY422(UInt8* o, unsigned outRB, unsigned width, unsigned height, AVFrame * picture) 382 395 { trunk/ColorConversions.h
r344 r868 24 24 extern void Y420toY422(UInt8* baseAddr, unsigned rowBytes, unsigned width, unsigned height, AVFrame * picture); 25 25 extern void RGB32toRGB32(UInt8 *baseAddr, unsigned rowBytes, unsigned width, unsigned height, AVFrame *picture); 26 extern void RGB24toRGB24(UInt8 *baseAddr, unsigned rowBytes, unsigned width, unsigned height, AVFrame *picture); 26 27 extern void BGR24toRGB24(UInt8 *baseAddr, unsigned rowBytes, unsigned width, unsigned height, AVFrame *picture); 27 28 extern void Y422toY422(UInt8* o, unsigned outRB, unsigned width, unsigned height, AVFrame * picture);
