Hi all,
I have been looking into the VGA and other display standard outputs recently. If I understand correctly, VGA is able to output essentially two vertically different display modes, 400 lines and 480 lines.
How does a monitor know the pixel aspect ratio it should output on the display in a given mode?
In 320x200 resolution (which is practically a 640x400 resolution as far as the VGA output on the wire is concerned, iiuc?) pixels have an aspect ratio of 5:6 since the 320x200 image is getting stretched to cover essentially a 4:3 screen estate.
Int 320x240 Mode-X resolution, or in 640x480 VGA resolution, pixels have a square aspect ratio, since this pixel count is shown on the same 4:3 screen estate, and the aspect ratios match.
However, how does a VGA monitor know essentially how much downwards to increment the electron beam on each horizontal retrace pulse?
In 400 lines modes there are 400 horizontal retraces per frame, and in 480 lines modes there will be 480 horizontal retraces. Wouldn't the electron beam advance vertically the same amount by each retrace period independent of how many lines there are total? Well, we know that is not the case, since otherwise both 400 and 480 lines would have the same pixel aspect ratio, but instead, somehow the VGA monitor knows that in 320x200 modes (400 lines modes?), it needs to traverse down the screen "quicker" than in a 480 lines mode, since both modes produce a 4:3 image.
How does the monitor know how to do that? There is no extra wire information pin on the VGA connector to carry that info, and it is not e.g. the hsync pulse duration either that would control this?
Do VGA monitors implement some hardcoded line counting logic? If so, what would happen if one creates just a slightly nonstandard video mode, e.g. a 399 lines mode instead of a 400 lines mode?
What about the pixel aspect ratio of other video modes? 640x480 modes are 1:1 pixel aspect ratio, 640x400 is 5:6 (vertically stretch 20% taller to make 640x400 cover 4:3 screen estate). There are a lot of other video modes with different video card standards. What kind of pixel aspect ratios are in use in those modes? Are there others than 1:1 and 5:6?
How do the monitors know which pixel aspect ratio to implement?
Thanks!
I have been looking into the VGA and other display standard outputs recently. If I understand correctly, VGA is able to output essentially two vertically different display modes, 400 lines and 480 lines.
How does a monitor know the pixel aspect ratio it should output on the display in a given mode?
In 320x200 resolution (which is practically a 640x400 resolution as far as the VGA output on the wire is concerned, iiuc?) pixels have an aspect ratio of 5:6 since the 320x200 image is getting stretched to cover essentially a 4:3 screen estate.
Int 320x240 Mode-X resolution, or in 640x480 VGA resolution, pixels have a square aspect ratio, since this pixel count is shown on the same 4:3 screen estate, and the aspect ratios match.
However, how does a VGA monitor know essentially how much downwards to increment the electron beam on each horizontal retrace pulse?
In 400 lines modes there are 400 horizontal retraces per frame, and in 480 lines modes there will be 480 horizontal retraces. Wouldn't the electron beam advance vertically the same amount by each retrace period independent of how many lines there are total? Well, we know that is not the case, since otherwise both 400 and 480 lines would have the same pixel aspect ratio, but instead, somehow the VGA monitor knows that in 320x200 modes (400 lines modes?), it needs to traverse down the screen "quicker" than in a 480 lines mode, since both modes produce a 4:3 image.
How does the monitor know how to do that? There is no extra wire information pin on the VGA connector to carry that info, and it is not e.g. the hsync pulse duration either that would control this?
Do VGA monitors implement some hardcoded line counting logic? If so, what would happen if one creates just a slightly nonstandard video mode, e.g. a 399 lines mode instead of a 400 lines mode?
What about the pixel aspect ratio of other video modes? 640x480 modes are 1:1 pixel aspect ratio, 640x400 is 5:6 (vertically stretch 20% taller to make 640x400 cover 4:3 screen estate). There are a lot of other video modes with different video card standards. What kind of pixel aspect ratios are in use in those modes? Are there others than 1:1 and 5:6?
How do the monitors know which pixel aspect ratio to implement?
Thanks!