RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Mode Flags (Rev #2, changes)

Showing changes from revision #1 to #2: Added | Removed | Changed

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls?
» Wimp_SetMode
» Mode Specifier Block
» Mode Variable Numbers
» Mode Flags

Mode Flags

Bit Meaning when set
0 Non-graphics mode
1 Teletext mode
2 Gap mode
3 BBC gap mode ( (Modes 3 & 6)
4 Hi-res mono mode
5 Double height VDU chars
6 Hardware scroll never disabled used
7 Fully Full definable 256 8-bit entry palette (only valid if Log2BPP == 3)
65536 colour RGB 5:6:5 mode (only valid if Log2BPP == 4)
8 Interlaced mode, with hardware using two separate framebuffers.
9 Greyscale palette, gradient from black to white (only valid in palletised modes)
Indicates chroma sub-sampling mode (if Log2BPP == 7)
10-11 Reserved
12-15 Data format and colour space information

Bits 12 and 13 specify the basic data format/colour space. Bits 14 and 15 then give further details, to describe a number of sub-formats.

Data format Sub format Meaning
(bits 12-13) (bits 14-15)
00: RGB bit 14 RGB order (0=VIDC style &BGR, 1=&RGB)
bit 15 Alpha mode (0=transparency/supremacy, 1=alpha)
01: Misc 00 CMYK
Other Reserved
10: YCbCr bit 14 range (0=full, 1=video)
bit 15 standard (0=ITU-R BT.601, 1=ITU-R BT.709)
11: Reserved

Notes

The bits in the returning register when using OS_ReadModeVariables provides the information (as shown above) about the current screen mode.

See also

  • Mode Specifier Block
  • OS_ReadModeVariable
  • Wimp_SetMode
  • OS_ScreenMode
  • Valid Mode Variable Combinations
Revision from August 10, 2013 17:15:11 by Jeffrey Lee (213)
Forward in time (5 more) | Back in time (1 more) | See current | Hide changes | History | Rollback | Linked from: Mode Variable Numbers, Mode Selector Block, Sprite Mode Word, Font Background Blending, OS_SpriteOp 38, Valid Mode Variable Combinations, GraphicsV 17, Mode Selector Block (français), Sprite Mode Word (français), Screen Mode Types

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys