hoglet67 / RGBtoHDMI

Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI
GNU General Public License v3.0
847 stars 115 forks source link

Theory of operation of a scalar #319

Open bzuidgeest opened 1 year ago

bzuidgeest commented 1 year ago

This might not be the to most usual question, but do you know of any resources I can study to understand the inner workings of a solution like this?

I understand the separate parts. analog digital conversion, processing, output. But I have difficulty understanding how the input and output are mostly kept in sync. I expect some timing tricks and such, but I cannot seem to get my head around it. I

I understand this is not a teaching project and I don't expect you to write a tutorial or make a video or something, but with all these "scalers" on the market I cannot find much using google that explains the theory in any practical way.

If you know them could you point to some resources on the topic.

IanSB commented 1 year ago

@bzuidgeest

But I have difficulty understanding how the input and output are mostly kept in sync. I expect some timing tricks and such, but I cannot seem to get my head around it.

The sampling clocks and HDMI video output are kept locked to the source video using software phase locked loops so I suggest you search for info on "phase locked loops" and "genlock" (which is the term used for locking one video signal to another and that also uses phase locked loops)

bzuidgeest commented 1 year ago

Thank you, phase locked loops are something I only know from radios and such. I will try searching for it in combination with genlock. I already searched for genlock, but I get so many results for selling hardware. Hopefully adding "phase locked loop" to it will get me some theory. Seems this is one of those things nobody has written a tutorial for. Strange thing in a time where there is a tutorial for almost anything on the net.