|
Hi friends,
I'm trying to convert a YUV frames into each BMP images, Presently i acheived to read a Y,U and V data from YUV frames,Actaully our image ie., YUV frame is 352x288.
So we do some interpolation for converting our Y,U,V data into 352x288 size. Then i coverted to RGB using the following formulas
*red++ = 1.164*((*yimage++)-16) +( 1.596*((*voutimage++)-128));
*green++ =1.164*((*yimage++)-16) - (0.391*((*uoutimage++)-128)) - 0.813*((*voutimage++)-128));
*blue++ = 1.164*((*yimage++)-16) + (2.018*((*uoutimage++)-128));
I have RGB values,this values directly store in a array because image data generally write reverse in BMP files.
Newly opened BMP file,i wrote a imagebuffer array write into that file,But I can,t get
full size image ie.,352x288.Also I want to get perfect coversion.
Pls help me.Share your views and ideas.
Thanks
|