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_vdec.c File Reference

r_vdec.c File Reference

VDEC driver API function. More...

Go to the source code of this file.

Functions

vdec_error_t R_VDEC_Initialize (const vdec_channel_t ch, const vdec_adc_vinsel_t vinsel, void(*const init_func)(uint32_t), const uint32_t user_num)
 VDEC driver initialization.
vdec_error_t R_VDEC_Terminate (const vdec_channel_t ch, void(*const quit_func)(uint32_t), const uint32_t user_num)
 VDEC driver termination.
vdec_error_t R_VDEC_ActivePeriod (const vdec_channel_t ch, const vdec_active_period_t *const param)
 Active image period setup.
vdec_error_t R_VDEC_SyncSeparation (const vdec_channel_t ch, const vdec_sync_separation_t *const param)
 Sync separation processing.
vdec_error_t R_VDEC_YcSeparation (const vdec_channel_t ch, const vdec_yc_separation_t *const param)
 Y/C separation processing.
vdec_error_t R_VDEC_ChromaDecoding (const vdec_channel_t ch, const vdec_chroma_decoding_t *const param)
 Chroma decoding processing.
vdec_error_t R_VDEC_DigitalClamp (const vdec_channel_t ch, const vdec_degital_clamp_t *const param)
 Digital clamp processing.
vdec_error_t R_VDEC_Output (const vdec_channel_t ch, const vdec_output_t *const param)
 Output adjustment processing.
vdec_error_t R_VDEC_Query (const vdec_channel_t ch, vdec_q_sync_sep_t *const q_sync_sep, vdec_q_agc_t *const q_agc, vdec_q_chroma_dec_t *const q_chroma_dec, vdec_q_digital_clamp_t *const q_digital_clamp)
 VDEC information acquisition processing.

Detailed Description

VDEC driver API function.

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

Definition in file r_vdec.c.


Function Documentation

vdec_error_t R_VDEC_ActivePeriod ( const vdec_channel_t  ch,
const vdec_active_period_t *const   param 
)

Active image period setup.

Description:
This function configures the active image period.

Parameters:
[in]ch: Channel
[in]param: Active image period parameter
Return values:
Errorcode

Definition at line 133 of file r_vdec.c.

vdec_error_t R_VDEC_ChromaDecoding ( const vdec_channel_t  ch,
const vdec_chroma_decoding_t *const   param 
)

Chroma decoding processing.

Description:
This function performs the following processing:

  • Configures the color system detection.
  • Configures the BCO.
  • Configures the ACC/color killer.
  • Configures the TINT correction/R-Y axis correction.
    Parameters:
    [in]ch: Channel
    [in]param: Chroma decoding parameter
    Return values:
    Errorcode

Definition at line 230 of file r_vdec.c.

vdec_error_t R_VDEC_DigitalClamp ( const vdec_channel_t  ch,
const vdec_degital_clamp_t *const   param 
)

Digital clamp processing.

Description:
This function performs the following processing:

  • Configures the digital clamp control.
  • Configures the center clamp.
  • Configures the pedestal clamp.
  • Configures the noise detection control.
    Parameters:
    [in]ch: Channel
    [in]param: Digital clamp parameter
    Return values:
    Errorcode

Definition at line 262 of file r_vdec.c.

vdec_error_t R_VDEC_Initialize ( const vdec_channel_t  ch,
const vdec_adc_vinsel_t  vinsel,
void(*)(uint32_t)  init_func,
const uint32_t  user_num 
)

VDEC driver initialization.

Description:
This function performs the following processing:

  • Calls the user-defined function specified in init_func.
  • Sets up the input pins.
    Parameters:
    [in]ch: Channel
    [in]vinsel: Input pin control

    • VDEC_ADC_VINSEL_VIN1
    • VDEC_ADC_VINSEL_VIN2
    [in]init_func: Pointer to a user-defined function
    [in]user_num: User defined number
    Return values:
    Errorcode

Definition at line 67 of file r_vdec.c.

vdec_error_t R_VDEC_Output ( const vdec_channel_t  ch,
const vdec_output_t *const   param 
)

Output adjustment processing.

Description:
This function makes settings for output adjustment.

Parameters:
[in]ch: Channel
[in]param: Output adjustment parameter
Return values:
Errorcode

Definition at line 290 of file r_vdec.c.

vdec_error_t R_VDEC_Query ( const vdec_channel_t  ch,
vdec_q_sync_sep_t *const   q_sync_sep,
vdec_q_agc_t *const   q_agc,
vdec_q_chroma_dec_t *const   q_chroma_dec,
vdec_q_digital_clamp_t *const   q_digital_clamp 
)

VDEC information acquisition processing.

Description:
This gets the parameters of the VDEC modules. The parameters that can be obtained are listed below.

  • Sync separation parameters
  • AGC parameters
  • Chroma decoding parameters
  • Digital clamp parameters
    Parameters:
    [in]ch: Channel
    [out]q_sync_sep: Pointer to the place where the sync separation parameters are stored.
    [out]q_agc: Pointer to the place where the AGC parameters are stored.
    [out]q_chroma_dec: Pointer to the place where the chroma decoding parameters are stored.
    [out]q_digital_clamp: Pointer to the place where the digital clamp parameters are stored.
    Return values:
    Errorcode

Definition at line 325 of file r_vdec.c.

vdec_error_t R_VDEC_SyncSeparation ( const vdec_channel_t  ch,
const vdec_sync_separation_t *const   param 
)

Sync separation processing.

Description:
This function performs the following processing:

  • Configures the noise reduction LPF.
  • Configures the auto level control sync slicer.
  • Configures the horizontal AFC.
  • Configures the vertical count-down.
  • Configures the AGC.
  • Configures the peak limiter control.
    Parameters:
    [in]ch: Channel
    [in]param: Sync separation parameter
    Return values:
    Errorcode

Definition at line 167 of file r_vdec.c.

vdec_error_t R_VDEC_Terminate ( const vdec_channel_t  ch,
void(*)(uint32_t)  quit_func,
const uint32_t  user_num 
)

VDEC driver termination.

Description:
This function performs the following processing:

  • 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 105 of file r_vdec.c.

vdec_error_t R_VDEC_YcSeparation ( const vdec_channel_t  ch,
const vdec_yc_separation_t *const   param 
)

Y/C separation processing.

Description:
This function performs the following processing:

  • Configures the over-range control.
  • Configures the Y/C separation control.
  • Configures the chroma filter TAP coefficients for Y/C separation.
    Parameters:
    [in]ch: Channel
    [in]param: Y/C separation parameter
    Return values:
    Errorcode

Definition at line 198 of file r_vdec.c.