Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
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 | ||
| ) |
| 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:
-
Error code
| 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:
-
Error code
| 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:
-
Error code
| vdec_error_t R_VDEC_Output | ( | const vdec_channel_t | ch, |
| const vdec_output_t *const | param | ||
| ) |
| 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:
-
Error code
| 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:
-
Error code
| 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:
-
Error code
| 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:
-
Error code
Generated on Tue Jul 12 2022 14:47:53 by
1.7.2
