IOCTL |
Args |
Success |
Failed |
Description
|
DISP_CMD_START_CMD_CACHE |
|
0 |
errno |
Start cache. Behind the IO command will not be executed immediately, but wait until call DISP_CMD_EXECUTE_CMD_AND_STOP_CACHE after execution in conjunction.
|
DISP_CMD_EXECUTE_CMD_AND_STOP_CACHE |
|
0 |
errno |
Execute commands and stop the cache.
|
DISP_CMD_SET_BKCOLOR |
- screen [0, 1]
- background colour (__disp_color_t *)
|
0 |
errno |
Set the background colour.
|
DISP_CMD_GET_BKCOLOR |
- screen [0, 1]
- background colour (__disp_color_t *)
|
0 |
errno |
Get the background colour.
|
DISP_CMD_SET_COLORKEY |
- screen [0, 1]
- color key parameter (__disp_colorkey_t *)
|
0 |
errno |
Set color key.
|
DISP_CMD_GET_COLORKEY |
- screen [0, 1]
- color key parameter (__disp_colorkey_t *)
|
0 |
errno |
Get color key.
|
DISP_CMD_SET_PALETTE_TBL |
- screen id (0/1)
- Address (__u32 *)
- offset (__u32, 4bytes alignment)
- size (4bytes alignment, unit byte)
|
0 |
errno |
Set the palette, the total size of the system palette is 256 * 4 byte, and can
be set to any period of continuous regional palette.
|
DISP_CMD_GET_PALETTE_TBL |
- screen [0, 1]
- Address (__u32 *)
- offset (__u32, 4bytes alignment)
- size (4bytes alignment, unit byte)
|
0 |
errno |
Get palette.
|
DISP_CMD_SCN_GET_WIDTH |
|
The width of the screen. |
|
Get the current width of the screen.
|
DISP_CMD_SCN_GET_HEIGHT |
|
The height of the screen. |
|
Get the current height of the screen.
|
DISP_CMD_GET_OUTPUT_TYPE |
|
Output type (__disp_output_type_t) |
|
Get the current output type (LCD,TV,HDMI,VGA,NONE).
|
DISP_CMD_SET_GAMMA_TABLE |
- screen [0, 1]
- Address(__u32 *)
- N/A
- size (4bytes alignment, unit byte)
|
0 |
errno |
Set the gamma correction coefficient table.
|
DISP_CMD_GAMMA_CORRECTION_ON |
|
0 |
errno |
Enable gamma correction.
|
DISP_CMD_GAMMA_CORRECTION_OFF |
|
0 |
errno |
Disable gamma correction.
|
DISP_CMD_SET_BRIGHT |
- screen [0, 1]
- brightness value ([0-100], default: 50)
|
0 |
errno |
Set the brightness of the screen.
|
DISP_CMD_GET_BRIGHT |
|
The brightness of the screen. |
|
Get the brightness of the screen.
|
DISP_CMD_SET_CONTRAST |
- screen [0, 1]
- contrast values ([0-100], default: 50)
|
0 |
errno |
Set the contrast of the screen.
|
DISP_CMD_GET_CONTRAST |
|
The contrast of the screen. |
|
Get the contrast of the screen.
|
DISP_CMD_SET_SATURATION |
- screen [0, 1]
- saturation value ([0-100], default: 50)
|
0 |
errno |
Set screen saturation.
|
DISP_CMD_GET_SATURATION |
|
The saturation of the screen. |
|
Get screen saturation.
|
DISP_CMD_SET_HUE (sun4i only) |
- screen [0, 1]
- saturation value ([0-100], default: 50)
|
0 |
errno |
Set screen hue.
|
DISP_CMD_GET_HUE (sun4i only) |
|
screen hue |
|
Get screen hue.
|
DISP_CMD_ENHANCE_ON |
|
0 |
errno |
Enable screen enhance function.
|
DISP_CMD_ENHANCE_OFF |
|
0 |
errno |
Disable screen enhance function.
|
DISP_CMD_GET_ENHANCE_EN |
|
|
|
Query whether screen enhance function is enabled.
|
DISP_CMD_DE_FLICKER_ON |
|
0 |
errno |
Enable deflicker function (in the output interlace where used).
|
DISP_CMD_DE_FLICKER_OFF |
|
0 |
errno |
Disable deflicker function.
|
IOCTL |
Args |
Success |
Failed |
Description
|
DISP_CMD_LAYER_REQUEST |
- screen[0, 1]
- layers work mode (__disp_layer_work_mode_t)
|
layer_handle |
NULL |
The application layer, the drive will only be allocated to a layer out, did not
make any of the layers set, it is recommended to set this parameter layers call
DISP_CMD_LAYER_SET_PARA command immediately after the application layer.
|
DISP_CMD_LAYER_RELEASE |
- screen [0, 1]
- layer_handle
|
0 |
errno |
The release layer, after the release of the layers, all the layers registers
are cleared to the default of value, so if you want to re-think using the layer
must re-apply.
|
DISP_CMD_LAYER_OPEN |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Open the Layer, that can see the layers.
|
DISP_CMD_LAYER_CLOSE |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Close layer.
|
DISP_CMD_LAYER_SET_FB |
- screen [0, 1]
- layer_handle
- framebuffer information (__disp_fb_t *)
|
0 |
errno |
Set layer framebuffer, the original source window remains set.
|
DISP_CMD_LAYER_GET_FB |
- screen [0, 1]
- layer_handle
- framebuffer information (__disp_fb_t *)
|
0 |
errno |
Get the layer's framebuffer.
|
DISP_CMD_LAYER_SET_SRC_WINDOW |
- screen id (0/1)
- layer_handle
- source window (__disp_rect *)
|
0 |
errno |
Set the layer's source window
|
DISP_CMD_LAYER_GET_SRC_WINDOW |
- screen [0, 1]
- layer_handle
- source window(__disp_rect *)
|
0 |
errno |
Get the layer's source window.
|
DISP_CMD_LAYER_SET_SCN_WINDOW |
- screen [0, 1]
- layer_handle
- screen window (__disp_rect *)
|
0 |
errno |
Set the layer's screen window.
|
DISP_CMD_LAYER_GET_SCN_WINDOW |
- screen [0, 1]
- layer_handle
- screen window (__disp_rect *)
|
0 |
errno |
Get the layer's screen window.
|
DISP_CMD_LAYER_SET_PARA |
- screen [0, 1]
- layer_handle
- layers parameter (__disp_layer_info_t *)
|
0 |
errno |
Set layer parameters, all the parameters of the layer are set by the command,
in addition to the priority (priority adjustment can only be implemented
through DISP_CMD_LAYER_TOP / DISP_CMD_LAYER_BOTTOM).
|
DISP_CMD_LAYER_GET_PARA |
- screen [0, 1]
- layer_handle
- layers parameter(__disp_layer_info_t *)
|
0 |
errno |
Get layer parameter.
|
DISP_CMD_LAYER_ALPHA_ON |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Open layers of global alpha function, that use surface alpha.
|
DISP_CMD_LAYER_ALPHA_OFF |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Close layers of global alpha function, that use surface alpha.
|
DISP_CMD_LAYER_GET_ALPHA_EN |
- screen [0, 1]
- layer_handle
|
|
|
Query whether layer has global alpha enabled.
|
DISP_CMD_LAYER_SET_ALPHA_VALUE |
- screen [0, 1]
- layer_handle
- global alpha value (__u32)
|
0 |
errno |
Set a layer's global alpha value.
|
DISP_CMD_LAYER_GET_ALPHA_VALUE |
- screen [0, 1]
- layer_handle
|
global alpha value |
|
Get a layer's global alpha value.
|
DISP_CMD_LAYER_CK_ON |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Enable color key on a layer.
|
DISP_CMD_LAYER_CK_OFF |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Disable a layer's color key.
|
DISP_CMD_LAYER_GET_CK_EN |
- screen [0, 1]
- layer_handle
|
- 0: colour key disabled.
- 1: colour key enabled.
|
|
Query whether layer has color key enabled.
|
DISP_CMD_LAYER_SET_PIPE |
- screen [0, 1]
- layer_handle
- pipe (__u32)
|
0 |
errno |
Set the layer pipe, a pipe layer can only be high priority coverage low
priority, rather than do alpha blending.
|
DISP_CMD_LAYER_GET_PIPE |
- screen [0, 1]
- layer_handle
|
pipe |
|
Get the pipe associated with the layer.
|
DISP_CMD_LAYER_TOP |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Set top layer, the relative relationship between the other layers priority remains unchanged.
|
DISP_CMD_LAYER_BOTTOM |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Set bottom layer, the relative relationship between the other layers priority remains unchanged.
|
DISP_CMD_LAYER_GET_PRIO |
- screen [0, 1]
- layer_handle
|
priority |
|
Get priority layers (layers from the bottom to the top priority from low to high).
|
DISP_CMD_LAYER_SET_SMOOTH |
- screen [0, 1]
- layer_handle
- smooth (__disp_video_smooth_t)
|
0 |
errno |
Set the layer of smooth (the layer must scaler layers).
|
DISP_CMD_LAYER_GET_SMOOTH |
- screen [0, 1]
- layer_handle
|
smooth (__disp_video_smooth_t) |
|
Get the layers smooth (the layer must scaler layer).
|
DISP_CMD_LAYER_SET_BRIGHT |
- screen [0, 1]
- layer_handle
- brightness value
([0-100], default: 50)
|
0 |
errno |
Set the brightness of the scaler layer.
|
DISP_CMD_LAYER_GET_BRIGHT |
- screen [0, 1]
- layer_handle
|
brightness level |
|
Get scaler layers brightness.
|
DISP_CMD_LAYER_SET_CONTRAST |
- screen [0, 1]
- layer_handle
- contrast value
([0-100], default: 50)
|
0 |
errno |
Set scaler layer's contrast.
|
DISP_CMD_LAYER_GET_CONTRAST |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Get scaler layers contrast.
|
DISP_CMD_LAYER_SET_SATURATION |
- screen [0, 1]
- layer_handle
- saturation value
([0-100], default: 50)
|
0 |
errno |
Set scaler layers saturation
|
DISP_CMD_LAYER_GET_SATURATION |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Set the layer of smooth (the layer must scaler layers).
|
DISP_CMD_LAYER_SET_HUE |
- screen [0, 1]
- layer_handle
- tone/hue value
([0-100], default: 50)
|
0 |
errno |
Set scaler layers tone/hue.
|
DISP_CMD_LAYER_GET_HUE |
- screen [0, 1]
- layer_handle
|
tone/hue value |
|
Get scaler layers tone/hue.
|
DISP_CMD_LAYER_ENHANCE_ON |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Enable scaler layers enhance function.
|
DISP_CMD_LAYER_ENHANCE_OFF |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Disable scaler layers enhance function.
|
DISP_CMD_LAYER_GET_ENHANCE_EN |
- screen [0, 1]
- layer_handle
|
|
|
Query whether a scaler layers enhance function is enabled.
|
DISP_CMD_LAYER_VPP_ON |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Enable video post-processing functions (only for scaler layers).
|
DISP_CMD_LAYER_VPP_OFF |
- screen [0, 1]
- layer_handle
|
0 |
errno |
Disable video post-processing functions.
|
DISP_CMD_LAYER_GET_VPP_EN |
- screen [0, 1]
- layer_handle
|
|
|
Query whether a layers vpp function is enabled.
|
DISP_CMD_LAYER_SET_LUMA_SHARP_LEVEL |
- screen [0, 1]
- layer_handle
- Luminance sharpening level [0-4]
(0: disabled; 1-4: higher level, sharper)
|
0 |
errno |
Set luminance sharpening level.
|
DISP_CMD_LAYER_GET_LUMA_SHARP_LEVEL |
- screen [0, 1]
- layer_handle
|
Luminance sharpening level |
|
Get luminance sharpening level.
|
DISP_CMD_LAYER_SET_CHROMA_SHARP_LEVEL |
- screen [0, 1]
- layer_handle
- hue sharpening level [0-4]
(0: disabled; 1-4: higher level, sharper)
|
0 |
errno |
Set hue sharpening level.
|
DISP_CMD_LAYER_GET_CHROMA_SHARP_LEVEL |
- screen [0, 1]
- layer_handle
|
hue sharpening level |
|
Get hue sharpening level.
|
DISP_CMD_LAYER_SET_WHITE_EXTEN_LEVEL |
- screen [0, 1]
- layer_handle
- White level expansion value [0-4]
(0: disabled; 1-4: higher level, sharper)
|
0 |
errno |
Set white level expansion value.
|
DISP_CMD_LAYER_GET_WHITE_EXTEN_LEVEL |
- screen [0, 1]
- layer_handle
|
white level expansion value |
|
Get white level expansion value.
|
DISP_CMD_LAYER_SET_BLACK_EXTEN_LEVEL |
- screen [0, 1]
- layer_handle
- Black level expansion value [0-4]
(0: disabled; 1-4: higher level, sharper)
|
0 |
errno |
Set black level expansion value.
|
DISP_CMD_LAYER_GET_BLACK_EXTEN_LEVEL |
- screen [0, 1]
- layer_handle
|
black level expansion value |
|
Get black level expansion value.
|
DISP_CMD_SPRITE_OPEN |
|
0 |
errno |
Global switch to open the sprite, sprite, each the sprite block of switch can be set.
|
DISP_CMD_SPRITE_CLOSE |
|
0 |
errno |
Close sprite.
|
DISP_CMD_SPRITE_SET_FORMAT |
- screen [0, 1]
- format (__disp_pixel_fmt_t)
- pixel sequence (__disp_pixel_seq_t)
|
0 |
errno |
Set the format of the sprite Note only sprite block format is the same, so the format is valid for all block, each block can no longer separate set its format.
|
DISP_CMD_SPRITE_GLOBAL_ALPHA_ENABLE |
|
0 |
errno |
Enable global alpha on sprite.
|
DISP_CMD_SPRITE_GLOBAL_ALPHA_DISABLE |
|
0 |
errno |
Disable global alpha on sprite.
|
DISP_CMD_SPRITE_GET_GLOBAL_ALPHA_ENABLE |
|
|
|
Query the current state of global alpha on the sprite.
|
DISP_CMD_SPRITE_SET_GLOBAL_ALPHA_VALUE |
- screen [0, 1]
- global alpha value
|
0 |
errno |
Set the value of global alpha on the sprite.
|
DISP_CMD_SPRITE_GET_GLOBAL_ALPHA_VALUE |
|
global alpha value |
|
Get the value of global alpha on the sprite.
|
DISP_CMD_SPRITE_SET_ORDER |
- screen [0, 1]
- block handle
- target block handle
|
0 |
errno |
A block to the front of the target block.
|
DISP_CMD_SPRITE_GET_TOP_BLOCK |
|
block handle |
|
Get the handle of the top block.
|
DISP_CMD_SPRITE_GET_BOTTOM_BLOCK |
|
block handle |
|
Get the handle of the bottom block.
|
DISP_CMD_SPRITE_SET_PALETTE_TBL |
- screen [0, 1]
- Address (__u32 *)
- offset (__u32, 4 bytes alignment)
- size (4 bytes alignment, unit byte)
|
0 |
errno |
Set sprite palette table.
|
DISP_CMD_SPRITE_GET_BLOCK_NUM |
|
Number of blocks used. |
|
Get the number of blocks in use.
|
DISP_CMD_SPRITE_BLOCK_REQUEST |
- screen [0, 1]
- block parameter (__disp_sprite_block_para_t *)
|
0 |
errno |
Request a sprite block.
|
DISP_CMD_SPRITE_BLOCK_RELEASE |
- screen [0, 1]
- block handle
|
0 |
errno |
Release a sprite block.
|
DISP_CMD_SPRITE_BLOCK_OPEN |
- screen [0, 1]
- block handle
|
0 |
errno |
Open a sprite block.
|
DISP_CMD_SPRITE_BLOCK_CLOSE |
- screen [0, 1]
- block handle
|
0 |
errno |
Close a sprite block.
|
DISP_CMD_SPRITE_BLOCK_SET_SOURCE_WINDOW |
- screen [0, 1]
- block handle
- block source window (__disp_rect_t *)
|
0 |
errno |
Set the sprite block the source window, because the sprite block without
scaling function, driven only concerned with x and y, while the width and height of the width and height of the screen window.
|
DISP_CMD_SPRITE_BLOCK_GET_SOURCE_WINDOW |
- screen [0, 1]
- block handle
- block source window (__disp_rect_t *)
|
0 |
errno |
Get the source window of a sprite block.
|
DISP_CMD_SPRITE_BLOCK_SET_SCREEN_WINDOW |
- screen [0, 1]
- block handle
- block screen window (__disp_rect_t *)
|
0 |
errno |
Set screen window of a sprite block.
|
DISP_CMD_SPRITE_BLOCK_GET_SCREEN_WINDOW |
- screen [0, 1]
- block handle
- block screen window (__disp_rect_t *)
|
0 |
errno |
Get screen window of a sprite block.
|
DISP_CMD_SPRITE_BLOCK_SET_FB |
- screen [0, 1]
- block handle
- block framebuffer (__disp_fb_t *)
|
0 |
errno |
Set the framebuffer information for the sprite block, only cares about the
address and line width.
|
DISP_CMD_SPRITE_BLOCK_GET_FB |
- screen [0, 1]
- block handle
- block framebuffer(__disp_fb_t *)
|
0 |
errno |
Get framebuffer information of a sprite block.
|
DISP_CMD_SPRITE_BLOCK_SET_PARA |
- screen [0, 1]
- block handle
- block parameters (__disp_sprite_block_para_t *)
|
0 |
errno |
Set sprite block parameters.
|
DISP_CMD_SPRITE_BLOCK_GET_PARA |
- screen [0, 1]
- block handle
- block parameters (__disp_sprite_block_para_t *)
|
0 |
errno |
Get sprite block parameters
|
DISP_CMD_SPRITE_BLOCK_SET_TOP |
- screen [0, 1]
- block handle
|
0 |
errno |
Move the sprite block to the top.
|
DISP_CMD_SPRITE_BLOCK_SET_BOTTOM |
- screen [0, 1]
- block handle
|
0 |
errno |
Move the sprite block to the bottom.
|
DISP_CMD_SPRITE_BLOCK_GET_PREV_BLOCK |
- screen [0, 1]
- block handle
|
block handle |
|
Get the previous sprite block handle.
|
DISP_CMD_SPRITE_BLOCK_GET_NEXT_BLOCK |
- screen [0, 1]
- block handle
|
block handle |
errno |
Get the next block handle.
|
DISP_CMD_SPRITE_BLOCK_GET_PRIO |
- screen [0, 1]
- block handle
|
block priority |
|
Get the ordering of the sprite block (from bottom to top).
|