Implementation of the General Timing Formulae
Marcel Sondaar
| gtf.bas | Implementation of the General Timing Formulae |
| Functions | |
| LoadDefaultDisplayValues | Gets a standard value for the monitor settings |
| GTF_ComputeFromRefresh | Computes the CRTC settings given a resolution and frequency |
| GTF_ComputeFromHFreq | Computes the CRTC settings given a resolution and horizontal frequency |
| Todo’s | |
| write me | |
| Functions | |
| GTF_ComputeFromDotclock | Computes the CRTC settings given a resolution and dot clock |
| Todo’s | |
| write me |
Sub LoadDefaultDisplayValues( ByRef vdp As VESA_display_properties )
Gets a standard value for the monitor settings
| vdp | A pointer to a <VESA_dislpay_properties> structure that needs to be filled out |
A <MonitorSettings> Structure containing default values
Function GTF_ComputeFromRefresh( ByRef Refresh As Single, ByRef vmp As VESA_mode_properties, ByRef vdp As VESA_display_properties, ByRef vt As VESA_timings ) As Integer
Computes the CRTC settings given a resolution and frequency
| vfreq | The refresh rate to use in Hz |
| vmp | The mode’s properties |
| vdp | The display’s properties |
| vt | A pointer to a structure of vesa timings to be computed. |
Returns zero on success, nonzero if the timing could not be established
Computes the CRTC settings given a resolution and horizontal frequency
| h_freq | The horizontal frequency in Hz |
| vmp | The mode’s properties |
| vdp | The display’s properties |
| vt | A pointer to a structure of vesa timings to be computed. |
Returns zero on success, nonzero if the timing could not be established
Function GTF_ComputeFromDotclock( ByVal Dotclock As Single, ByRef vmp As VESA_mode_properties, ByRef vdp As VESA_display_properties, ByRef vt As VESA_timings ) As Integer
Computes the CRTC settings given a resolution and dot clock
| dotclock | The dot clock to use in MHz |
| vmp | The mode’s properties |
| vdp | The display’s properties |
| vt | A pointer to a structure of vesa timings to be computed. |
Returns zero on success, nonzero if the timing could not be established
Gets a standard value for the monitor settings
Sub LoadDefaultDisplayValues( ByRef vdp As VESA_display_properties )
Computes the CRTC settings given a resolution and frequency
Function GTF_ComputeFromRefresh( ByRef Refresh As Single, ByRef vmp As VESA_mode_properties, ByRef vdp As VESA_display_properties, ByRef vt As VESA_timings ) As Integer
Computes the CRTC settings given a resolution and dot clock
Function GTF_ComputeFromDotclock( ByVal Dotclock As Single, ByRef vmp As VESA_mode_properties, ByRef vdp As VESA_display_properties, ByRef vt As VESA_timings ) As Integer