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

DisplayBase Class Reference

DisplayBase Class Reference

Display driver wrapper class for GR-PEACH. More...

#include <DisplayBace.h>

Data Structures

struct  lcd_config_t
 LCD configuration. More...
struct  rect_t
 The relative position within the graphics display area. More...
struct  video_ext_in_config_t
 Digital Video Input configuration. More...

Public Types

enum  video_input_channel_t { VIDEO_INPUT_CHANNEL_0 = 0, VIDEO_INPUT_CHANNEL_1 }
 

Video input channel select.

More...
enum  video_adc_vinsel_t { VIDEO_ADC_VINSEL_VIN1 = 0, VIDEO_ADC_VINSEL_VIN2 }
 

Input pin control.

More...
enum  graphics_layer_t { GRAPHICS_LAYER_0 = 0, GRAPHICS_LAYER_1, GRAPHICS_LAYER_2, GRAPHICS_LAYER_3 }
 

Graphics layer select.

More...
enum  graphics_error_t {
  GRAPHICS_OK = 0, GRAPHICS_VDC5_ERR = -1, GRAPHICS_FORMA_ERR = -2, GRAPHICS_LAYER_ERR = -3,
  GRAPHICS_CHANNLE_ERR = -4, GRAPHICS_VIDEO_NTSC_SIZE_ERR = -5, GRAPHICS_VIDEO_PAL_SIZE_ERR = -6, GRAPHICS_PARAM_RANGE_ERR = -7
}
 

Error codes.

More...
enum  graphics_format_t {
  GRAPHICS_FORMAT_YCBCR422 = 0, GRAPHICS_FORMAT_RGB565, GRAPHICS_FORMAT_RGB888, GRAPHICS_FORMAT_ARGB8888,
  GRAPHICS_FORMAT_ARGB4444
}
 

Graphics layer read format selects.

More...
enum  video_format_t { VIDEO_FORMAT_YCBCR422 = 0, VIDEO_FORMAT_RGB565, VIDEO_FORMAT_RGB888 }
 

Video writing format selects.

More...
enum  wr_rd_swa_t {
  WR_RD_WRSWA_NON = 0, WR_RD_WRSWA_8BIT, WR_RD_WRSWA_16BIT, WR_RD_WRSWA_16_8BIT,
  WR_RD_WRSWA_32BIT, WR_RD_WRSWA_32_8BIT, WR_RD_WRSWA_32_16BIT, WR_RD_WRSWA_32_16_8BIT
}
 

Frame buffer swap setting.

More...
enum  lcd_tcon_pin_t {
  LCD_TCON_PIN_NON = -1, LCD_TCON_PIN_0, LCD_TCON_PIN_1, LCD_TCON_PIN_2,
  LCD_TCON_PIN_3, LCD_TCON_PIN_4
}
 

LCD tcon output pin selects.

More...
enum  lcd_outformat_t { LCD_OUTFORMAT_RGB888 = 0, LCD_OUTFORMAT_RGB666, LCD_OUTFORMAT_RGB565 }
 

LCD output format selects.

More...
enum  edge_t { EDGE_RISING = 0, EDGE_FALLING = 1 }
 

Edge of a signal.

More...
enum  lcd_type_t { LCD_TYPE_LVDS = 0, LCD_TYPE_PARALLEL_RGB }
 

LCD type.

More...
enum  sig_pol_t { SIG_POL_NOT_INVERTED = 0, SIG_POL_INVERTED }
 

Polarity of a signal.

More...
enum  int_type_t {
  INT_TYPE_S0_VI_VSYNC = 0, INT_TYPE_S0_LO_VSYNC, INT_TYPE_S0_VSYNCERR, INT_TYPE_VLINE,
  INT_TYPE_S0_VFIELD, INT_TYPE_IV1_VBUFERR, INT_TYPE_IV3_VBUFERR, INT_TYPE_IV5_VBUFERR,
  INT_TYPE_IV6_VBUFERR, INT_TYPE_S0_WLINE, INT_TYPE_S1_VI_VSYNC, INT_TYPE_S1_LO_VSYNC,
  INT_TYPE_S1_VSYNCERR, INT_TYPE_S1_VFIELD, INT_TYPE_IV2_VBUFERR, INT_TYPE_IV4_VBUFERR,
  INT_TYPE_S1_WLINE, INT_TYPE_OIR_VI_VSYNC, INT_TYPE_OIR_LO_VSYNC, INT_TYPE_OIR_VLINE,
  INT_TYPE_OIR_VFIELD, INT_TYPE_IV7_VBUFERR, INT_TYPE_IV8_VBUFERR, INT_TYPE_NUM
}
 

Interrupt type.

More...
enum  graphics_video_col_sys_t {
  COL_SYS_NTSC_358 = 0, COL_SYS_NTSC_443 = 1, COL_SYS_PAL_443 = 2, COL_SYS_PAL_M = 3,
  COL_SYS_PAL_N = 4, COL_SYS_SECAM = 5, COL_SYS_NTSC_443_60 = 6, COL_SYS_PAL_60 = 7
}
 

Video color system.

More...
enum  video_input_sel_t { INPUT_SEL_VDEC = 0, INPUT_SEL_EXT = 1 }
 

External Input select.

More...
enum  video_extin_format_t {
  VIDEO_EXTIN_FORMAT_RGB888 = 0, VIDEO_EXTIN_FORMAT_RGB666, VIDEO_EXTIN_FORMAT_RGB565, VIDEO_EXTIN_FORMAT_BT656,
  VIDEO_EXTIN_FORMAT_BT601, VIDEO_EXTIN_FORMAT_YCBCR422, VIDEO_EXTIN_FORMAT_YCBCR444
}
 

External input format select.

More...
enum  onoff_t { OFF = 0, ON = 1 }
 

On/off.

More...
enum  extin_input_line_t { EXTIN_LINE_525 = 0, EXTIN_LINE_625 = 1 }
 

Number of lines for BT.656 external input.

More...
enum  extin_h_pos_t { EXTIN_H_POS_CBYCRY = 0, EXTIN_H_POS_YCRYCB, EXTIN_H_POS_CRYCBY, EXTIN_H_POS_YCBYCR }
 

Y/Cb/Y/Cr data string start timing.

More...

Public Member Functions

 DisplayBase (void)
 Constructor method of display base object.
graphics_error_t Graphics_init (lcd_config_t *lcd_config)
 Graphics initialization processing
If not using display, set NULL in parameter.
graphics_error_t Graphics_Video_init (video_input_sel_t video_input_sel, video_ext_in_config_t *video_ext_in_config)
 Graphics Video initialization processing
If setting INPUT_SEL_VDEC in video_input_sel parameter, set NULL in video_ext_in_config parameter.
graphics_error_t Graphics_Lcd_Port_Init (PinName *pin, unsigned int pin_count)
 LCD output port initialization processing.
graphics_error_t Graphics_Lvds_Port_Init (PinName *pin, unsigned int pin_count)
 LVDS output port initialization processing.
graphics_error_t Graphics_Dvinput_Port_Init (PinName *pin, unsigned int pin_count)
 Digital video input port initialization processing.
graphics_error_t Graphics_Irq_Handler_Set (int_type_t Graphics_Irq_Handler_Set, unsigned short num, void(*callback)(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.

graphics_error_t Graphics_Start (graphics_layer_t layer_id)
 Start the graphics surface read process.
graphics_error_t Graphics_Stop (graphics_layer_t layer_id)
 Stop the graphics surface read process.
graphics_error_t Video_Start (video_input_channel_t video_input_channel)
 Start the video surface write process.
graphics_error_t Video_Stop (video_input_channel_t video_input_channel)
 Stop the video surface write process.
graphics_error_t Graphics_Read_Setting (graphics_layer_t layer_id, void *framebuff, unsigned int fb_stride, graphics_format_t gr_format, wr_rd_swa_t wr_rd_swa, rect_t *gr_rect)
 Graphics surface read process setting.
graphics_error_t Graphics_Read_Change (graphics_layer_t layer_id, void *framebuff)
 Graphics surface read buffer change process.
graphics_error_t Video_Write_Setting (video_input_channel_t video_input_channel, graphics_video_col_sys_t col_sys, void *framebuff, unsigned int fb_stride, video_format_t video_format, wr_rd_swa_t wr_rd_swa, unsigned short video_write_buff_vw, unsigned short video_write_buff_hw, video_adc_vinsel_t video_adc_vinsel=VIDEO_ADC_VINSEL_VIN1)
 Video surface write process setting.
graphics_error_t Video_Write_Change (video_input_channel_t video_input_channel, void *framebuff, uint32_t fb_stride)
 Video surface write buffer change process.

Detailed Description

Display driver wrapper class for GR-PEACH.

Definition at line 36 of file DisplayBace.h.


Member Enumeration Documentation

enum edge_t

Edge of a signal.

Enumerator:
EDGE_RISING 

Rising edge

EDGE_FALLING 

Falling edge

Definition at line 138 of file DisplayBace.h.

Y/Cb/Y/Cr data string start timing.

Enumerator:
EXTIN_H_POS_CBYCRY 

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

EXTIN_H_POS_YCRYCB 

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

EXTIN_H_POS_CRYCBY 

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

EXTIN_H_POS_YCBYCR 

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

Definition at line 243 of file DisplayBace.h.

Number of lines for BT.656 external input.

Enumerator:
EXTIN_LINE_525 

525 lines

EXTIN_LINE_625 

625 lines

Definition at line 235 of file DisplayBace.h.

Error codes.

Enumerator:
GRAPHICS_OK 

Normal termination

GRAPHICS_VDC5_ERR 

VDC5 driver error

GRAPHICS_FORMA_ERR 

Not support format

GRAPHICS_LAYER_ERR 

Invalid layer ID error

GRAPHICS_CHANNLE_ERR 

Invalid channel error

GRAPHICS_VIDEO_NTSC_SIZE_ERR 

Video write size(vw) error

GRAPHICS_VIDEO_PAL_SIZE_ERR 

Video Write size(vw) error

GRAPHICS_PARAM_RANGE_ERR 

Parameter range error

Definition at line 69 of file DisplayBace.h.

Graphics layer read format selects.

Enumerator:
GRAPHICS_FORMAT_YCBCR422 

YCbCr422 (2byte / px)

GRAPHICS_FORMAT_RGB565 

RGB565 (2byte / px)

GRAPHICS_FORMAT_RGB888 

RGB888 (4byte / px)

GRAPHICS_FORMAT_ARGB8888 

ARGB8888 (4byte / px)

GRAPHICS_FORMAT_ARGB4444 

ARGB4444 (2byte / px)

Definition at line 83 of file DisplayBace.h.

Graphics layer select.

Enumerator:
GRAPHICS_LAYER_0 

Graphics layer 0

GRAPHICS_LAYER_1 

Graphics layer 1

GRAPHICS_LAYER_2 

Graphics layer 2

GRAPHICS_LAYER_3 

Graphics layer 3

Definition at line 59 of file DisplayBace.h.

Video color system.

Enumerator:
COL_SYS_NTSC_358 

NTSC-3.58

COL_SYS_NTSC_443 

NTSC-4.43

COL_SYS_PAL_443 

PAL-4.43

COL_SYS_PAL_M 

PAL-M

COL_SYS_PAL_N 

PAL-N

COL_SYS_SECAM 

SECAM

COL_SYS_NTSC_443_60 

NTSC-4.43 (60Hz)

COL_SYS_PAL_60 

PAL-60

Definition at line 192 of file DisplayBace.h.

enum int_type_t

Interrupt type.

Enumerator:
INT_TYPE_S0_VI_VSYNC 

Vsync signal input to scaler 0

INT_TYPE_S0_LO_VSYNC 

Vsync signal output from scaler 0

INT_TYPE_S0_VSYNCERR 

Missing Vsync signal for scaler 0

INT_TYPE_VLINE 

Specified line signal for panel output in graphics 3

INT_TYPE_S0_VFIELD 

Field end signal for recording function in scaler 0

INT_TYPE_IV1_VBUFERR 

Frame buffer write overflow signal for scaler 0

INT_TYPE_IV3_VBUFERR 

Frame buffer read underflow signal for graphics 0

INT_TYPE_IV5_VBUFERR 

Frame buffer read underflow signal for graphics 2

INT_TYPE_IV6_VBUFERR 

Frame buffer read underflow signal for graphics 3

INT_TYPE_S0_WLINE 

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

INT_TYPE_S1_VI_VSYNC 

Vsync signal input to scaler 1

INT_TYPE_S1_LO_VSYNC 

Vsync signal output from scaler 1

INT_TYPE_S1_VSYNCERR 

Missing Vsync signal for scaler 1

INT_TYPE_S1_VFIELD 

Field end signal for recording function in scaler 1

INT_TYPE_IV2_VBUFERR 

Frame buffer write overflow signal for scaler 1

INT_TYPE_IV4_VBUFERR 

Frame buffer read underflow signal for graphics 1

INT_TYPE_S1_WLINE 

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

INT_TYPE_OIR_VI_VSYNC 

Vsync signal input to output image generator

INT_TYPE_OIR_LO_VSYNC 

Vsync signal output from output image generator

INT_TYPE_OIR_VLINE 

Specified line signal for panel output in output image generator

INT_TYPE_OIR_VFIELD 

Field end signal for recording function in output image generator

INT_TYPE_IV7_VBUFERR 

Frame buffer write overflow signal for output image generator

INT_TYPE_IV8_VBUFERR 

Frame buffer read underflow signal for graphics (OIR)

INT_TYPE_NUM 

The number of VDC5 interrupt types

Definition at line 162 of file DisplayBace.h.

LCD output format selects.

Enumerator:
LCD_OUTFORMAT_RGB888 

RGB888 or LVDS

LCD_OUTFORMAT_RGB666 

RGB666

LCD_OUTFORMAT_RGB565 

RGB565

Definition at line 129 of file DisplayBace.h.

LCD tcon output pin selects.

Enumerator:
LCD_TCON_PIN_NON 

Not using output

LCD_TCON_PIN_0 

LCD_TCON0

LCD_TCON_PIN_1 

LCD_TCON1

LCD_TCON_PIN_2 

LCD_TCON2

LCD_TCON_PIN_3 

LCD_TCON3

LCD_TCON_PIN_4 

LCD_TCON4

Definition at line 117 of file DisplayBace.h.

enum lcd_type_t

LCD type.

Enumerator:
LCD_TYPE_LVDS 

LVDS control

LCD_TYPE_PARALLEL_RGB 

RGB parallel signal control

Definition at line 146 of file DisplayBace.h.

enum onoff_t

On/off.

Enumerator:
OFF 

Off

ON 

On

Definition at line 227 of file DisplayBace.h.

enum sig_pol_t

Polarity of a signal.

Enumerator:
SIG_POL_NOT_INVERTED 

Not inverted

SIG_POL_INVERTED 

Inverted

Definition at line 154 of file DisplayBace.h.

Input pin control.

Enumerator:
VIDEO_ADC_VINSEL_VIN1 

VIN1 input

VIDEO_ADC_VINSEL_VIN2 

VIN2 input

Definition at line 51 of file DisplayBace.h.

External input format select.

Enumerator:
VIDEO_EXTIN_FORMAT_RGB888 

RGB888 Not support

VIDEO_EXTIN_FORMAT_RGB666 

RGB666

VIDEO_EXTIN_FORMAT_RGB565 

RGB565

VIDEO_EXTIN_FORMAT_BT656 

BT6556

VIDEO_EXTIN_FORMAT_BT601 

BT6501

VIDEO_EXTIN_FORMAT_YCBCR422 

YCbCr422

VIDEO_EXTIN_FORMAT_YCBCR444 

YCbCr444 Not support

Definition at line 214 of file DisplayBace.h.

Video writing format selects.

Enumerator:
VIDEO_FORMAT_YCBCR422 

YCbCr422 (2byte / px)

VIDEO_FORMAT_RGB565 

RGB565 (2byte / px)

VIDEO_FORMAT_RGB888 

RGB888 (4byte / px)

Definition at line 94 of file DisplayBace.h.

Video input channel select.

Enumerator:
VIDEO_INPUT_CHANNEL_0 

Video input channel 0

VIDEO_INPUT_CHANNEL_1 

Video input channel 1

Definition at line 43 of file DisplayBace.h.

External Input select.

Enumerator:
INPUT_SEL_VDEC 

Video decoder output signals

INPUT_SEL_EXT 

Signals supplied via the external input pins

Definition at line 206 of file DisplayBace.h.

Frame buffer swap setting.

Enumerator:
WR_RD_WRSWA_NON 

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

WR_RD_WRSWA_8BIT 

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

WR_RD_WRSWA_16BIT 

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

WR_RD_WRSWA_16_8BIT 

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

WR_RD_WRSWA_32BIT 

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

WR_RD_WRSWA_32_8BIT 

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

WR_RD_WRSWA_32_16BIT 

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

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 103 of file DisplayBace.h.


Constructor & Destructor Documentation

DisplayBase ( void   )

Constructor method of display base object.

Constructor of the DisplayBase class.

Parameters:
[in]None
Return values:
None

Definition at line 32 of file DisplayBase.cpp.


Member Function Documentation

DisplayBase::graphics_error_t Graphics_Dvinput_Port_Init ( PinName *  pin,
unsigned int  pin_count 
)

Digital video input port initialization processing.

Digital video input I/O port initialization processing.

Parameters:
[in]pin: Pin assign for digital video input port
[in]pin_count: Total number of pin assign
Return values:
Errorcode
Parameters:
[in]pin: Pointer of the pin assignment
[in]pin_count: Total number of the pin assignment
Return values:
errorcode

Definition at line 188 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Graphics_init ( lcd_config_t lcd_config )

Graphics initialization processing
If not using display, set NULL in parameter.

Graphics initialization processing.

Parameters:
[in]lcd_config: LCD configuration
Return values:
Errorcode
Parameters:
[in]lcd_config: LCD configuration
Return values:
errorcode

Definition at line 84 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Graphics_Irq_Handler_Set ( int_type_t  irq,
unsigned short  num,
void(*)(int_type_t callback 
)

Interrupt callback setup This function performs the following processing:

  • Enables the interrupt when the pointer to the corresponding interrupt callback function is specified.

IRQ interrupt handler setting.


  • Registers the specified interrupt callback function.
  • Disables the interrupt when the pointer to the corresponding interrupt callback function is not specified.
    Parameters:
    [in]Graphics_Irq_Handler_Set: VDC5 interrupt type
    [in]num: Interrupt line number
    [in]callback: Interrupt callback function pointer
    Return values:
    Errorcode
    Parameters:
    [in]irq: VDC5 interrupt type
    [in]num: Interrupt line number
    [in]*callback : Interrupt callback function pointer
    Return values:
    errorcode

Definition at line 201 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Graphics_Lcd_Port_Init ( PinName *  pin,
unsigned int  pin_count 
)

LCD output port initialization processing.

LCD I/O initialization processing.

Parameters:
[in]pin: Pin assign for LCD output
[in]pin_count: Total number of pin assign
Return values:
Errorcode
Parameters:
[in]pin: Pointer of the pin assignment
[in]pin_count: Total number of the pin assignment
Return values:
errorcode

Definition at line 164 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Graphics_Lvds_Port_Init ( PinName *  pin,
unsigned int  pin_count 
)

LVDS output port initialization processing.

LVDS I/O port initialization processing.

Parameters:
[in]pin: Pin assign for LVDS output
[in]pin_count: Total number of pin assign
Return values:
Errorcode
Parameters:
[in]pin: Pointer of the pin assignment
[in]pin_count: Total number of the pin assignment
Return values:
errorcode

Definition at line 176 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Graphics_Read_Change ( graphics_layer_t  layer_id,
void *  framebuff 
)

Graphics surface read buffer change process.

Graphics surface read process changing.

Parameters:
[in]layer_id: Graphics layer ID

  • GRAPHICS_LAYER_0 : Layer 0
  • GRAPHICS_LAYER_1 : Layer 1
  • GRAPHICS_LAYER_2 : Layer 2
  • GRAPHICS_LAYER_3 : Layer 3
[in]framebuff: Base address of the frame buffer(Not set NULL)
Return values:
Errorcode

Description:
This function is used to swap buffers.

Parameters:
[in]layer_id: Graphics layer ID
[in]framebuff: Base address of the frame buffer
Return values:
Errorcode

Definition at line 329 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Graphics_Read_Setting ( graphics_layer_t  layer_id,
void *  framebuff,
unsigned int  fb_stride,
graphics_format_t  gr_format,
wr_rd_swa_t  wr_rd_swa,
rect_t gr_rect 
)

Graphics surface read process setting.

Parameters:
[in]layer_id: Graphics layer ID

  • GRAPHICS_LAYER_0 : Layer 0
  • GRAPHICS_LAYER_1 : Layer 1
  • GRAPHICS_LAYER_2 : Layer 2
  • GRAPHICS_LAYER_3 : Layer 3
[in]framebuff: Base address of the frame buffer(Not set NULL)
[in]fb_stride: Line offset address of the frame buffer[byte]
Frame buffer stride should be set to a multiple of 32 or 128 in accordance with the frame buffer burst transfer mode.
[in]gr_format: Format of the frame buffer read signal

  • VIDEO_FORMAT_YCBCR422 : YCBCR422 (2byte/px)
  • VIDEO_FORMAT_RGB565 : RGB565 (2byte/px)
  • VIDEO_FORMAT_RGB888 : RGB888 (4byte/px)
  • VIDEO_FORMAT_ARGB8888 : ARGB8888 (4byte/px)
[in]wr_rd_swa: frame buffer swap setting

  • WR_RD_WRSWA_NON : Not swapped: 1-2-3-4-5-6-7-8
  • WR_RD_WRSWA_8BIT : Swapped in 8-bit units: 2-1-4-3-6-5-8-7
  • WR_RD_WRSWA_16BIT : Swapped in 16-bit units: 3-4-1-2-7-8-5-6
  • WR_RD_WRSWA_16_8BIT : Swapped in 16-bit units + 8-bit units: 4-3-2-1-8-7-6-5
  • WR_RD_WRSWA_32BIT : Swapped in 32-bit units: 5-6-7-8-1-2-3-4
  • WR_RD_WRSWA_32_8BIT : Swapped in 32-bit units + 8-bit units: 6-5-8-7-2-1-4-3
  • WR_RD_WRSWA_32_16BIT : Swapped in 32-bit units + 16-bit units: 7-8-5-6-3-4-1-2
  • 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
[in]gr_rect: Graphics display area
Return values:
Errorcode

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]wr_rd_swa: frame buffer swap setting

  • WR_RD_WRSWA_NON : Not swapped: 1-2-3-4-5-6-7-8
  • WR_RD_WRSWA_8BIT : Swapped in 8-bit units: 2-1-4-3-6-5-8-7
  • WR_RD_WRSWA_16BIT : Swapped in 16-bit units: 3-4-1-2-7-8-5-6
  • WR_RD_WRSWA_16_8BIT : Swapped in 16-bit units + 8-bit units: 4-3-2-1-8-7-6-5
  • WR_RD_WRSWA_32BIT : Swapped in 32-bit units: 5-6-7-8-1-2-3-4
  • WR_RD_WRSWA_32_8BIT : Swapped in 32-bit units + 8-bit units: 6-5-8-7-2-1-4-3
  • WR_RD_WRSWA_32_16BIT : Swapped in 32-bit units + 16-bit units: 7-8-5-6-3-4-1-2
  • 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
[in]gr_rect: Graphics display area
Return values:
Errorcode

Definition at line 294 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Graphics_Start ( graphics_layer_t  layer_id )

Start the graphics surface read process.

Graphics surface read start processing.

Parameters:
[in]layer_id: Graphics layer ID

  • GRAPHICS_LAYER_0 : Layer 0
  • GRAPHICS_LAYER_1 : Layer 1
  • GRAPHICS_LAYER_2 : Layer 2
  • GRAPHICS_LAYER_3 : Layer 3
Return values:
Errorcode
Parameters:
[in]layer_id: Graphics layer ID
Return values:
errorcode

Definition at line 212 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Graphics_Stop ( graphics_layer_t  layer_id )

Stop the graphics surface read process.

Graphics surface read stop processing.

Parameters:
[in]layer_id: Graphics layer ID

  • GRAPHICS_LAYER_0 : Layer 0
  • GRAPHICS_LAYER_1 : Layer 1
  • GRAPHICS_LAYER_2 : Layer 2
  • GRAPHICS_LAYER_3 : Layer 3
Return values:
Errorcode
Parameters:
[in]layer_id: Graphics layer ID
Return values:
errorcode

Definition at line 223 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Graphics_Video_init ( video_input_sel_t  video_input_sel,
video_ext_in_config_t video_ext_in_config 
)

Graphics Video initialization processing
If setting INPUT_SEL_VDEC in video_input_sel parameter, set NULL in video_ext_in_config parameter.

Graphics Video initialization processing.

Parameters:
[in]video_input_sel: Input select
[in]video_ext_in_config: Video configuration
Return values:
errorcode
Parameters:
[in]video_input_sel: Input select
[in]video_ext_in_config: Digtal video input configuration
Return values:
errorcode

Definition at line 123 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Video_Start ( video_input_channel_t  video_input_channel )

Start the video surface write process.

Video surface write start processing.

Parameters:
[in]video_input_channel: Video input channel

  • VIDEO_INPUT_CHANNEL_0 : Video channel 0
  • VIDEO_INPUT_CHANNEL_1 : Video channel 1
Return values:
Errorcode
Parameters:
[in]video_input_channel: Video input channel
Return values:
errorcode

Definition at line 234 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Video_Stop ( video_input_channel_t  video_input_channel )

Stop the video surface write process.

Video surface write stop processing.

Parameters:
[in]video_input_channel: Video input channel

  • VIDEO_INPUT_CHANNEL_0 : Video channel 0
  • VIDEO_INPUT_CHANNEL_1 : Video channel 1
Return values:
Errorcode
Parameters:
[in]video_input_channel: Video input channel
Return values:
errorcode

Definition at line 255 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Video_Write_Change ( video_input_channel_t  video_input_channel,
void *  framebuff,
uint32_t  fb_stride 
)

Video surface write buffer change process.

Graphics surface write process changing This function is used to swap buffers of the weave write processing.

Parameters:
[in]video_input_channel: Video input channel

  • VIDEO_INPUT_CHANNEL_0 : Video channel 0
  • VIDEO_INPUT_CHANNEL_1 : Video channel 1
[in]framebuff: Base address of the frame buffer(Not set NULL)
[in]fb_stride: Line offset address of the frame buffer
Frame buffer stride should be set to a multiple of 32 or 128 in accordance with the frame buffer burst transfer mode.
Return values:
Errorcode
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:
Errorcode

Definition at line 436 of file DisplayBase.cpp.

DisplayBase::graphics_error_t Video_Write_Setting ( video_input_channel_t  video_input_channel,
graphics_video_col_sys_t  col_sys,
void *  framebuff,
unsigned int  fb_stride,
video_format_t  video_format,
wr_rd_swa_t  wr_rd_swa,
unsigned short  write_buff_vw,
unsigned short  write_buff_hw,
video_adc_vinsel_t  video_adc_vinsel = VIDEO_ADC_VINSEL_VIN1 
)

Video surface write process setting.

Video surface write process setting This function set the video write process.

Parameters:
[in]video_input_channel: Video input channel
If using digital input, this parameter is not referenced.

  • VIDEO_INPUT_CHANNEL_0 : Video channel 0
  • VIDEO_INPUT_CHANNEL_1 : Video channel 1
[in]col_sys: Analog video signal color system
If using digital input, this parameter is not referenced.

  • COL_SYS_NTSC_358 : NTSC-3.58
  • COL_SYS_NTSC_443 : NTSC-4.43
  • COL_SYS_PAL_443 : PAL-4.43
  • COL_SYS_PAL_M : PAL-M
  • COL_SYS_PAL_N : PAL-N
  • COL_SYS_SECAM : SECAM
  • COL_SYS_NTSC_443_60 : NTSC-4.43 (60Hz)
  • COL_SYS_PAL_60 : PAL-60
[in]framebuff: Base address of the frame buffer(Not set NULL)
[in]fb_stride: Line offset address of the frame buffer[byte]
Frame buffer stride should be set to a multiple of 32 or 128 in accordance with the frame buffer burst transfer mode.
[in]video_format: Frame buffer video-signal writing format

  • VIDEO_FORMAT_YCBCR422 : YCBCR422 (2byte/px)
  • VIDEO_FORMAT_RGB565 : RGB565 (2byte/px)
  • VIDEO_FORMAT_RGB888 : RGB888 (4byte/px)
[in]wr_rd_swa: frame buffer swap setting

  • WR_RD_WRSWA_NON : Not swapped: 1-2-3-4-5-6-7-8
  • WR_RD_WRSWA_8BIT : Swapped in 8-bit units: 2-1-4-3-6-5-8-7
  • WR_RD_WRSWA_16BIT : Swapped in 16-bit units: 3-4-1-2-7-8-5-6
  • WR_RD_WRSWA_16_8BIT : Swapped in 16-bit units + 8-bit units: 4-3-2-1-8-7-6-5
  • WR_RD_WRSWA_32BIT : Swapped in 32-bit units: 5-6-7-8-1-2-3-4
  • WR_RD_WRSWA_32_8BIT : Swapped in 32-bit units + 8-bit units: 6-5-8-7-2-1-4-3
  • WR_RD_WRSWA_32_16BIT : Swapped in 32-bit units + 16-bit units: 7-8-5-6-3-4-1-2
  • 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
[in]video_write_buff_vw: Output height[px]

  • NTSC format : Max height is 480[px]
  • PAL format : Max height is 520[px]
[in]video_write_buff_hw: Output width[px]

  • Max width : 800[px]
[in]video_adc_vinsel: Input pin control

  • VIDEO_ADC_VINSEL_VIN1 : VIN1 input
  • VIDEO_ADC_VINSEL_VIN2 : VIN2 input
Return values:
Errorcode

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

  • VIDEO_FORMAT_YCBCR422 : YCBCR422 (2byte/px)
  • VIDEO_FORMAT_RGB565 : RGB565 (2byte/px)
  • VIDEO_FORMAT_RGB888 : RGB888 (4byte/px)
[in]wr_rd_swa: frame buffer swap setting

  • WR_RD_WRSWA_NON : Not swapped: 1-2-3-4-5-6-7-8
  • WR_RD_WRSWA_8BIT : Swapped in 8-bit units: 2-1-4-3-6-5-8-7
  • WR_RD_WRSWA_16BIT : Swapped in 16-bit units: 3-4-1-2-7-8-5-6
  • WR_RD_WRSWA_16_8BIT : Swapped in 16-bit units + 8-bit units: 4-3-2-1-8-7-6-5
  • WR_RD_WRSWA_32BIT : Swapped in 32-bit units: 5-6-7-8-1-2-3-4
  • WR_RD_WRSWA_32_8BIT : Swapped in 32-bit units + 8-bit units: 6-5-8-7-2-1-4-3
  • WR_RD_WRSWA_32_16BIT : Swapped in 32-bit units + 16-bit units: 7-8-5-6-3-4-1-2
  • 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
[in]video_write_size_vw[px]: output v width
[in]video_write_size_hw[px]: output h width
[in]video_adc_vinsel: Input pin control
Return values:
Errorcode

Definition at line 365 of file DisplayBase.cpp.