Displaying 1 result from an estimated 1 matches for "irgbincr".
2012 Apr 18
2
png2theora.c + QImage
...y 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 is my problem?
In the function RGBtoYUV420P(), my inp...