I am searching for the codes of LC and RC for a long time, but i couldn't succeed to find a logical calculation. HDMI specification EDID Detailed Timing Descriptor has this pixel clock value as 2 byte (16 bit) from 0.01 to 655.35 MhZ. Of course this doesn't help us.
Unfortunately i couldn't confirm HSEQ and HSVS. We have to confirm first to be sure. That confirmation has been done for HS HFP HBP VFP VBP VS and most probably VDP.
Ragnarok2040 thinks RC and LC refer to low-pass filter and ripple filter. I don't know why he thinks so.
I gave up on RC and LC because
1) HF + HB gives us active horizontal lines in VCK units (If you use the values in paranthesis in ps2videomodes.txt)
2) By help of active horizontal pixels we can calculate total horizontal lines (HF+HB+HS+HBP+HFP)
Horizontal frequency: (pixel frequency) / (Total number of horizontal lines)
from that equation we need to know either pixel frequency (or pixel-clock rate) or Horizontal frequency as we already know the total number of horizontal lines.
But if we assume RC, LC defines clock rate, HF + HB give us active horizontal lines and HSVS gives us horizontal frequency our logic is flawed. Because we have to define 2 of these variables and the 3rd should be calculated.
Also the first thing came to my mind for HSVS was of course Horizontal Frequency / Vertical Frequency but from this formula: Vertical frequency: (horizontal frequency) / (Total number of vertical lines) it should be equal to total number of vertical lines which isn't.
I did a few calculations for VESA-2b and other modes and confirmed HS HFP HBP VFP VBP VS and most probably VDP unfortunately i still lack the needed calculations for HSEQ and HSVS
also you can't just add HFP + HBP + HS. You have horizontal sync, horizontal front porch and horizontal back porch but you are missing the active pixels which i think equals to HF + HB, also all horizontal resolutions are in VCK units not pixels. If you look at other tables for these resolutions you will see that HFP HBP and HS values are too big to fit on a normal screen if they were in pixels. We would just lose 540 pixels (these are not viewable)
Here is my post which i am referring to:
http://psx-scene.com/forums/f19/gs-m...tml#post963539
of course i can be corrected.
Also i agree that small vertical frequency changes can be done without changing pixel clock, just by changing front and back porchs so my logic was flawed to totally abandon RC and LC just for this.
But again the problem i described above persists. We have to declare only 2 of this 3 in registers.
a)Pixel clock rate
b)Total number of horizontal lines
c)Horizontal frequency
so to get 1080p @ 60 hz * or another totally new VGA mode which will let us define custom resolutions and bury the black-border problems, we have to have control over horizontal/vertical frequency or pixel clock rate.
*i doubt if this is achievable because we don't know for sure if PS2 is able to go at such high pixel-clock rates, it requires 148.5 mhz and the max ps2 uses in a video mode is 135 mhz for 1280 x 1024 75 mhz vertical frequency mode. But the good news is ps2 can support 1080p @ 50 hz since its pixel clock rate is 123.75 which is below 135 mhz.
EDIT:I wrote 130 instead of 135.

