Showing changes from revision #0 to #1:
Added | Removed | Changed
__value_in_regs PixelFormatList HAL_VideoPixelFormatList(void)
Entry | |
---|---|
- |
Exit | |
---|---|
a1-a2 | PixelFormatList struct describing available formats |
This is an internal call for OS use only and should not be used by user software. User software should use GraphicsV instead of interacting with the HAL directly.
The call returns a list of pixel formats supported by the hardware, in the form of a PixelFormatList struct:
typedef struct { uint32_t NColour; uint32_t ModeFlags; uint32_t Log2BPP; } PixelFormat; typedef struct { PixelFormat *formats; uint32_t count; } PixelFormatList;
Each pixel format is expressed as a tuple of (NColour, ModeFlags, Log2BPP) mode variables, as used by GraphicsV 17. See Valid Mode Variable Combinations for a full list of pixel formats currently understood by RISC OS.