TV Color Confusion
I want to take in the RGB values of an image file and display that image on a TV using the composite video jack of the PropRPM board. I understand that RGB data is 2 bytes for R, 2 bytes for G, and 2 bytes for B. I also have found the transformation matrix on this page: http://en.wikipedia.org/wiki/YUV
I need to draw each pixel on the screen according to its RGB data. My question is how I transform the RGB data into something that is displayed through the Propeller. I know that colors in the Propeller are an 8 bit number, with bits 7, 6, 5, and 4 specify the chroma, bit 3 specifies color, and bits 2, 1, and 0 specify the luminance. However, I am unsure of how the YUV goes into these 8 bits, and also the methods used to display this 8 bit color at a specific pixel on the screen.
Any help would be greatly appreciated, Im not even sure if this is the correct way to go about it...
I need to draw each pixel on the screen according to its RGB data. My question is how I transform the RGB data into something that is displayed through the Propeller. I know that colors in the Propeller are an 8 bit number, with bits 7, 6, 5, and 4 specify the chroma, bit 3 specifies color, and bits 2, 1, and 0 specify the luminance. However, I am unsure of how the YUV goes into these 8 bits, and also the methods used to display this 8 bit color at a specific pixel on the screen.
Any help would be greatly appreciated, Im not even sure if this is the correct way to go about it...
Comments
http://forums.parallax.com/showthread.php?p=809933
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
Where is it that you actually display the image? I would like to mess around with where the image is displayed, the size of it, and so on... But I cant quite figure out where that is.
My other question is just about how the File data type works. Is it just stored as an array of bytes? Or is it something different. I would like to know because instead of directly dealing with a File data type I will be storing my own data, and would like it to be in the format that File puts it in.