Commit ca1955a4 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Add support for CVT 3 byte codes & VTB-EXT blocks. Other misc fixes.

Detail:
  c/ScrModes, h/modex - Added support for CVT 3 byte codes & VTB-EXT blocks. Add framework for sorting modes by EDID priority. Move CEA extension block handling into its own function & increase error checking.
  Resources/Germany/CmdHelp, Resources/UK/CmdHelp - Fix missing message token & incorrect syntax of syntax message
Admin:
  Code submission from William Harden
  Tested on Raspberry Pi


Version 0.47. Tagged as 'ScrModes-0_47'
parent 92a69868
No preview for this file type
No preview for this file type
/* (0.46) /* (0.47)
* *
* This file is automatically maintained by srccommit, do not edit manually. * This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1. * Last processed by srccommit version: 1.1.
* *
*/ */
#define Module_MajorVersion_CMHG 0.46 #define Module_MajorVersion_CMHG 0.47
#define Module_MinorVersion_CMHG #define Module_MinorVersion_CMHG
#define Module_Date_CMHG 16 Feb 2015 #define Module_Date_CMHG 20 Feb 2015
#define Module_MajorVersion "0.46" #define Module_MajorVersion "0.47"
#define Module_Version 46 #define Module_Version 47
#define Module_MinorVersion "" #define Module_MinorVersion ""
#define Module_Date "16 Feb 2015" #define Module_Date "20 Feb 2015"
#define Module_ApplicationDate "16-Feb-15" #define Module_ApplicationDate "20-Feb-15"
#define Module_ComponentName "ScrModes" #define Module_ComponentName "ScrModes"
#define Module_ComponentPath "castle/RiscOS/Sources/Video/UserI/ScrModes" #define Module_ComponentPath "castle/RiscOS/Sources/Video/UserI/ScrModes"
#define Module_FullVersion "0.46" #define Module_FullVersion "0.47"
#define Module_HelpVersion "0.46 (16 Feb 2015)" #define Module_HelpVersion "0.47 (20 Feb 2015)"
#define Module_LibraryVersionInfo "0:46" #define Module_LibraryVersionInfo "0:47"
This diff is collapsed.
...@@ -141,7 +141,7 @@ typedef struct ...@@ -141,7 +141,7 @@ typedef struct
uint32_t external_clock; /* rate of external clock in kHz (use it instead of VCO), or -1 */ uint32_t external_clock; /* rate of external clock in kHz (use it instead of VCO), or -1 */
uint8_t syncpol; /* sync polarity code (0..3 for now) */ uint8_t syncpol; /* sync polarity code (0..3 for now) */
uint8_t interlaced; /* whether mode is interlaced using two seperate framebuffers (0 or 1) */ uint8_t interlaced; /* whether mode is interlaced using two seperate framebuffers (0 or 1) */
uint8_t freq, spare2; /* explicit padding so struct is N*4 bytes long */ uint8_t freq, spare2; /* explicit padding so struct is N*4 bytes long */
} ModeDefinition; } ModeDefinition;
/* As stored internally by ScreenModes module */ /* As stored internally by ScreenModes module */
...@@ -154,6 +154,16 @@ typedef struct mode_description_ ...@@ -154,6 +154,16 @@ typedef struct mode_description_
uint32_t line_hz; /* line rate in Hz (for diagnostics only) */ uint32_t line_hz; /* line rate in Hz (for diagnostics only) */
uint32_t frame_hz:8; /* frame rate in Hz, for user frame rate selection */ uint32_t frame_hz:8; /* frame rate in Hz, for user frame rate selection */
uint32_t frame_mhz:24; /* also in mHz (millihertz), for more precise cmp */ uint32_t frame_mhz:24; /* also in mHz (millihertz), for more precise cmp */
uint8_t priority; /* Bits 0-2 = 'Parameter type' - where did the definition come from? (EDID 1.4 Section 5 */
/* 0 = Undefined (MDF or something which overrides all else) */
/* 1 = Preferred Timing Mode from base EDID */
/* 2 = A Detailed timing mode in the base EDID */
/* 3 = Any detailed timing modes in extension blocks */
/* 4 = Any optional 3-byte CVT codes in the base EDID or extension block */
/* 5 = Standard Timings listed in Base EDID or extension blocks */
/* 6 = Additional timing mode information: Established Timings I, II, III, */
/* default GTF, GTF secondary curve and CVT */
/* 7 = Base VIDEO MODE (defined as 640 X 480 X 60Hz). */
} ModeDescription, *ModeDescriptionRef; } ModeDescription, *ModeDescriptionRef;
/* Description of a monitor & its associated modes */ /* Description of a monitor & its associated modes */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment