# HG changeset patch # User arpi # Date 1005434890 0 # Node ID 318c240363c73ab21df7461f2cf3dedb214603fd # Parent 7847d6b7ad3dcdef5c8b880a2c7ae196245464b6 uyvy->uv12 added diff -r 7847d6b7ad3d -r 318c240363c7 postproc/rgb2rgb.c --- a/postproc/rgb2rgb.c Sat Nov 10 20:39:23 2001 +0000 +++ b/postproc/rgb2rgb.c Sat Nov 10 23:28:10 2001 +0000 @@ -813,3 +813,41 @@ :::"memory"); #endif } + +/** + * + * height should be a multiple of 2 and width should be a multiple of 16 (if this is a + * problem for anyone then tell me, and ill fix it) + */ +void uyvytoyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, + unsigned int width, unsigned int height, + unsigned int lumStride, unsigned int chromStride, unsigned int srcStride) +{ + int y; + const int chromWidth= width>>1; + for(y=0; y>1; + for(y=0; y