Lcd companion boards support (VKLCD50RTA & VKLCD70RT)
« Back to documentation index
vdc5.h File Reference
Graphics driver wrapper function definitions in C.
More...
Go to the source code of this file.
Enumerations
enum drv_video_input_sel_t { DRV_INPUT_SEL_VDEC = 0,
DRV_INPUT_SEL_EXT = 1
}
enum drv_video_extin_format_t {
DRV_VIDEO_EXTIN_FORMAT_RGB888 = 0,
DRV_VIDEO_EXTIN_FORMAT_RGB666 ,
DRV_VIDEO_EXTIN_FORMAT_RGB565 ,
DRV_VIDEO_EXTIN_FORMAT_BT656 ,
DRV_VIDEO_EXTIN_FORMAT_BT601 ,
DRV_VIDEO_EXTIN_FORMAT_YCBCR422 ,
DRV_VIDEO_EXTIN_FORMAT_YCBCR444
}
enum drv_onoff_t { DRV_OFF = 0,
DRV_ON = 1
}
enum drv_extin_input_line_t { DRV_EXTIN_LINE_525 = 0,
DRV_EXTIN_LINE_625 = 1
}
enum drv_extin_h_pos_t { DRV_EXTIN_H_POS_CBYCRY = 0,
DRV_EXTIN_H_POS_YCRYCB ,
DRV_EXTIN_H_POS_CRYCBY ,
DRV_EXTIN_H_POS_YCBYCR
}
Functions
drv_graphics_error_t DRV_Graphics_Init (drv_lcd_config_t *drv_lcd_config)
Graphics initialization processing.
drv_graphics_error_t DRV_Graphics_Video_init (drv_video_input_sel_t drv_video_input_sel, drv_video_ext_in_config_t *drv_video_ext_in_config)
Video initialization processing.
drv_graphics_error_t DRV_Graphics_Lcd_Port_Init (PinName *pin, uint32_t pin_count)
LCD output port initialization processing.
drv_graphics_error_t DRV_Graphics_Lvds_Port_Init (PinName *pin, uint32_t pin_count)
LVDS output port initialization processing.
drv_graphics_error_t DRV_Graphics_Dvinput_Port_Init (PinName *pin, uint32_t pin_count)
Digital video inpout port initialization processing.
drv_graphics_error_t DRV_Graphics_Irq_Handler_Set (vdc5_int_type_t irq, uint16_t num, void(*callback)(vdc5_int_type_t ))
Interrupt callback setup This function performs the following processing:
Enables the interrupt when the pointer to the corresponding interrupt callback function is specified.
drv_graphics_error_t DRV_Graphics_Start (drv_graphics_layer_t layer_id)
Start the graphics surface read process.
drv_graphics_error_t DRV_Graphics_Stop (drv_graphics_layer_t layer_id)
Stop the graphics surface read process.
drv_graphics_error_t DRV_Video_Start (drv_video_input_channel_t video_input_ch)
Start the video surface write process.
drv_graphics_error_t DRV_Video_Stop (drv_video_input_channel_t video_input_ch)
Stop the video surface write process.
drv_graphics_error_t DRV_Graphics_Read_Setting (drv_graphics_layer_t layer_id, void *framebuff, uint32_t fb_stride, drv_graphics_format_t gr_format, drv_wr_rd_swa_t wr_rd_swa, drv_rect_t *gr_rect)
Graphics surface read process setting.
drv_graphics_error_t DRV_Graphics_Read_Change (drv_graphics_layer_t layer_id, void *framebuff)
Graphics surface read buffer change process.
drv_graphics_error_t DRV_Graphics_Read_Change_More (drv_graphics_layer_t layer_id, void *framebuff, uint32_t fb_stride, void *slide_dir)
Graphics surface read buffer change process.
drv_graphics_error_t DRV_Video_Write_Setting (drv_video_input_channel_t video_input_ch, drv_graphics_video_col_sys_t col_sys, void *framebuff, uint32_t fb_stride, drv_video_format_t video_format, drv_wr_rd_swa_t wr_rd_swa, uint16_t video_write_buff_vw, uint16_t video_write_buff_hw, drv_video_adc_vinsel_t video_adc_vinsel)
Video surface write process setting.
drv_graphics_error_t DRV_Video_Write_Setting_Digital (void *framebuff, uint32_t fb_stride, drv_video_format_t video_format, drv_wr_rd_swa_t wr_rd_swa, uint16_t video_write_buff_vw, uint16_t video_write_buff_hw, drv_rect_t *cap_area)
Video surface write process setting for digital input.
drv_graphics_error_t DRV_Video_Write_Change (drv_video_input_channel_t video_input_ch, void *framebuff, uint32_t fb_stride)
Video surface write buffer change process.
Detailed Description
Graphics driver wrapper function definitions in C.
Version: 1.00
Rev: 199
Date: 2014-05-23 16:33:52 +0900#
Definition in file vdc5.h .
Enumeration Type Documentation
Enumerator:
DRV_EXTIN_H_POS_CBYCRY
Cb/Y/Cr/Y (BT656/601), Cb/Cr (YCbCr422)
DRV_EXTIN_H_POS_YCRYCB
Y/Cr/Y/Cb (BT656/601), setting prohibited (YCbCr422)
DRV_EXTIN_H_POS_CRYCBY
Cr/Y/Cb/Y (BT656/601), setting prohibited (YCbCr422)
DRV_EXTIN_H_POS_YCBYCR
Y/Cb/Y/Cr (BT656/601), Cr/Cb (YCbCr422)
Definition at line 205 of file vdc5.h .
Enumerator:
DRV_EXTIN_LINE_525
525 lines
DRV_EXTIN_LINE_625
625 lines
Definition at line 199 of file vdc5.h .
Enumerator:
Definition at line 193 of file vdc5.h .
Enumerator:
DRV_VIDEO_EXTIN_FORMAT_RGB888
RGB888 Not support
DRV_VIDEO_EXTIN_FORMAT_RGB666
RGB666
DRV_VIDEO_EXTIN_FORMAT_RGB565
RGB565
DRV_VIDEO_EXTIN_FORMAT_BT656
BT6556
DRV_VIDEO_EXTIN_FORMAT_BT601
BT6501
DRV_VIDEO_EXTIN_FORMAT_YCBCR422
YCbCr422
DRV_VIDEO_EXTIN_FORMAT_YCBCR444
YCbCr444 Not support
Definition at line 182 of file vdc5.h .
Enumerator:
DRV_INPUT_SEL_VDEC
Video decoder output signals
DRV_INPUT_SEL_EXT
Signals supplied via the external input pins
Definition at line 176 of file vdc5.h .
Function Documentation
drv_graphics_error_t DRV_Graphics_Dvinput_Port_Init
(
PinName *
pin ,
uint32_t
pin_count
)
Digital video inpout port initialization processing.
Parameters:
[in] pin : Pin assign for digital video input port
[in] pin_count : Total number of pin assign
Return values:
Definition at line 383 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Init
(
drv_lcd_config_t *
drv_lcd_config )
Graphics initialization processing.
Parameters:
[in] drv_lcd_config : LCD configuration
Return values:
Definition at line 400 of file vdc5.c .
Interrupt callback setup This function performs the following processing:
Enables the interrupt when the pointer to the corresponding interrupt callback function is specified.
Registers the specified interrupt callback function.
Disables the interrupt when the pointer to the corresponding interrupt callback function is not specified. Parameters:
[in] irq : VDC5 interrupt type
[in] num : Interrupt line number
[in] * callback : Interrupt callback function pointer
Return values:
Definition at line 314 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Lcd_Port_Init
(
PinName *
pin ,
uint32_t
pin_count
)
LCD output port initialization processing.
Parameters:
[in] pin : Pin assign for LCD output
[in] pin_count : Total number of pin assign
Return values:
Definition at line 347 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Lvds_Port_Init
(
PinName *
pin ,
uint32_t
pin_count
)
LVDS output port initialization processing.
Parameters:
[in] pin : Pin assign for LVDS output
[in] pin_count : Total number of pin assign
Return values:
Definition at line 365 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Read_Change
(
drv_graphics_layer_t
layer_id ,
void *
framebuff
)
Graphics surface read buffer change process.
Parameters:
[in] layer_id : Graphics layer ID
[in] framebuff : Base address of the frame buffer
Return values:
Definition at line 897 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Read_Change_More
(
drv_graphics_layer_t
layer_id ,
void *
framebuff ,
uint32_t
fb_stride ,
void *
slide_dir
)
Graphics surface read buffer change process.
Parameters:
[in] layer_id : Graphics layer ID
[in] framebuff : Base address of the frame buffer
Return values:
Definition at line 1050 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Read_Setting
(
drv_graphics_layer_t
layer_id ,
void *
framebuff ,
uint32_t
fb_stride ,
drv_graphics_format_t
gr_format ,
drv_wr_rd_swa_t
wr_rd_swa ,
drv_rect_t *
gr_rect
)
Graphics surface read process setting.
Description:
This function supports the following 4 image format. YCbCr422, RGB565, RGB888, ARGB8888
Parameters:
[in] layer_id : Graphics layer ID
[in] framebuff : Base address of the frame buffer
[in] fb_stride : Line offset address of the frame buffer
[in] gr_format : Format of the frame buffer read signal
[in] gr_rect : Graphics display area
Return values:
Definition at line 808 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Start
(
drv_graphics_layer_t
layer_id )
Start the graphics surface read process.
Parameters:
[in] layer_id : Graphics layer ID
Return values:
Definition at line 649 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Stop
(
drv_graphics_layer_t
layer_id )
Stop the graphics surface read process.
Parameters:
[in] layer_id : Graphics layer ID
Return values:
Definition at line 695 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Video_init
(
drv_video_input_sel_t
drv_video_input_sel ,
drv_video_ext_in_config_t *
drv_video_ext_in_config
)
Video initialization processing.
Parameters:
[in] drv_video_ext_in_config : Video configuration
Return values:
Definition at line 578 of file vdc5.c .
drv_graphics_error_t DRV_Video_Start
(
drv_video_input_channel_t
video_input_ch )
Start the video surface write process.
Parameters:
[in] video_input_ch : Video input channel
Return values:
Definition at line 734 of file vdc5.c .
drv_graphics_error_t DRV_Video_Stop
(
drv_video_input_channel_t
video_input_ch )
Stop the video surface write process.
Parameters:
[in] video_input_ch : Video input channel
Return values:
Definition at line 767 of file vdc5.c .
drv_graphics_error_t DRV_Video_Write_Change
(
drv_video_input_channel_t
video_input_ch ,
void *
framebuff ,
uint32_t
fb_stride
)
Video surface write buffer change process.
Parameters:
[in] video_input_ch : Video input channle
[in] framebuff : Base address of the frame buffer
[in] fb_stride : Line offset address of the frame buffer
Return values:
Definition at line 1348 of file vdc5.c .
drv_graphics_error_t DRV_Video_Write_Setting
(
drv_video_input_channel_t
video_input_ch ,
drv_graphics_video_col_sys_t
col_sys ,
void *
framebuff ,
uint32_t
fb_stride ,
drv_video_format_t
video_format ,
drv_wr_rd_swa_t
wr_rd_swa ,
uint16_t
video_write_buff_vw ,
uint16_t
video_write_buff_hw ,
drv_video_adc_vinsel_t
video_adc_vinsel
)
Video surface write process setting.
Description:
This function set the video write process. Input form is weave (progressive) mode fixed. This function supports the following 3 image format. YCbCr422, RGB565, RGB888
Parameters:
[in] video_input_ch : Video input channel
[in] col_sys : Analog video signal color system
[in] adc_vinsel : Video input pin
[in] framebuff : Base address of the frame buffer
[in] fb_stride [byte] : Line offset address of the frame buffer
[in] video_format : Frame buffer video-signal writing format
[in] wr_rd_swa : Frame buffer swap setting
[in] video_write_size_vw [px]: output height
[in] video_write_size_hw [px]: output width
[in] video_adc_vinsel : Input pin control
Return values:
Definition at line 1121 of file vdc5.c .
drv_graphics_error_t DRV_Video_Write_Setting_Digital
(
void *
framebuff ,
uint32_t
fb_stride ,
drv_video_format_t
video_format ,
drv_wr_rd_swa_t
wr_rd_swa ,
uint16_t
video_write_buff_vw ,
uint16_t
video_write_buff_hw ,
drv_rect_t *
cap_area
)
Video surface write process setting for digital input.
Description:
This function set the video write process for digital input. This function supports the following 3 image format. YCbCr422, RGB565, RGB888
Parameters:
[in] framebuff : Base address of the frame buffer
[in] fb_stride [byte] : Line offset address of the frame buffer
[in] video_format : Frame buffer video-signal writing format
[in] wr_rd_swa : Frame buffer swap setting
[in] video_write_size_vw [px]: output height
[in] video_write_size_hw [px]: output width
[in] cap_area : Capture area
Return values:
Definition at line 1273 of file vdc5.c .