Hi,
I am new to video field. I have to convert YUV422 to RGB565. YUV422 1280x720 is the input and RGB565 960x540 should be the output.
I now have Y, Cb and Cr data extracted. Can someone help me with ideas on conversion and packing..
Regards,
Akshith
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
First convert to 8:8:8 RGB using the usual conversion matrices. Then reduce the number of bits from 8:8:8 to 5:6:5 and pack them into a 16 bit word.
http://www.fourcc.org/fccyvrgb.php
Code:// RGB 8:8:8 to RGB 5:6:5 W16 = (R8 >> 3) << 11 // top 5 bits of R into top 5 bits of W16 W16 |= (G8 >> 2) << 5 // top 6 bits of G into middle 6 bits of W16 W16 |= (B8 >> 3) // top 5 bits of B into lower 5 bits of W16
Last edited by jagabo; 16th Aug 2013 at 15:52.
-
Thanks for the reply. Please suggest any tool to view RGB565 file. I have tried Xnview and rgbview, but didn't work.
Similar Threads
-
h264 encoding for the web have to be 422 or 420?
By marcorocchini in forum Newbie / General discussionsReplies: 12Last Post: 4th Jul 2013, 00:58 -
YUV 4:2:0 to RGB
By toshyuki in forum ProgrammingReplies: 15Last Post: 8th Oct 2012, 12:12 -
MXF XDCAM HD 422 loses stereophony?
By elmuz in forum Video ConversionReplies: 0Last Post: 2nd May 2011, 05:29 -
ProRes 422 (LT) 4.29GB wont open
By RenderFi in forum MacReplies: 8Last Post: 11th Dec 2010, 09:54 -
Composite to RGB conversion
By soneman in forum Newbie / General discussionsReplies: 7Last Post: 8th Sep 2009, 18:02