search for: rgb2yuv

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

Did you mean: rgb2yik
2012 Apr 18
2
png2theora.c + QImage
...uck starts at this comment: // LOOK HERE (line 313) 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, u...