Difference between revisions of "Unit GlobalConst"

From Ultibo.org
Jump to: navigation, search
Line 2,417: Line 2,417:
 
|-
 
|-
 
|colspan="2"|''Color format constants''
 
|colspan="2"|''Color format constants''
 +
|-
 +
|colspan="2"|See: https://en.wikipedia.org/wiki/Color_depth and https://en.wikipedia.org/wiki/RGBA_color_space
 
|-
 
|-
 
| <code>COLOR_FORMAT_ARGB32 = 0;</code>
 
| <code>COLOR_FORMAT_ARGB32 = 0;</code>
Line 2,430: Line 2,432:
 
| 32 bits per pixel Blue/Green/Red/Alpha (BGRA8888)
 
| 32 bits per pixel Blue/Green/Red/Alpha (BGRA8888)
 
|-
 
|-
| <code>COLOR_FORMAT_RGB24 = 4;</code>
+
| <code>COLOR_FORMAT_URGB32 = 4;</code>
 +
| 32 bits per pixel Unused/Red/Green/Blue (URGB8888)
 +
|-
 +
| <code>COLOR_FORMAT_UBGR32 = 5;</code>
 +
| 32 bits per pixel Unused/Blue/Green/Red (UBGR8888)
 +
|-
 +
| <code>COLOR_FORMAT_RGBU32 = 6;</code>
 +
| 32 bits per pixel Red/Green/Blue/Unused (RGBU8888)
 +
|-
 +
| <code>COLOR_FORMAT_BGRU32 = 7;</code>
 +
| 32 bits per pixel Blue/Green/Red/Unused (BGRU8888)
 +
|-
 +
| <code>COLOR_FORMAT_RGB24 = 8;</code>
 
| 24 bits per pixel Red/Green/Blue (RGB888)
 
| 24 bits per pixel Red/Green/Blue (RGB888)
 
|-
 
|-
| <code>COLOR_FORMAT_BGR24 = 5;</code>
+
| <code>COLOR_FORMAT_BGR24 = 9;</code>
 
| 24 bits per pixel Blue/Green/Red (BGR888)
 
| 24 bits per pixel Blue/Green/Red (BGR888)
 
|-
 
|-
| <code>COLOR_FORMAT_RGB18 = 6;</code>
+
| <code>COLOR_FORMAT_RGB16 = 10;</code>
| 18 bits per pixel Red/Green/Blue (RGB666)
+
|-
+
| <code>COLOR_FORMAT_RGB16 = 7;</code>
+
 
| 16 bits per pixel Red/Green/Blue (RGB565)
 
| 16 bits per pixel Red/Green/Blue (RGB565)
 
|-
 
|-
| <code>COLOR_FORMAT_RGB15 = 8;</code>
+
| <code>COLOR_FORMAT_BGR16 = 11;</code>
 +
| 16 bits per pixel Blue/Green/Red (BGR565)
 +
|-
 +
| <code>COLOR_FORMAT_RGB15 = 12;</code>
 
| 15 bits per pixel Red/Green/Blue (RGB555)
 
| 15 bits per pixel Red/Green/Blue (RGB555)
 
|-
 
|-
| <code>COLOR_FORMAT_RGB8 = 9;</code>
+
| <code>COLOR_FORMAT_BGR15 = 13;</code>
 +
| 15 bits per pixel Blue/Green/Red (BGR555)
 +
|-
 +
| <code>COLOR_FORMAT_RGB8 = 14;</code>
 
| 8 bits per pixel Red/Green/Blue (RGB332)
 
| 8 bits per pixel Red/Green/Blue (RGB332)
 +
|-
 +
| <code>COLOR_FORMAT_BGR8 = 15;</code>
 +
| 8 bits per pixel Blue/Green/Red (BGR233)
 +
|-
 +
| <code>COLOR_FORMAT_GRAY16 = 16;</code>
 +
| 16 bits per pixel grayscale
 +
|-
 +
| <code>COLOR_FORMAT_GRAY8 = 17;</code>
 +
| 8 bits per pixel grayscale
 +
|-
 +
| <code>COLOR_FORMAT_INDEX16 = 18;</code>
 +
| 16 bits per pixel palette index
 +
|-
 +
| <code>COLOR_FORMAT_INDEX8 = 19;</code>
 +
| 8 bits per pixel palette index
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>COLOR_FORMAT_MAX = 19;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>COLOR_FORMAT_DEFAULT = COLOR_FORMAT_ARGB32;</code>
 +
| The default color format (Used for the COLOR_* constants above)
 
|-
 
|-
 
|colspan="2"|&nbsp;
 
|colspan="2"|&nbsp;
Line 2,455: Line 2,497:
 
|}
 
|}
 
</div></div>
 
</div></div>
<br />
+
<br />  
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 
<div style="font-size: 14px; padding-left: 12px;">'''Universal size constants''' <code> SIZE_* </code></div>
 
<div style="font-size: 14px; padding-left: 12px;">'''Universal size constants''' <code> SIZE_* </code></div>

Revision as of 05:14, 23 November 2016

Return to Unit Reference


Description


To be documented

Constants



[Expand]
Universal error constants ERROR_*


[Expand]
Universal value constants INVALID_*


[Expand]
File position constants FILE_*


[Expand]
File open/create constants CREATE_*


[Expand]
File creation flag constants FILE_FLAG_*


[Expand]
File attribute constants FILE_ATTRIBUTE_*


[Expand]
Filesystem attribute constants FS_*


[Expand]
Timeout constants INFINITE =*


[Expand]
TLS constants TLS_*


[Expand]
Wait constants WAIT_*


[Expand]
Thread state constants STILL_*


[Expand]
TimeZone constants TIME_ZONE_*


[Expand]
Universal key code constants KEY_CODE_*


[Expand]
Universal scan code constants SCAN_CODE_*


[Expand]
Universal color constants COLOR_*


[Expand]
Universal size constants SIZE_*


[Expand]
Universal time constants MILLISECONDS_*


[Expand]
Ultibo time constants TIME_TICKS_*


[Expand]
Unix/Linux time constants UNIX_TIME_*


[Expand]
FreePascal time constants PASCAL_*


[Expand]
System Call constants SYSTEM_CALL_*


[Expand]
Machine Type constants MACHINE_TYPE_*


[Expand]
Board Type constants BOARD_TYPE_*


[Expand]
CPU Arch constants CPU_ARCH_*


[Expand]
CPU Type constants CPU_TYPE_*


[Expand]
CPU Model constants CPU_MODEL_*


[Expand]
CPU Description constants CPU_DESCRIPTION_*


[Expand]
CPU State constants CPU_STATE_*


[Expand]
CPU ID constants CPU_ID_*


[Expand]
CPU Affinity constants CPU_AFFINITY_*


[Expand]
FPU Type constants FPU_TYPE_*


[Expand]
FPU State constants FPU_STATE_*


[Expand]
GPU Type constants GPU_TYPE_*


[Expand]
GPU State constants GPU_STATE_*


[Expand]
Cache Type constants CACHE_TYPE_*


[Expand]
DMA Direction constants DMA_DIR_*


[Expand]
DMA DREQ ID constants DMA_DREQ_ID_*


[Expand]
GPIO Pin constants GPIO_PIN_*


[Expand]
GPIO Function constants GPIO_FUNCTION_*


[Expand]
GPIO Level constants GPIO_LEVEL_*


[Expand]
GPIO Pull constants GPIO_PULL_*


[Expand]
GPIO Trigger constants GPIO_TRIGGER_*


[Expand]
Virtual GPIO Pin constants VIRTUAL_GPIO_PIN_*


[Expand]
Virtual GPIO Function constants VIRTUAL_GPIO_FUNCTION_*


[Expand]
Serial Baud Rate constants SERIAL_BAUD_RATE_*


[Expand]
Serial Data bit constants SERIAL_DATA_*


[Expand]
Serial Stop bit constants SERIAL_STOP_*


[Expand]
Serial Parity constants SERIAL_PARITY_*


[Expand]
Serial Flow Control constants SERIAL_FLOW_*


[Expand]
I2C Address constants I2C_ADDRESS_*


[Expand]
SPI Mode constants SPI_MODE_*


[Expand]
SPI Chip Select constants SPI_CS_*


[Expand]
SPI Clock Phase (CPHA) constants SPI_CLOCK_PHASE_*


[Expand]
SPI Clock Polarity (CPOL) constants SPI_CLOCK_POLARITY_*


[Expand]
SPI Chip Select Polarity (CSPOL) constants SPI_CS_POLARITY_*


[Expand]
Power ID constants POWER_ID_*


[Expand]
Power State constants POWER_STATE_*


[Expand]
Clock ID constants CLOCK_ID_*


[Expand]
Clock State constants CLOCK_STATE_*


[Expand]
Turbo ID constants TURBO_ID_*


[Expand]
Voltage ID constants VOLTAGE_ID_*


[Expand]
Temperature ID constants TEMPERATURE_ID_*


[Expand]
Console Direction constants CONSOLE_DIRECTION_*


[Expand]
Console Position constants CONSOLE_POSITION_*


[Expand]
Framebuffer Depth constants FRAMEBUFFER_DEPTH_*


[Expand]
Framebuffer Pixel Order constants FRAMEBUFFER_ORDER_*


[Expand]
Framebuffer Alpha Mode constants FRAMEBUFFER_MODE_*


[Expand]
Framebuffer Rotation constants FRAMEBUFFER_ROTATION_*


[Expand]
Log Level constants LOG_LEVEL_*


[Expand]
Logging Protocol constants LOGGING_PROTOCOL_*


[Expand]
Logging Facility constants LOGGING_FACILITY_*


[Expand]
Logging Severity constants LOGGING_SEVERITY_*


[Expand]
Handle Type constants HANDLE_TYPE_*


[Expand]
Filesystem Cache Mode constants FILESYS_CACHE_MODE_*


[Expand]
Cursor constants CURSOR_ARROW_*


Type definitions


None defined

Public variables


None defined

Function declarations


None defined


Return to Unit Reference