Video library for GR-PEACH

Dependents:   Trace_Program2 GR-PEACH_Camera_in_barcode GR-PEACH_LCD_sample GR-PEACH_LCD_4_3inch_sample ... more

Embed: (wiki syntax)

« Back to documentation index

r_vdc5.h File Reference

r_vdc5.h File Reference

VDC5 driver API definitions. More...

Go to the source code of this file.

Data Structures

struct  vdc5_period_rect_t
struct  vdc5_pd_disp_rect_t
struct  vdc5_lvds_t
struct  vdc5_init_t
struct  vdc5_sync_delay_t
struct  vdc5_ext_in_sig_t
struct  vdc5_input_t
struct  vdc5_vsync_cpmpe_t
struct  vdc5_sync_ctrl_t
struct  vdc5_lcd_tcon_timing_t
struct  vdc5_output_t
struct  vdc5_int_t
struct  vdc5_scalingdown_rot_t
struct  vdc5_write_t
struct  vdc5_write_chg_t
struct  vdc5_width_read_fb_t
struct  vdc5_read_t
struct  vdc5_read_chg_t
struct  vdc5_start_t
struct  vdc5_nr_param_t
struct  vdc5_noise_reduction_t
struct  vdc5_color_matrix_t
struct  vdc5_sharpness_ctrl_t
struct  vdc5_enhance_sharp_t
struct  vdc5_lti_ctrl_t
struct  vdc5_enhance_lti_t
struct  vdc5_black_t
struct  vdc5_alpha_argb1555_t
struct  vdc5_alpha_pixel_t
struct  vdc5_alpha_blending_t
struct  vdc5_alpha_rect_t
struct  vdc5_scl_und_sel_t
struct  vdc5_alpha_blending_rect_t
struct  vdc5_chromakey_t
struct  vdc5_clut_t
struct  vdc5_calibr_bright_t
struct  vdc5_calibr_contrast_t
struct  vdc5_calibr_dither_t
struct  vdc5_disp_calibration_t
struct  vdc5_gamma_correction_t

Enumerations

enum  vdc5_error_t {
  VDC5_OK = 0, VDC5_ERR_PARAM_CHANNEL, VDC5_ERR_PARAM_LAYER_ID, VDC5_ERR_PARAM_NULL,
  VDC5_ERR_PARAM_BIT_WIDTH, VDC5_ERR_PARAM_UNDEFINED, VDC5_ERR_PARAM_EXCEED_RANGE, VDC5_ERR_PARAM_CONDITION,
  VDC5_ERR_IF_CONDITION, VDC5_ERR_RESOURCE_CLK, VDC5_ERR_RESOURCE_VSYNC, VDC5_ERR_RESOURCE_INPUT,
  VDC5_ERR_RESOURCE_OUTPUT, VDC5_ERR_RESOURCE_LVDS_CLK, VDC5_ERR_RESOURCE_LAYER, VDC5_ERR_NUM
}
enum  vdc5_channel_t { VDC5_CHANNEL_0 = 0, VDC5_CHANNEL_1, VDC5_CHANNEL_NUM }
enum  vdc5_onoff_t { VDC5_OFF = 0, VDC5_ON = 1 }
enum  vdc5_edge_t { VDC5_EDGE_RISING = 0, VDC5_EDGE_FALLING = 1 }
enum  vdc5_sig_pol_t { VDC5_SIG_POL_NOT_INVERTED = 0, VDC5_SIG_POL_INVERTED = 1 }
enum  vdc5_scaling_type_t { VDC5_SC_TYPE_SC0 = 0, VDC5_SC_TYPE_SC1, VDC5_SC_TYPE_OIR, VDC5_SC_TYPE_NUM }
enum  vdc5_graphics_type_t {
  VDC5_GR_TYPE_GR0 = 0, VDC5_GR_TYPE_GR1, VDC5_GR_TYPE_GR2, VDC5_GR_TYPE_GR3,
  VDC5_GR_TYPE_VIN, VDC5_GR_TYPE_OIR, VDC5_GR_TYPE_NUM
}
enum  vdc5_layer_id_t {
  VDC5_LAYER_ID_ALL = -1, VDC5_LAYER_ID_0_WR = (VDC5_SC_TYPE_SC0 + 0), VDC5_LAYER_ID_1_WR = (VDC5_SC_TYPE_SC1 + 0), VDC5_LAYER_ID_OIR_WR = (VDC5_SC_TYPE_OIR + 0),
  VDC5_LAYER_ID_0_RD = (VDC5_SC_TYPE_NUM + VDC5_GR_TYPE_GR0), VDC5_LAYER_ID_1_RD = (VDC5_SC_TYPE_NUM + VDC5_GR_TYPE_GR1), VDC5_LAYER_ID_2_RD = (VDC5_SC_TYPE_NUM + VDC5_GR_TYPE_GR2), VDC5_LAYER_ID_3_RD = (VDC5_SC_TYPE_NUM + VDC5_GR_TYPE_GR3),
  VDC5_LAYER_ID_VIN_RD = (VDC5_SC_TYPE_NUM + VDC5_GR_TYPE_VIN), VDC5_LAYER_ID_OIR_RD = (VDC5_SC_TYPE_NUM + VDC5_GR_TYPE_OIR), VDC5_LAYER_ID_NUM = (VDC5_SC_TYPE_NUM + VDC5_GR_TYPE_NUM)
}
enum  vdc5_panel_clksel_t {
  VDC5_PANEL_ICKSEL_IMG = 0, VDC5_PANEL_ICKSEL_IMG_DV, VDC5_PANEL_ICKSEL_EXT_0, VDC5_PANEL_ICKSEL_EXT_1,
  VDC5_PANEL_ICKSEL_PERI, VDC5_PANEL_ICKSEL_LVDS, VDC5_PANEL_ICKSEL_LVDS_DIV7, VDC5_PANEL_ICKSEL_NUM
}
enum  vdc5_panel_clk_dcdr_t {
  VDC5_PANEL_CLKDIV_1_1 = 0, VDC5_PANEL_CLKDIV_1_2, VDC5_PANEL_CLKDIV_1_3, VDC5_PANEL_CLKDIV_1_4,
  VDC5_PANEL_CLKDIV_1_5, VDC5_PANEL_CLKDIV_1_6, VDC5_PANEL_CLKDIV_1_7, VDC5_PANEL_CLKDIV_1_8,
  VDC5_PANEL_CLKDIV_1_9, VDC5_PANEL_CLKDIV_1_12, VDC5_PANEL_CLKDIV_1_16, VDC5_PANEL_CLKDIV_1_24,
  VDC5_PANEL_CLKDIV_1_32, VDC5_PANEL_CLKDIV_NUM
}
enum  vdc5_lvds_in_clk_sel_t {
  VDC5_LVDS_INCLK_SEL_IMG = 0, VDC5_LVDS_INCLK_SEL_DV_0, VDC5_LVDS_INCLK_SEL_DV_1, VDC5_LVDS_INCLK_SEL_EXT_0,
  VDC5_LVDS_INCLK_SEL_EXT_1, VDC5_LVDS_INCLK_SEL_PERI
}
enum  vdc5_lvds_ndiv_t { VDC5_LVDS_NDIV_1 = 0, VDC5_LVDS_NDIV_2, VDC5_LVDS_NDIV_4 }
enum  vdc5_lvds_pll_nod_t { VDC5_LVDS_PLL_NOD_1 = 0, VDC5_LVDS_PLL_NOD_2, VDC5_LVDS_PLL_NOD_4, VDC5_LVDS_PLL_NOD_8 }
enum  vdc5_input_sel_t { VDC5_INPUT_SEL_VDEC = 0, VDC5_INPUT_SEL_EXT = 1 }
enum  vdc5_extin_format_t {
  VDC5_EXTIN_FORMAT_RGB888 = 0, VDC5_EXTIN_FORMAT_RGB666, VDC5_EXTIN_FORMAT_RGB565, VDC5_EXTIN_FORMAT_BT656,
  VDC5_EXTIN_FORMAT_BT601, VDC5_EXTIN_FORMAT_YCBCR422, VDC5_EXTIN_FORMAT_YCBCR444
}
enum  vdc5_extin_ref_hsync_t { VDC5_EXTIN_REF_H_EAV = 0, VDC5_EXTIN_REF_H_SAV = 1 }
enum  vdc5_extin_input_line_t { VDC5_EXTIN_LINE_525 = 0, VDC5_EXTIN_LINE_625 = 1 }
enum  vdc5_extin_h_pos_t { VDC5_EXTIN_H_POS_CBYCRY = 0, VDC5_EXTIN_H_POS_YCRYCB, VDC5_EXTIN_H_POS_CRYCBY, VDC5_EXTIN_H_POS_YCBYCR }
enum  vdc5_res_vs_in_sel_t { VDC5_RES_VS_IN_SEL_SC0 = 0, VDC5_RES_VS_IN_SEL_SC1 = 1 }
enum  vdc5_lcd_tcon_polmode_t { VDC5_LCD_TCON_POLMD_NORMAL = 0, VDC5_LCD_TCON_POLMD_1X1REV, VDC5_LCD_TCON_POLMD_1X2REV, VDC5_LCD_TCON_POLMD_2X2REV }
enum  vdc5_lcd_tcon_refsel_t { VDC5_LCD_TCON_REFSEL_HSYNC = 0, VDC5_LCD_TCON_REFSEL_OFFSET_H = 1 }
enum  vdc5_lcd_tcon_pin_t {
  VDC5_LCD_TCON_PIN_NON = -1, VDC5_LCD_TCON_PIN_0, VDC5_LCD_TCON_PIN_1, VDC5_LCD_TCON_PIN_2,
  VDC5_LCD_TCON_PIN_3, VDC5_LCD_TCON_PIN_4, VDC5_LCD_TCON_PIN_5, VDC5_LCD_TCON_PIN_6
}
enum  vdc5_lcd_tcon_sigsel_t {
  VDC5_LCD_TCONSIG_STVA_VS = 0, VDC5_LCD_TCONSIG_STVB_VE, VDC5_LCD_TCONSIG_STH_SP_HS, VDC5_LCD_TCONSIG_STB_LP_HE,
  VDC5_LCD_TCONSIG_CPV_GCK, VDC5_LCD_TCONSIG_POLA, VDC5_LCD_TCONSIG_POLB, VDC5_LCD_TCONSIG_DE
}
enum  vdc5_lcd_outformat_t { VDC5_LCD_OUTFORMAT_RGB888 = 0, VDC5_LCD_OUTFORMAT_RGB666, VDC5_LCD_OUTFORMAT_RGB565, VDC5_LCD_OUTFORMAT_SERIAL_RGB }
enum  vdc5_lcd_clkfreqsel_t { VDC5_LCD_PARALLEL_CLKFRQ_1 = 0, VDC5_LCD_SERIAL_CLKFRQ_3, VDC5_LCD_SERIAL_CLKFRQ_4 }
enum  vdc5_lcd_scan_t { VDC5_LCD_SERIAL_SCAN_FORWARD = 0, VDC5_LCD_SERIAL_SCAN_REVERSE = 1 }
enum  vdc5_lcd_clkphase_t { VDC5_LCD_SERIAL_CLKPHASE_0 = 0, VDC5_LCD_SERIAL_CLKPHASE_1, VDC5_LCD_SERIAL_CLKPHASE_2, VDC5_LCD_SERIAL_CLKPHASE_3 }
enum  vdc5_int_type_t {
  VDC5_INT_TYPE_S0_VI_VSYNC = 0, VDC5_INT_TYPE_S0_LO_VSYNC, VDC5_INT_TYPE_S0_VSYNCERR, VDC5_INT_TYPE_VLINE,
  VDC5_INT_TYPE_S0_VFIELD, VDC5_INT_TYPE_IV1_VBUFERR, VDC5_INT_TYPE_IV3_VBUFERR, VDC5_INT_TYPE_IV5_VBUFERR,
  VDC5_INT_TYPE_IV6_VBUFERR, VDC5_INT_TYPE_S0_WLINE, VDC5_INT_TYPE_S1_VI_VSYNC, VDC5_INT_TYPE_S1_LO_VSYNC,
  VDC5_INT_TYPE_S1_VSYNCERR, VDC5_INT_TYPE_S1_VFIELD, VDC5_INT_TYPE_IV2_VBUFERR, VDC5_INT_TYPE_IV4_VBUFERR,
  VDC5_INT_TYPE_S1_WLINE, VDC5_INT_TYPE_OIR_VI_VSYNC, VDC5_INT_TYPE_OIR_LO_VSYNC, VDC5_INT_TYPE_OIR_VLINE,
  VDC5_INT_TYPE_OIR_VFIELD, VDC5_INT_TYPE_IV7_VBUFERR, VDC5_INT_TYPE_IV8_VBUFERR, VDC5_INT_TYPE_NUM
}
enum  vdc5_wr_md_t {
  VDC5_WR_MD_NORMAL = 0, VDC5_WR_MD_MIRROR, VDC5_WR_MD_ROT_90DEG, VDC5_WR_MD_ROT_180DEG,
  VDC5_WR_MD_ROT_270DEG
}
enum  vdc5_wr_rd_swa_t {
  VDC5_WR_RD_WRSWA_NON = 0, VDC5_WR_RD_WRSWA_8BIT, VDC5_WR_RD_WRSWA_16BIT, VDC5_WR_RD_WRSWA_16_8BIT,
  VDC5_WR_RD_WRSWA_32BIT, VDC5_WR_RD_WRSWA_32_8BIT, VDC5_WR_RD_WRSWA_32_16BIT, VDC5_WR_RD_WRSWA_32_16_8BIT
}
enum  vdc5_res_md_t { VDC5_RES_MD_YCBCR422 = 0, VDC5_RES_MD_RGB565, VDC5_RES_MD_RGB888, VDC5_RES_MD_YCBCR444 }
enum  vdc5_bst_md_t { VDC5_BST_MD_32BYTE = 0, VDC5_BST_MD_128BYTE }
enum  vdc5_res_inter_t { VDC5_RES_INTER_PROGRESSIVE = 0, VDC5_RES_INTER_INTERLACE = 1 }
enum  vdc5_res_fs_rate_t
enum  vdc5_res_fld_sel_t { VDC5_RES_FLD_SEL_TOP = 0, VDC5_RES_FLD_SEL_BOTTOM = 1 }
enum  vdc5_gr_ln_off_dir_t { VDC5_GR_LN_OFF_DIR_INC = 0, VDC5_GR_LN_OFF_DIR_DEC }
enum  vdc5_gr_flm_sel_t { VDC5_GR_FLM_SEL_SCALE_DOWN = 0, VDC5_GR_FLM_SEL_FLM_NUM, VDC5_GR_FLM_SEL_DISTORTION, VDC5_GR_FLM_SEL_POINTER_BUFF }
enum  vdc5_gr_format_t {
  VDC5_GR_FORMAT_RGB565 = 0, VDC5_GR_FORMAT_RGB888, VDC5_GR_FORMAT_ARGB1555, VDC5_GR_FORMAT_ARGB4444,
  VDC5_GR_FORMAT_ARGB8888, VDC5_GR_FORMAT_CLUT8, VDC5_GR_FORMAT_CLUT4, VDC5_GR_FORMAT_CLUT1,
  VDC5_GR_FORMAT_YCBCR422, VDC5_GR_FORMAT_YCBCR444, VDC5_GR_FORMAT_RGBA5551, VDC5_GR_FORMAT_RGBA8888,
  VDC5_GR_FORMAT_NUM
}
enum  vdc5_gr_ycc_swap_t
enum  vdc5_gr_disp_sel_t {
  VDC5_DISPSEL_IGNORED = -1, VDC5_DISPSEL_BACK = 0, VDC5_DISPSEL_LOWER = 1, VDC5_DISPSEL_CURRENT = 2,
  VDC5_DISPSEL_BLEND = 3, VDC5_DISPSEL_NUM = 4
}
enum  vdc5_nr_tap_t { VDC5_NR_TAPSEL_1 = 0, VDC5_NR_TAPSEL_2, VDC5_NR_TAPSEL_3, VDC5_NR_TAPSEL_4 }
enum  vdc5_nr_gain_t { VDC5_NR_GAIN_1_2 = 0, VDC5_NR_GAIN_1_4, VDC5_NR_GAIN_1_8, VDC5_NR_GAIN_1_16 }
enum  vdc5_colormtx_module_t { VDC5_COLORMTX_IMGCNT = 0, VDC5_COLORMTX_ADJ_0, VDC5_COLORMTX_ADJ_1 }
enum  vdc5_colormtx_mode_t {
  VDC5_COLORMTX_GBR_GBR = 0, VDC5_COLORMTX_GBR_YCBCR, VDC5_COLORMTX_YCBCR_GBR, VDC5_COLORMTX_YCBCR_YCBCR,
  VDC5_COLORMTX_MODE_NUM
}
enum  vdc5_colormtx_offset_t { VDC5_COLORMTX_OFFST_YG = 0, VDC5_COLORMTX_OFFST_B, VDC5_COLORMTX_OFFST_R, VDC5_COLORMTX_OFFST_NUM }
enum  vdc5_colormtx_gain_t {
  VDC5_COLORMTX_GAIN_GG = 0, VDC5_COLORMTX_GAIN_GB, VDC5_COLORMTX_GAIN_GR, VDC5_COLORMTX_GAIN_BG,
  VDC5_COLORMTX_GAIN_BB, VDC5_COLORMTX_GAIN_BR, VDC5_COLORMTX_GAIN_RG, VDC5_COLORMTX_GAIN_RB,
  VDC5_COLORMTX_GAIN_RR, VDC5_COLORMTX_GAIN_NUM
}
enum  vdc5_imgimprv_id_t { VDC5_IMG_IMPRV_0 = 0, VDC5_IMG_IMPRV_1, VDC5_IMG_IMPRV_NUM }
enum  vdc5_img_enh_sh_t { VDC5_IMGENH_SHARP_H1 = 0, VDC5_IMGENH_SHARP_H2, VDC5_IMGENH_SHARP_H3, VDC5_IMGENH_SHARP_NUM }
enum  vdc5_img_enh_lti_t { VDC5_IMGENH_LTI1 = 0, VDC5_IMGENH_LTI2, VDC5_IMGENH_LTI_NUM }
enum  vdc5_lti_mdfil_sel_t { VDC5_LTI_MDFIL_SEL_ADJ2 = 0, VDC5_LTI_MDFIL_SEL_ADJ1 }
enum  vdc5_calibr_route_t { VDC5_CALIBR_ROUTE_BCG = 0, VDC5_CALIBR_ROUTE_GBC }
enum  vdc5_panel_dither_md_t { VDC5_PDTH_MD_TRU = 0, VDC5_PDTH_MD_RDOF, VDC5_PDTH_MD_2X2, VDC5_PDTH_MD_RAND }

Functions

vdc5_error_t R_VDC5_Initialize (const vdc5_channel_t ch, const vdc5_init_t *const param, void(*const init_func)(uint32_t), const uint32_t user_num)
 VDC5 driver initialization.
vdc5_error_t R_VDC5_Terminate (const vdc5_channel_t ch, void(*const quit_func)(uint32_t), const uint32_t user_num)
 VDC5 driver termination.
vdc5_error_t R_VDC5_VideoInput (const vdc5_channel_t ch, const vdc5_input_t *const param)
 Video input setup.
vdc5_error_t R_VDC5_SyncControl (const vdc5_channel_t ch, const vdc5_sync_ctrl_t *const param)
 Sync control setup.
vdc5_error_t R_VDC5_DisplayOutput (const vdc5_channel_t ch, const vdc5_output_t *const param)
 Display output setup.
vdc5_error_t R_VDC5_CallbackISR (const vdc5_channel_t ch, const vdc5_int_t *const param)
 Interrupt callback setup.
vdc5_error_t R_VDC5_WriteDataControl (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id, const vdc5_write_t *const param)
 Data write control processing.
vdc5_error_t R_VDC5_ChangeWriteProcess (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id, const vdc5_write_chg_t *const param)
 Data write change processing.
vdc5_error_t R_VDC5_ReadDataControl (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id, const vdc5_read_t *const param)
 Data read control processing.
vdc5_error_t R_VDC5_ChangeReadProcess (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id, const vdc5_read_chg_t *const param)
 Data read change processing.
vdc5_error_t R_VDC5_StartProcess (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id, const vdc5_start_t *const param)
 Data write/read start processing.
vdc5_error_t R_VDC5_StopProcess (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id)
 Data write/read stop processing.
vdc5_error_t R_VDC5_ReleaseDataControl (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id)
 Data write/read control release processing.
vdc5_error_t R_VDC5_VideoNoiseReduction (const vdc5_channel_t ch, const vdc5_onoff_t nr1d_on, const vdc5_noise_reduction_t *const param)
 Noise reduction setup.
vdc5_error_t R_VDC5_ImageColorMatrix (const vdc5_channel_t ch, const vdc5_color_matrix_t *const param)
 Color matrix setup.
vdc5_error_t R_VDC5_ImageEnhancement (const vdc5_channel_t ch, const vdc5_imgimprv_id_t imgimprv_id, const vdc5_onoff_t shp_h_on, const vdc5_enhance_sharp_t *const sharp_param, const vdc5_onoff_t lti_h_on, const vdc5_enhance_lti_t *const lti_param, const vdc5_period_rect_t *const enh_area)
 Image enhancement processing.
vdc5_error_t R_VDC5_ImageBlackStretch (const vdc5_channel_t ch, const vdc5_imgimprv_id_t imgimprv_id, const vdc5_onoff_t bkstr_on, const vdc5_black_t *const param)
 Black stretch setup.
vdc5_error_t R_VDC5_AlphaBlending (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id, const vdc5_alpha_blending_t *const param)
 Alpha blending setup.
vdc5_error_t R_VDC5_AlphaBlendingRect (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id, const vdc5_onoff_t gr_arc_on, const vdc5_alpha_blending_rect_t *const param)
 Rectangle alpha blending setup.
vdc5_error_t R_VDC5_Chromakey (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id, const vdc5_onoff_t gr_ck_on, const vdc5_chromakey_t *const param)
 Chroma-key setup.
vdc5_error_t R_VDC5_CLUT (const vdc5_channel_t ch, const vdc5_layer_id_t layer_id, const vdc5_clut_t *const param)
 CLUT setup.
vdc5_error_t R_VDC5_DisplayCalibration (const vdc5_channel_t ch, const vdc5_disp_calibration_t *const param)
 Display calibration processing.
vdc5_error_t R_VDC5_GammaCorrection (const vdc5_channel_t ch, const vdc5_onoff_t gam_on, const vdc5_gamma_correction_t *const param)
 Gamma correction setup.

Detailed Description

VDC5 driver API definitions.

Version:
1.00
Rev:
199
Date:
2014-05-23 16:33:52 +0900#

Definition in file r_vdc5.h.


Enumeration Type Documentation

Transfer burst length

Enumerator:
VDC5_BST_MD_32BYTE 

32-byte transfer (4 bursts)

VDC5_BST_MD_128BYTE 

128-byte transfer (16 bursts)

Definition at line 488 of file r_vdc5.h.

Correction circuit sequence control

Enumerator:
VDC5_CALIBR_ROUTE_BCG 

Brightness -> contrast -> gamma correction

VDC5_CALIBR_ROUTE_GBC 

Gamma correction -> brightness -> contrast

Definition at line 818 of file r_vdc5.h.

VDC5 channels

Enumerator:
VDC5_CHANNEL_0 

Channel 0

VDC5_CHANNEL_1 

Channel 1

VDC5_CHANNEL_NUM 

The number of channels

Definition at line 88 of file r_vdc5.h.

Color matrix signal gain adjustment

Enumerator:
VDC5_COLORMTX_GAIN_GG 

GG

VDC5_COLORMTX_GAIN_GB 

GB

VDC5_COLORMTX_GAIN_GR 

GR

VDC5_COLORMTX_GAIN_BG 

BG

VDC5_COLORMTX_GAIN_BB 

BB

VDC5_COLORMTX_GAIN_BR 

BR

VDC5_COLORMTX_GAIN_RG 

RG

VDC5_COLORMTX_GAIN_RB 

RB

VDC5_COLORMTX_GAIN_RR 

RR

VDC5_COLORMTX_GAIN_NUM 

The number of the color matrix gain values

Definition at line 675 of file r_vdc5.h.

Operating mode

Enumerator:
VDC5_COLORMTX_GBR_GBR 

GBR to GBR

VDC5_COLORMTX_GBR_YCBCR 

GBR to YCbCr

VDC5_COLORMTX_YCBCR_GBR 

YCbCr to GBR

VDC5_COLORMTX_YCBCR_YCBCR 

YCbCr to YCbCr

VDC5_COLORMTX_MODE_NUM 

The number of operating modes

Definition at line 660 of file r_vdc5.h.

Color matrix module

Enumerator:
VDC5_COLORMTX_IMGCNT 

Input Controller (input video signal)

VDC5_COLORMTX_ADJ_0 

Image quality improver 0 (scaler 0 output)

VDC5_COLORMTX_ADJ_1 

Image quality improver 1 (scaler 1 output)

Definition at line 653 of file r_vdc5.h.

Color matrix offset (DC) adjustment

Enumerator:
VDC5_COLORMTX_OFFST_YG 

YG

VDC5_COLORMTX_OFFST_B 

B

VDC5_COLORMTX_OFFST_R 

R

VDC5_COLORMTX_OFFST_NUM 

The number of the color matrix DC offset values

Definition at line 668 of file r_vdc5.h.

Edge of a signal

Enumerator:
VDC5_EDGE_RISING 

Rising edge

VDC5_EDGE_FALLING 

Falling edge

Definition at line 100 of file r_vdc5.h.

Error codes of the VDC5 driver

Enumerator:
VDC5_OK 

Normal termination

VDC5_ERR_PARAM_CHANNEL 

Invalid channel error (parameter error): An illegal channel is specified.

VDC5_ERR_PARAM_LAYER_ID 

Invalid layer ID error (parameter error): An illegal layer ID is specified.

VDC5_ERR_PARAM_NULL 

NULL specification error (parameter error): NULL is specified for a required parameter.

VDC5_ERR_PARAM_BIT_WIDTH 

Bit width error (parameter error): A value exceeding the possible bit width is specified.

VDC5_ERR_PARAM_UNDEFINED 

Undefined parameter error (parameter error): A value that is not defined in the specification is specified.

VDC5_ERR_PARAM_EXCEED_RANGE 

Out-of-value-range error (parameter error): The specified parameter value is beyond the value range defined in the specification.

VDC5_ERR_PARAM_CONDITION 

Unauthorized condition error (parameter error): A parameter is specified under conditions that are not authorized by the specification.

VDC5_ERR_IF_CONDITION 

Interface condition error (interface error): An API function is called under unauthorized conditions.

VDC5_ERR_RESOURCE_CLK 

Clock resource error (resource error): No panel clock is set up.

VDC5_ERR_RESOURCE_VSYNC 

Vsync signal resource error (resource error): No Vsync signal is set up.

VDC5_ERR_RESOURCE_INPUT 

Input signal resource error (resource error): No video image input is set up.

VDC5_ERR_RESOURCE_OUTPUT 

Output resource error (resource error): No display output is set up.

VDC5_ERR_RESOURCE_LVDS_CLK 

LVDS clock resource error (resource error): An attempt is made to use the LVDS clock without setting it up, or the LVDS clock is specified when it is already set up.

VDC5_ERR_RESOURCE_LAYER 

Layer resource error (resource error): The specified layer is under unavailable conditions.

VDC5_ERR_NUM 

The number of error codes

Definition at line 57 of file r_vdc5.h.

External input format select

Enumerator:
VDC5_EXTIN_FORMAT_RGB888 

RGB888

VDC5_EXTIN_FORMAT_RGB666 

RGB666

VDC5_EXTIN_FORMAT_RGB565 

RGB565

VDC5_EXTIN_FORMAT_BT656 

BT6556

VDC5_EXTIN_FORMAT_BT601 

BT6501

VDC5_EXTIN_FORMAT_YCBCR422 

YCbCr422

VDC5_EXTIN_FORMAT_YCBCR444 

YCbCr444

Definition at line 242 of file r_vdc5.h.

Y/Cb/Y/Cr data string start timing

Enumerator:
VDC5_EXTIN_H_POS_CBYCRY 

Cb/Y/Cr/Y (BT656/601), Cb/Cr (YCbCr422)

VDC5_EXTIN_H_POS_YCRYCB 

Y/Cr/Y/Cb (BT656/601), setting prohibited (YCbCr422)

VDC5_EXTIN_H_POS_CRYCBY 

Cr/Y/Cb/Y (BT656/601), setting prohibited (YCbCr422)

VDC5_EXTIN_H_POS_YCBYCR 

Y/Cb/Y/Cr (BT656/601), Cr/Cb (YCbCr422)

Definition at line 263 of file r_vdc5.h.

Number of lines for BT.656 external input

Enumerator:
VDC5_EXTIN_LINE_525 

525 lines

VDC5_EXTIN_LINE_625 

625 lines

Definition at line 258 of file r_vdc5.h.

Reference select for external input BT.656 Hsync signal

Enumerator:
VDC5_EXTIN_REF_H_EAV 

EAV

VDC5_EXTIN_REF_H_SAV 

SAV

Definition at line 253 of file r_vdc5.h.

The type of graphics display modes

Enumerator:
VDC5_DISPSEL_IGNORED 

Ignored

VDC5_DISPSEL_BACK 

Background color display

VDC5_DISPSEL_LOWER 

Lower-layer graphics display

VDC5_DISPSEL_CURRENT 

Current graphics display

VDC5_DISPSEL_BLEND 

Blended display of lower-layer graphics and current graphics

VDC5_DISPSEL_NUM 

The number of graphics display modes

Definition at line 599 of file r_vdc5.h.

Frame buffer address setting signal

Enumerator:
VDC5_GR_FLM_SEL_SCALE_DOWN 

Links to scaling-down process

VDC5_GR_FLM_SEL_FLM_NUM 

Selects frame 0 (graphics display)

VDC5_GR_FLM_SEL_DISTORTION 

Links to distortion correction

VDC5_GR_FLM_SEL_POINTER_BUFF 

Links to pointer buffer

Definition at line 540 of file r_vdc5.h.

Format of the frame buffer read signal

Enumerator:
VDC5_GR_FORMAT_RGB565 

RGB565

VDC5_GR_FORMAT_RGB888 

RGB888

VDC5_GR_FORMAT_ARGB1555 

ARGB1555

VDC5_GR_FORMAT_ARGB4444 

ARGB4444

VDC5_GR_FORMAT_ARGB8888 

ARGB8888

VDC5_GR_FORMAT_CLUT8 

CLUT8

VDC5_GR_FORMAT_CLUT4 

CLUT4

VDC5_GR_FORMAT_CLUT1 

CLUT1

VDC5_GR_FORMAT_YCBCR422 

YCbCr422: This setting is prohibited for the graphics 2 and 3

VDC5_GR_FORMAT_YCBCR444 

YCbCr444: This setting is prohibited for the graphics 2 and 3

VDC5_GR_FORMAT_RGBA5551 

RGBA5551

VDC5_GR_FORMAT_RGBA8888 

RGBA8888

VDC5_GR_FORMAT_NUM 

The number of signal formats

Definition at line 553 of file r_vdc5.h.

Line offset address direction of the frame buffer

Enumerator:
VDC5_GR_LN_OFF_DIR_INC 

Increments the address by the line offset address

VDC5_GR_LN_OFF_DIR_DEC 

Decrements the address by the line offset address

Definition at line 535 of file r_vdc5.h.

Swapping of data read from buffer in the YCbCr422 format

Definition at line 569 of file r_vdc5.h.

Graphics type ID

Enumerator:
VDC5_GR_TYPE_GR0 

Graphics 0

VDC5_GR_TYPE_GR1 

Graphics 1

VDC5_GR_TYPE_GR2 

Graphics 2

VDC5_GR_TYPE_GR3 

Graphics 3

VDC5_GR_TYPE_VIN 

VIN synthesizer

VDC5_GR_TYPE_OIR 

Output image generator (OIR)

VDC5_GR_TYPE_NUM 

The number of graphics types

Definition at line 118 of file r_vdc5.h.

LTI band

Enumerator:
VDC5_IMGENH_LTI1 

H2: Second adjacent pixel used as reference

VDC5_IMGENH_LTI2 

H4: Fourth adjacent pixel used as reference

VDC5_IMGENH_LTI_NUM 

The number of horizontal LTI bands

Definition at line 726 of file r_vdc5.h.

Sharpness band

Enumerator:
VDC5_IMGENH_SHARP_H1 

H1: Adjacent pixel used as reference

VDC5_IMGENH_SHARP_H2 

H2: Second adjacent pixel used as reference

VDC5_IMGENH_SHARP_H3 

H3: Third adjacent pixel used as reference

VDC5_IMGENH_SHARP_NUM 

The number of horizontal sharpness bands

Definition at line 705 of file r_vdc5.h.

Image quality improver ID

Enumerator:
VDC5_IMG_IMPRV_0 

Image quality improver 0

VDC5_IMG_IMPRV_1 

Image quality improver 1

VDC5_IMG_IMPRV_NUM 

The number of image quality improvers

Definition at line 698 of file r_vdc5.h.

Input select

Enumerator:
VDC5_INPUT_SEL_VDEC 

Video decoder output signals

VDC5_INPUT_SEL_EXT 

Signals supplied via the external input pins

Definition at line 230 of file r_vdc5.h.

VDC5 interrupt type

Enumerator:
VDC5_INT_TYPE_S0_VI_VSYNC 

Vsync signal input to scaler 0

VDC5_INT_TYPE_S0_LO_VSYNC 

Vsync signal output from scaler 0

VDC5_INT_TYPE_S0_VSYNCERR 

Missing Vsync signal for scaler 0

VDC5_INT_TYPE_VLINE 

Specified line signal for panel output in graphics 3

VDC5_INT_TYPE_S0_VFIELD 

Field end signal for recording function in scaler 0

VDC5_INT_TYPE_IV1_VBUFERR 

Frame buffer write overflow signal for scaler 0

VDC5_INT_TYPE_IV3_VBUFERR 

Frame buffer read underflow signal for graphics 0

VDC5_INT_TYPE_IV5_VBUFERR 

Frame buffer read underflow signal for graphics 2

VDC5_INT_TYPE_IV6_VBUFERR 

Frame buffer read underflow signal for graphics 3

VDC5_INT_TYPE_S0_WLINE 

Write specification line signal input to scaling-down control block in scaler 0

VDC5_INT_TYPE_S1_VI_VSYNC 

Vsync signal input to scaler 1

VDC5_INT_TYPE_S1_LO_VSYNC 

Vsync signal output from scaler 1

VDC5_INT_TYPE_S1_VSYNCERR 

Missing Vsync signal for scaler 1

VDC5_INT_TYPE_S1_VFIELD 

Field end signal for recording function in scaler 1

VDC5_INT_TYPE_IV2_VBUFERR 

Frame buffer write overflow signal for scaler 1

VDC5_INT_TYPE_IV4_VBUFERR 

Frame buffer read underflow signal for graphics 1

VDC5_INT_TYPE_S1_WLINE 

Write specification line signal input to scaling-down control block in scaler 1

VDC5_INT_TYPE_OIR_VI_VSYNC 

Vsync signal input to output image generator

VDC5_INT_TYPE_OIR_LO_VSYNC 

Vsync signal output from output image generator

VDC5_INT_TYPE_OIR_VLINE 

Specified line signal for panel output in output image generator

VDC5_INT_TYPE_OIR_VFIELD 

Field end signal for recording function in output image generator

VDC5_INT_TYPE_IV7_VBUFERR 

Frame buffer write overflow signal for output image generator

VDC5_INT_TYPE_IV8_VBUFERR 

Frame buffer read underflow signal for graphics (OIR)

VDC5_INT_TYPE_NUM 

The number of VDC5 interrupt types

Definition at line 411 of file r_vdc5.h.

Layer ID

Enumerator:
VDC5_LAYER_ID_ALL 

All layers

VDC5_LAYER_ID_0_WR 

Write process for layer 0

VDC5_LAYER_ID_1_WR 

Write process for layer 1

VDC5_LAYER_ID_OIR_WR 

Write process for layer OIR

VDC5_LAYER_ID_0_RD 

Read process for layer 0

VDC5_LAYER_ID_1_RD 

Read process for layer 1

VDC5_LAYER_ID_2_RD 

Read process for layer 2

VDC5_LAYER_ID_3_RD 

Read process for layer 3

VDC5_LAYER_ID_VIN_RD 

VIN synthesizer

VDC5_LAYER_ID_OIR_RD 

Read process for layer OIR

VDC5_LAYER_ID_NUM 

The number of layer IDs

Definition at line 128 of file r_vdc5.h.

Clock frequency control

Enumerator:
VDC5_LCD_PARALLEL_CLKFRQ_1 

100% speed (parallel RGB)

VDC5_LCD_SERIAL_CLKFRQ_3 

Triple speed (serial RGB)

VDC5_LCD_SERIAL_CLKFRQ_4 

Quadruple speed (serial RGB)

Definition at line 373 of file r_vdc5.h.

Clock phase adjustment for serial RGB output

Enumerator:
VDC5_LCD_SERIAL_CLKPHASE_0 

0[clk]

VDC5_LCD_SERIAL_CLKPHASE_1 

1[clk]

VDC5_LCD_SERIAL_CLKPHASE_2 

2[clk]

VDC5_LCD_SERIAL_CLKPHASE_3 

3[clk]

Definition at line 385 of file r_vdc5.h.

Output format select

Enumerator:
VDC5_LCD_OUTFORMAT_RGB888 

RGB888

VDC5_LCD_OUTFORMAT_RGB666 

RGB666

VDC5_LCD_OUTFORMAT_RGB565 

RGB565

VDC5_LCD_OUTFORMAT_SERIAL_RGB 

Serial RGB

Definition at line 365 of file r_vdc5.h.

Scan direction select

Enumerator:
VDC5_LCD_SERIAL_SCAN_FORWARD 

Forward scan

VDC5_LCD_SERIAL_SCAN_REVERSE 

Reverse scan

Definition at line 380 of file r_vdc5.h.

LCD TCON output pin select

Enumerator:
VDC5_LCD_TCON_PIN_NON 

Nothing output

VDC5_LCD_TCON_PIN_0 

LCD_TCON0

VDC5_LCD_TCON_PIN_1 

LCD_TCON1

VDC5_LCD_TCON_PIN_2 

LCD_TCON2

VDC5_LCD_TCON_PIN_3 

LCD_TCON3

VDC5_LCD_TCON_PIN_4 

LCD_TCON4

VDC5_LCD_TCON_PIN_5 

LCD_TCON5

VDC5_LCD_TCON_PIN_6 

LCD_TCON6

Definition at line 331 of file r_vdc5.h.

POLA/POLB signal generation mode select

Enumerator:
VDC5_LCD_TCON_POLMD_NORMAL 

Normal mode

VDC5_LCD_TCON_POLMD_1X1REV 

1x1 reverse mode

VDC5_LCD_TCON_POLMD_1X2REV 

1x2 reverse mode

VDC5_LCD_TCON_POLMD_2X2REV 

2x2 reverse mode

Definition at line 318 of file r_vdc5.h.

Signal operating reference select

Enumerator:
VDC5_LCD_TCON_REFSEL_HSYNC 

Hsync signal reference

VDC5_LCD_TCON_REFSEL_OFFSET_H 

Offset Hsync signal reference

Definition at line 326 of file r_vdc5.h.

Timing signals for driving the LCD panel

Enumerator:
VDC5_LCD_TCONSIG_STVA_VS 

STVA/VS

VDC5_LCD_TCONSIG_STVB_VE 

STVB/VE

VDC5_LCD_TCONSIG_STH_SP_HS 

STH/SP/HS

VDC5_LCD_TCONSIG_STB_LP_HE 

STB/LP/HE

VDC5_LCD_TCONSIG_CPV_GCK 

CPV/GCK

VDC5_LCD_TCONSIG_POLA 

POLA

VDC5_LCD_TCONSIG_POLB 

POLB

VDC5_LCD_TCONSIG_DE 

DE

Definition at line 353 of file r_vdc5.h.

Median filter reference pixel select

Enumerator:
VDC5_LTI_MDFIL_SEL_ADJ2 

Second adjacent pixel selected as reference

VDC5_LTI_MDFIL_SEL_ADJ1 

Adjacent pixel selected as reference

Definition at line 732 of file r_vdc5.h.

The clock input to frequency divider 1

Enumerator:
VDC5_LVDS_INCLK_SEL_IMG 

Video image clock (VIDEO_X1)

VDC5_LVDS_INCLK_SEL_DV_0 

Video image clock (DV0_CLK)

VDC5_LVDS_INCLK_SEL_DV_1 

Video image clock (DV1_CLK)

VDC5_LVDS_INCLK_SEL_EXT_0 

External clock (LCD0_EXTCLK)

VDC5_LVDS_INCLK_SEL_EXT_1 

External clock (LCD1_EXTCLK)

VDC5_LVDS_INCLK_SEL_PERI 

Peripheral clock 1

Definition at line 186 of file r_vdc5.h.

The frequency dividing value (NIDIV or NODIV)

Enumerator:
VDC5_LVDS_NDIV_1 

Div 1

VDC5_LVDS_NDIV_2 

Div 2

VDC5_LVDS_NDIV_4 

Div 4

Definition at line 196 of file r_vdc5.h.

The frequency dividing value (NOD) for the output frequency

Enumerator:
VDC5_LVDS_PLL_NOD_1 

Div 1

VDC5_LVDS_PLL_NOD_2 

Div 2

VDC5_LVDS_PLL_NOD_4 

Div 4

VDC5_LVDS_PLL_NOD_8 

Div 8

Definition at line 203 of file r_vdc5.h.

Noise reduction gain adjustment

Enumerator:
VDC5_NR_GAIN_1_2 

1/2

VDC5_NR_GAIN_1_4 

1/4

VDC5_NR_GAIN_1_8 

1/8

VDC5_NR_GAIN_1_16 

1/16

Definition at line 631 of file r_vdc5.h.

TAP select

Enumerator:
VDC5_NR_TAPSEL_1 

Adjacent pixel

VDC5_NR_TAPSEL_2 

2 adjacent pixels

VDC5_NR_TAPSEL_3 

3 adjacent pixels

VDC5_NR_TAPSEL_4 

4 adjacent pixels

Definition at line 623 of file r_vdc5.h.

On/off

Enumerator:
VDC5_OFF 

Off

VDC5_ON 

On

Definition at line 95 of file r_vdc5.h.

Clock frequency division ratio

Enumerator:
VDC5_PANEL_CLKDIV_1_1 

Division Ratio 1/1

VDC5_PANEL_CLKDIV_1_2 

Division Ratio 1/2

VDC5_PANEL_CLKDIV_1_3 

Division Ratio 1/3

VDC5_PANEL_CLKDIV_1_4 

Division Ratio 1/4

VDC5_PANEL_CLKDIV_1_5 

Division Ratio 1/5

VDC5_PANEL_CLKDIV_1_6 

Division Ratio 1/6

VDC5_PANEL_CLKDIV_1_7 

Division Ratio 1/7

VDC5_PANEL_CLKDIV_1_8 

Division Ratio 1/8

VDC5_PANEL_CLKDIV_1_9 

Division Ratio 1/9

VDC5_PANEL_CLKDIV_1_12 

Division Ratio 1/12

VDC5_PANEL_CLKDIV_1_16 

Division Ratio 1/16

VDC5_PANEL_CLKDIV_1_24 

Division Ratio 1/24

VDC5_PANEL_CLKDIV_1_32 

Division Ratio 1/32

VDC5_PANEL_CLKDIV_NUM 

The number of division ratio settings

Definition at line 169 of file r_vdc5.h.

Panel clock select

Enumerator:
VDC5_PANEL_ICKSEL_IMG 

Divided video image clock (VIDEO_X1)

VDC5_PANEL_ICKSEL_IMG_DV 

Divided video image clock (DV_CLK)

VDC5_PANEL_ICKSEL_EXT_0 

Divided external clock (LCD0_EXTCLK)

VDC5_PANEL_ICKSEL_EXT_1 

Divided external clock (LCD1_EXTCLK)

VDC5_PANEL_ICKSEL_PERI 

Divided peripheral clock 1

VDC5_PANEL_ICKSEL_LVDS 

LVDS PLL clock

VDC5_PANEL_ICKSEL_LVDS_DIV7 

LVDS PLL clock divided by 7

VDC5_PANEL_ICKSEL_NUM 

The number of panel clock select settings

Definition at line 158 of file r_vdc5.h.

Panel dither operation mode

Enumerator:
VDC5_PDTH_MD_TRU 

Truncate

VDC5_PDTH_MD_RDOF 

Round-off

VDC5_PDTH_MD_2X2 

2 x 2 pattern dither

VDC5_PDTH_MD_RAND 

Random pattern dither

Definition at line 835 of file r_vdc5.h.

Write field select

Enumerator:
VDC5_RES_FLD_SEL_TOP 

Top field

VDC5_RES_FLD_SEL_BOTTOM 

Bottom field

Definition at line 506 of file r_vdc5.h.

Writing rate

Definition at line 498 of file r_vdc5.h.

Field operating mode select

Enumerator:
VDC5_RES_INTER_PROGRESSIVE 

Progressive

VDC5_RES_INTER_INTERLACE 

Interlace

Definition at line 493 of file r_vdc5.h.

Frame buffer video-signal writing format

Enumerator:
VDC5_RES_MD_YCBCR422 

YCbCr422

VDC5_RES_MD_RGB565 

RGB565

VDC5_RES_MD_RGB888 

RGB888

VDC5_RES_MD_YCBCR444 

YCbCr444

Definition at line 480 of file r_vdc5.h.

Horizontal/vertical sync signal output and full-screen enable signal select

Enumerator:
VDC5_RES_VS_IN_SEL_SC0 

Sync signal output and full-screen enable signal from scaler 0

VDC5_RES_VS_IN_SEL_SC1 

Sync signal output and full-screen enable signal from scaler 1

Definition at line 295 of file r_vdc5.h.

Scaling type ID

Enumerator:
VDC5_SC_TYPE_SC0 

Scaler 0

VDC5_SC_TYPE_SC1 

Scaler 1

VDC5_SC_TYPE_OIR 

Output image generator (OIR)

VDC5_SC_TYPE_NUM 

The number of scaler types

Definition at line 111 of file r_vdc5.h.

Polarity of a signal

Enumerator:
VDC5_SIG_POL_NOT_INVERTED 

Not inverted

VDC5_SIG_POL_INVERTED 

Inverted

Definition at line 105 of file r_vdc5.h.

Frame buffer writing mode for image processing

Enumerator:
VDC5_WR_MD_NORMAL 

Normal

VDC5_WR_MD_MIRROR 

Horizontal mirroring

VDC5_WR_MD_ROT_90DEG 

90 degree rotation

VDC5_WR_MD_ROT_180DEG 

180 degree rotation

VDC5_WR_MD_ROT_270DEG 

270 degree rotation

Definition at line 448 of file r_vdc5.h.

Frame buffer swap setting

Enumerator:
VDC5_WR_RD_WRSWA_NON 

Not swapped: 1-2-3-4-5-6-7-8

VDC5_WR_RD_WRSWA_8BIT 

Swapped in 8-bit units: 2-1-4-3-6-5-8-7

VDC5_WR_RD_WRSWA_16BIT 

Swapped in 16-bit units: 3-4-1-2-7-8-5-6

VDC5_WR_RD_WRSWA_16_8BIT 

Swapped in 16-bit units + 8-bit units: 4-3-2-1-8-7-6-5

VDC5_WR_RD_WRSWA_32BIT 

Swapped in 32-bit units: 5-6-7-8-1-2-3-4

VDC5_WR_RD_WRSWA_32_8BIT 

Swapped in 32-bit units + 8-bit units: 6-5-8-7-2-1-4-3

VDC5_WR_RD_WRSWA_32_16BIT 

Swapped in 32-bit units + 16-bit units: 7-8-5-6-3-4-1-2

VDC5_WR_RD_WRSWA_32_16_8BIT 

Swapped in 32-bit units + 16-bit units + 8-bit units: 8-7-6-5-4-3-2-1

Definition at line 468 of file r_vdc5.h.


Function Documentation

vdc5_error_t R_VDC5_AlphaBlending ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id,
const vdc5_alpha_blending_t *const   param 
)

Alpha blending setup.

Description:
This function performs the following processing:

  • Sets up the alpha value of the ARGB1555/RGBA5551 formats.
  • Make settings for premultiplication processing at alpha blending in one-pixel.
    Parameters:
    [in]ch: Channel
    [in]layer_id: Layer ID

    • VDC5_LAYER_ID_1_RD
    • VDC5_LAYER_ID_2_RD
    • VDC5_LAYER_ID_3_RD
    [in]param: Alpha blending setup parameter
    Return values:
    Errorcode

Definition at line 891 of file r_vdc5.c.

vdc5_error_t R_VDC5_AlphaBlendingRect ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id,
const vdc5_onoff_t  gr_arc_on,
const vdc5_alpha_blending_rect_t *const   param 
)

Rectangle alpha blending setup.

Description:
This function performs the following processing:

  • Turns on and off alpha blending in a rectangular area.
  • Sets up the rectangular area subjected to alpha blending.
  • Sets up the alpha value for alpha blending in a rectangular area.
  • Makes fade-in/-out settings to be applied to rectangle alpha blending.
  • Allocates graphics 0 and 1 to the lower-layer/current graphics in the VIN synthesizer.
    Parameters:
    [in]ch: Channel
    [in]layer_id: Layer ID

    • VDC5_LAYER_ID_1_RD
    • VDC5_LAYER_ID_2_RD
    • VDC5_LAYER_ID_3_RD
    • VDC5_LAYER_ID_VIN_RD
    [in]gr_arc_on: ON/OFF setting for alpha blending in a rectangular area
    [in]param: Setup parameter for alpha blending in a rectangular area
    Return values:
    Errorcode

Definition at line 941 of file r_vdc5.c.

vdc5_error_t R_VDC5_CallbackISR ( const vdc5_channel_t  ch,
const vdc5_int_t *const   param 
)

Interrupt callback setup.

Description:
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]ch: Channel
    [in]param: Interrupt callback setup parameter
    Return values:
    Errorcode

Definition at line 310 of file r_vdc5.c.

vdc5_error_t R_VDC5_ChangeReadProcess ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id,
const vdc5_read_chg_t *const   param 
)

Data read change processing.

Description:
This function performs the following processing:

  • Changes the frame buffer base address.
  • Changes the frame buffer read size (image scale-up control) (layers 0 and 1 only).
  • Changes the display area for graphics images.
  • Changes the graphics display mode.
    Parameters:
    [in]ch: Channel
    [in]layer_id: Layer ID

    • VDC5_LAYER_ID_0_RD
    • VDC5_LAYER_ID_1_RD
    • VDC5_LAYER_ID_2_RD
    • VDC5_LAYER_ID_3_RD
    • VDC5_LAYER_ID_OIR_RD
    [in]param: Data read change parameter
    Return values:
    Errorcode

Definition at line 522 of file r_vdc5.c.

vdc5_error_t R_VDC5_ChangeWriteProcess ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id,
const vdc5_write_chg_t *const   param 
)

Data write change processing.

Description:
This function performs the following processing:

  • Changes the input image area to be captured.
  • Makes changes with respect to scaling-down/rotation control of the input image (layers 0 and 1 only).
    Parameters:
    [in]ch: Channel
    [in]layer_id: Layer ID

    • VDC5_LAYER_ID_0_WR
    • VDC5_LAYER_ID_1_WR
    • VDC5_LAYER_ID_OIR_WR
    [in]param: Data write change parameter
    Return values:
    Errorcode

Definition at line 419 of file r_vdc5.c.

vdc5_error_t R_VDC5_Chromakey ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id,
const vdc5_onoff_t  gr_ck_on,
const vdc5_chromakey_t *const   param 
)

Chroma-key setup.

Description:
This function performs the following processing:

  • Turns on and off the chroma-key processing.
  • Sets up the color signals to be subject to chroma-key processing and the color signals after replacement.
    Parameters:
    [in]ch: Channel
    [in]layer_id: Layer ID

    • VDC5_LAYER_ID_0_RD
    • VDC5_LAYER_ID_1_RD
    • VDC5_LAYER_ID_2_RD
    • VDC5_LAYER_ID_3_RD
    • VDC5_LAYER_ID_OIR_RD
    [in]gr_ck_on: Chroma-key ON/OFF setting
    [in]param: Chroma-key setup parameter
    Return values:
    Errorcode

Definition at line 1002 of file r_vdc5.c.

vdc5_error_t R_VDC5_CLUT ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id,
const vdc5_clut_t *const   param 
)

CLUT setup.

Description:
This function sets up CLUT for the specified layer.

Parameters:
[in]ch: Channel
[in]layer_id: Layer ID

  • VDC5_LAYER_ID_0_RD
  • VDC5_LAYER_ID_1_RD
  • VDC5_LAYER_ID_2_RD
  • VDC5_LAYER_ID_3_RD
  • VDC5_LAYER_ID_OIR_RD
[in]param: CLUT setup parameter
Return values:
Errorcode

Definition at line 1057 of file r_vdc5.c.

vdc5_error_t R_VDC5_DisplayCalibration ( const vdc5_channel_t  ch,
const vdc5_disp_calibration_t *const   param 
)

Display calibration processing.

Description:
This function performs the following processing:

  • Sets up panel brightness adjustment.
  • Sets up contrast adjustment.
  • Sets up panel dithering.
  • Makes control settings for the correction circuit sequence.
    Parameters:
    [in]ch: Channel
    [in]param: Display calibration parameter
    Return values:
    Errorcode

Definition at line 1097 of file r_vdc5.c.

vdc5_error_t R_VDC5_DisplayOutput ( const vdc5_channel_t  ch,
const vdc5_output_t *const   param 
)

Display output setup.

Description:
This function performs the following processing:

  • Sets up the timing signals for driving the LCD panel.
  • Sets up the phase, data sequence, and format of the LCD panel output data.
  • Sets up the background color.
    Parameters:
    [in]ch: Channel
    [in]param: Display output configuration parameter
    Return values:
    Errorcode

Definition at line 265 of file r_vdc5.c.

vdc5_error_t R_VDC5_GammaCorrection ( const vdc5_channel_t  ch,
const vdc5_onoff_t  gam_on,
const vdc5_gamma_correction_t *const   param 
)

Gamma correction setup.

Description:
This function performs the following processing:

  • Turns on and off gamma correction processing.
  • Sets up the gamma correction gain adjustment values for the G/B/R signals.
  • Sets up the gamma correction start threshold values for the G/B/R signals.
    Parameters:
    [in]ch: Channel
    [in]gam_on: Gamma correction ON/OFF setting
    [in]param: Gamma correction setup parameter
    Return values:
    Errorcode

Definition at line 1133 of file r_vdc5.c.

vdc5_error_t R_VDC5_ImageBlackStretch ( const vdc5_channel_t  ch,
const vdc5_imgimprv_id_t  imgimprv_id,
const vdc5_onoff_t  bkstr_on,
const vdc5_black_t *const   param 
)

Black stretch setup.

Description:
This function performs the following processing:

  • Turns on and off black stretch processing.
  • Sets up the black stretch parameters.
    Parameters:
    [in]ch: Channel
    [in]imgimprv_id: Image quality improver ID
    [in]bkstr_on: Black stretch ON/OFF setting
    [in]param: Black stretch setup parameter
    Return values:
    Errorcode

Definition at line 836 of file r_vdc5.c.

vdc5_error_t R_VDC5_ImageColorMatrix ( const vdc5_channel_t  ch,
const vdc5_color_matrix_t *const   param 
)

Color matrix setup.

Description:
This function sets up the specified color matrix.

Parameters:
[in]ch: Channel
[in]param: Color matrix setup parameter
Return values:
Errorcode

Definition at line 726 of file r_vdc5.c.

vdc5_error_t R_VDC5_ImageEnhancement ( const vdc5_channel_t  ch,
const vdc5_imgimprv_id_t  imgimprv_id,
const vdc5_onoff_t  shp_h_on,
const vdc5_enhance_sharp_t *const   sharp_param,
const vdc5_onoff_t  lti_h_on,
const vdc5_enhance_lti_t *const   lti_param,
const vdc5_period_rect_t *const   enh_area 
)

Image enhancement processing.

Description:
This function performs the following processing:

  • Turns on and off sharpness processing.
  • Sets up the sharpness parameter.
  • Turns on and off LTI processing.
  • Sets up the LTI parameter.
  • Sets up the enhancer-enabled area to be subjected to sharpness and LTI processing.
    Parameters:
    [in]ch: Channel
    [in]imgimprv_id: Image quality improver ID
    [in]shp_h_on: Sharpness ON/OFF setting
    [in]sharp_param: Sharpness setup parameter
    [in]lti_h_on: LTI ON/OFF setting
    [in]lti_param: LTI setup parameter
    [in]enh_area: Enhancer-enabled area setup parameter
    Return values:
    Errorcode

Definition at line 780 of file r_vdc5.c.

vdc5_error_t R_VDC5_Initialize ( const vdc5_channel_t  ch,
const vdc5_init_t *const   param,
void(*)(uint32_t)  init_func,
const uint32_t  user_num 
)

VDC5 driver initialization.

Description:
This function performs the following processing:

  • Initializes the VDC5 driver's internal variables.
  • Calls the user-defined function specified in init_func.
  • Sets up and enables the VDC5's panel clock.
  • Sets up and enables the LVDS only if LVDS is used.
  • Disables all the VDC5 interrupts.
    Parameters:
    [in]ch: Channel
    [in]param: Initialization parameter
    [in]init_func: Pointer to a user-defined function
    [in]user_num: User defined number
    Return values:
    Errorcode

Definition at line 72 of file r_vdc5.c.

vdc5_error_t R_VDC5_ReadDataControl ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id,
const vdc5_read_t *const   param 
)

Data read control processing.

Description:
This function performs the following processing:

  • Sets up the display area for graphics images.
  • Makes image scale-up control settings (layers 0 and 1 only).
  • Makes frame buffer read control settings.
    Parameters:
    [in]ch: Channel
    [in]layer_id: Layer ID

    • VDC5_LAYER_ID_0_RD
    • VDC5_LAYER_ID_1_RD
    • VDC5_LAYER_ID_2_RD
    • VDC5_LAYER_ID_3_RD
    • VDC5_LAYER_ID_OIR_RD
    [in]param: Data read control parameter
    Return values:
    Errorcode

Definition at line 469 of file r_vdc5.c.

vdc5_error_t R_VDC5_ReleaseDataControl ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id 
)

Data write/read control release processing.

Description:
This function performs the following processing:

  • Disables the specified layer.
  • Initializes the cascaded connection settings (layer 1 read processing only).
  • Initializes the VIN synthesizer settings (layer 0 and 1 read processing only).
    Parameters:
    [in]ch: Channel
    [in]layer_id: Layer ID
    Return values:
    Errorcode

Definition at line 651 of file r_vdc5.c.

vdc5_error_t R_VDC5_StartProcess ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id,
const vdc5_start_t *const   param 
)

Data write/read start processing.

Description:
This function performs layer start processing. If the layer ID specified in layer_id is VDC5_LAYER_ID_ALL, the function starts all the layers that are in the stopped state and also enabled. If the layer ID is not VDC5_LAYER_ID_ALL, the function starts only the specified layer.
When performing start processing for write, the function starts a write to the frame buffer. When performing start processing for read, the function starts a read from the frame buffer and sets the graphics display mode to the specified values for each layer.

Parameters:
[in]ch: Channel
[in]layer_id: Layer ID
[in]param: Data write/read start parameter
Return values:
Errorcode

Definition at line 570 of file r_vdc5.c.

vdc5_error_t R_VDC5_StopProcess ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id 
)

Data write/read stop processing.

Description:
This function performs layer stop processing. If the layer ID specified in layer_id is VDC5_LAYER_ID_ALL, the function stops all the layers that are enabled and running. If the layer ID is not VDC5_LAYER_ID_ALL, the function stops only the specified layer.
When performing stop processing for write, the function stops the write to the frame buffer. When performing stop processing for read, the function stops the read from the frame buffer and resets the graphics display mode to the initial values for each of the layers.

Parameters:
[in]ch: Channel
[in]layer_id: Layer ID
Return values:
Errorcode

Definition at line 613 of file r_vdc5.c.

vdc5_error_t R_VDC5_SyncControl ( const vdc5_channel_t  ch,
const vdc5_sync_ctrl_t *const   param 
)

Sync control setup.

Description:
This function performs the following processing:

  • Selects the vertical sync signal.
  • Sets up the period of the sync signal.
  • Sets up the delay of the vertical sync signal.
  • Sets up the full-screen enable signal.
  • Sets up the compensation for the vertical sync signal.
    Parameters:
    [in]ch: Channel
    [in]param: Sync control parameter
    Return values:
    Errorcode

Definition at line 209 of file r_vdc5.c.

vdc5_error_t R_VDC5_Terminate ( const vdc5_channel_t  ch,
void(*)(uint32_t)  quit_func,
const uint32_t  user_num 
)

VDC5 driver termination.

Description:
This function performs the following processing:

  • Disables all the VDC5 interrupts.
  • Disables the VDC5 panel clock.
  • Disables the LVDS if one is used and becomes unnecessary as the result of calling this function.
  • Calls the user-defined function specified in quit_func.
    Parameters:
    [in]ch: Channel
    [in]quit_func: Pointer to a user-defined function
    [in]user_num: User defined number
    Return values:
    Errorcode

Definition at line 131 of file r_vdc5.c.

vdc5_error_t R_VDC5_VideoInput ( const vdc5_channel_t  ch,
const vdc5_input_t *const   param 
)

Video input setup.

Description:
This function performs the following processing:

  • Selects the video input.
  • Sets up the phase timing of the input signals.
  • Performs delay control on the sync signal for the video inputs.
  • Sets up the parameters for the external input video signals only when they are used.
    Parameters:
    [in]ch: Channel
    [in]param: Video input setup parameter
    Return values:
    Errorcode

Definition at line 176 of file r_vdc5.c.

vdc5_error_t R_VDC5_VideoNoiseReduction ( const vdc5_channel_t  ch,
const vdc5_onoff_t  nr1d_on,
const vdc5_noise_reduction_t *const   param 
)

Noise reduction setup.

Description:
This function performs the following processing:

  • Turns on and off noise reduction processing.
  • Sets up the noise reduction parameters for the Y/G, Cb/B, and Cr/R signals.
    Parameters:
    [in]ch: Channel
    [in]nr1d_on: Noise reduction ON/OFF setting
    [in]param: Noise reduction setup parameter
    Return values:
    Errorcode

Definition at line 691 of file r_vdc5.c.

vdc5_error_t R_VDC5_WriteDataControl ( const vdc5_channel_t  ch,
const vdc5_layer_id_t  layer_id,
const vdc5_write_t *const   param 
)

Data write control processing.

Description:
This function performs the following processing:

  • Sets up the input image area to be captured.
  • Makes input image scale-down/rotation control settings (layers 0 and 1 only).
  • Makes frame buffer write control settings.
    Parameters:
    [in]ch: Channel
    [in]layer_id: Layer ID

    • VDC5_LAYER_ID_0_WR
    • VDC5_LAYER_ID_1_WR
    • VDC5_LAYER_ID_OIR_WR
    [in]param: Data write control parameter
    Return values:
    Errorcode

Definition at line 354 of file r_vdc5.c.