Displaying 1 result from an estimated 1 matches for "theora_write_fram".
Did you mean:
theora_write_frame
2012 Apr 18
2
png2theora.c + QImage
...ttp://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 input variable to save the YUV data
is: uint8_t *yuv
In the function theora_write_frame(), my input variable for the YUV
data must be: unsigned char *yuv
As you already noti...