Now I have a video question
Ale
Posts: 2,363
I want to do a tiled driver for VGA, 512x384 (because it works) with 8x8 or 4x4 tiles.
Question: It is possible to have 16 consecutive pixels with more than 4 different colors ? From what I see waitvid (if I understood correctly) only has place for 4 colors... How do you do it ?
Question: It is possible to have 16 consecutive pixels with more than 4 different colors ? From what I see waitvid (if I understood correctly) only has place for 4 colors... How do you do it ?
Comments
Basically then it ends up being one byte per pixel. This wastes some bits because the Prop does not have 256 colors. Also you have to watch for sync signals and such. 00 does not equal black, but sync.
On the wiki, there is a discussion about color, and some color map tables and screenie I put together to help in color selection and just to know what values are what. That is for TV graphics, but will give you an idea of how it's gonna work out on VGA.
Waitvid only does 1 bit per pixel, or 2 bits per pixel, when working with 16 pixel or 32 pixel frames otherwise.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
Post Edited (potatohead) : 9/9/2008 2:33:58 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
As a start, i reduced the number of waitvids to a half and increased the number of clocks per pixel to the double, I suppose I'D be getting half the horizontal resolution... the picture does not sync. What is going on ? any ideas ?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
The horiz sync pulses were 28 us apart (more or less) in the 640x240, but only 17.12us in my 320x240 version. Why ?
Original:
Modified
My problem was that the number of clocks per frame was set to 32 as the original and not 32 times the number of pixel clocks. So I was still using 32 clocks total instead of 32. Nothing like measuring the horizontal sync freq.
Now I have to correct the jitter.