X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfbits.c;h=748866752c9bf396ddd5fa6ad1c5fa7023669868;hb=2f62eecb5564f15f242246570501aaad8b22536d;hp=0fb7c2259165e55ab9292b772fa8fa6985917850;hpb=5ac0a484d6e3398aa3174e1d1f2be9b3e3561bd0;p=swftools.git diff --git a/lib/modules/swfbits.c b/lib/modules/swfbits.c index 0fb7c22..7488667 100644 --- a/lib/modules/swfbits.c +++ b/lib/modules/swfbits.c @@ -157,9 +157,18 @@ int swf_SetJPEGBits(TAG * t,char * fname,int quality) } else if(cinfo.out_color_space == JCS_YCbCr) { - //FIXME - fprintf(stderr, "Error: Can't convert YCbCr(YUV) to RGB.\n"); - return -1; + for (y=0;y>8); + js[x*3+1] = y - ((88*(u-128)-183*(v-128))>>8); + js[x*3+2] = y + ((455 * (u-128))>>8); + } + } } else if(cinfo.out_color_space == JCS_CMYK) {