Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

void phGREY8_to_YUV9_ex uint32_t  w,
uint32_t  h,
uint8_t src,
uint8_t **  dst,
uint32_t pdstsize
 

This is very simple, the Y in YUV is the intensity value that is being calculated the rouchly the same way GREY8's luminance value is calculated. So here we just copy the greyscale data into a piece of memory that is the right size for YUV9 formatted data with the U and V set to 0 by phCalloc

Parameters:
[in] width The width of the image
[in] height The height of the image
[in] src The source of the YUV image data
[out] dst The destination of the converted data
[out] pdstsize The size of the allocated (possibly resized) dst buffer.

Definition at line 866 of file ImageConversions.c.





Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:45:26 2007 for phission by  doxygen 1.4.4