search for: rgbtoyuv420p

Displaying 1 result from an estimated 1 matches for "rgbtoyuv420p".

2012 Apr 18
2
png2theora.c + QImage
...) And here is the issue: QImage supports RGB images, so my first task is to transform the content of the QImage variable from RGB to YUV. Here is the code I already use to do the trick with a ffmpeg API and it works: http://www.maefloresta.com/tmp/rgb2yuv.txt The function prototype is this: void RGBtoYUV420P(const uint8_t *bufferRGB, uint8_t *yuv, uint iRGBIncrement, bool bSwapRGB, int width, int height) Now, to write a theora frame I'm trying to use the function from the example (png2theora.c): static int theora_write_frame(unsigned long w, unsigned long h, unsigned char *yuv, int last) So, what...