![]() |
v_hcresampler
Vitis Drivers API Documentation
|
Functions | |
| int | XV_HcrsmplInitialize (XV_Hcresampler_l2 *InstancePtr, u16 DeviceId) |
| This function initializes the core instance. More... | |
| void | XV_HCrsmplStart (XV_Hcresampler_l2 *InstancePtr) |
| This function starts the Chroma resampler core. More... | |
| void | XV_HCrsmplStop (XV_Hcresampler_l2 *InstancePtr) |
| This function stops the Chroma resampler core. More... | |
| void | XV_HCrsmplLoadDefaultCoeff (XV_Hcresampler_l2 *InstancePtr) |
| This function loads default filter coefficients in the chroma resampler coefficient storage based on the selected TAP configuration. More... | |
| void | XV_HCrsmplrLoadExtCoeff (XV_Hcresampler_l2 *InstancePtr, u16 num_taps, const short *Coeff) |
| This function loads user defined filter coefficients in the horiz. More... | |
| void | XV_HCrsmplSetActiveSize (XV_Hcresampler_l2 *InstancePtr, u32 width, u32 height) |
| This function configures the Chroma resampler active resolution. More... | |
| void | XV_HCrsmplSetFormat (XV_Hcresampler_l2 *InstancePtr, XVidC_ColorFormat formatIn, XVidC_ColorFormat formatOut) |
| This function configures the Chroma resampler for the required format conversion. More... | |
| void | XV_HCrsmplDbgReportStatus (XV_Hcresampler_l2 *InstancePtr) |
| This function prints Chroma Resampler status on the console. More... | |
Variables | |
| const short | XV_hcrsmplrcoeff_taps4 [XV_HCRSMPLR_NUM_CONVERSIONS][XV_HCRSMPLR_MAX_PHASES][XV_HCRSMPLR_TAPS_4] |
| 4 tap filter coefficients More... | |
| const short | XV_hcrsmplrcoeff_taps4 [XV_HCRSMPLR_NUM_CONVERSIONS][XV_HCRSMPLR_MAX_PHASES][XV_HCRSMPLR_TAPS_4] |
| 4 tap filter coefficients More... | |
| void XV_HCrsmplDbgReportStatus | ( | XV_Hcresampler_l2 * | InstancePtr | ) |
This function prints Chroma Resampler status on the console.
| InstancePtr | is a pointer to the core instance to be worked on. |
References XV_hcresampler_Config::BaseAddress, XV_hcresampler::Config, XV_hcresampler_Config::NumTaps, XV_hcresampler_Config::ResamplingType, XV_HCRESAMPLER_CTRL_ADDR_AP_CTRL, XV_hcresampler_Get_HwReg_height(), XV_hcresampler_Get_HwReg_input_video_format(), XV_hcresampler_Get_HwReg_output_video_format(), XV_hcresampler_Get_HwReg_width(), XV_hcresampler_IsDone(), XV_hcresampler_IsIdle(), and XV_hcresampler_IsReady().
| int XV_HcrsmplInitialize | ( | XV_Hcresampler_l2 * | InstancePtr, |
| u16 | DeviceId | ||
| ) |
This function initializes the core instance.
| InstancePtr | is a pointer to core instance to be worked upon |
| DeviceId | is instance id of the core |
| void XV_HCrsmplLoadDefaultCoeff | ( | XV_Hcresampler_l2 * | InstancePtr | ) |
This function loads default filter coefficients in the chroma resampler coefficient storage based on the selected TAP configuration.
| InstancePtr | is a pointer to the core instance to be worked on. |
References XV_hcresampler::Config, XV_hcresampler_Config::NumTaps, XV_hcrsmplrcoeff_taps4, and XV_HCrsmplrLoadExtCoeff().
| void XV_HCrsmplrLoadExtCoeff | ( | XV_Hcresampler_l2 * | InstancePtr, |
| u16 | num_taps, | ||
| const short * | Coeff | ||
| ) |
This function loads user defined filter coefficients in the horiz.
chroma resampler coefficient storage
| InstancePtr | is a pointer to the core instance to be worked on. |
| num_taps | is the number of taps |
| Coeff | is a pointer to user defined filter coefficients table |
References XV_hcresampler::Config, and XV_hcresampler_Config::NumTaps.
Referenced by XV_HCrsmplLoadDefaultCoeff().
| void XV_HCrsmplSetActiveSize | ( | XV_Hcresampler_l2 * | InstancePtr, |
| u32 | width, | ||
| u32 | height | ||
| ) |
This function configures the Chroma resampler active resolution.
| InstancePtr | is a pointer to the core instance to be worked on. |
| width | is the active frame width |
| height | is the active frame height |
References XV_hcresampler_Set_HwReg_height(), and XV_hcresampler_Set_HwReg_width().
| void XV_HCrsmplSetFormat | ( | XV_Hcresampler_l2 * | InstancePtr, |
| XVidC_ColorFormat | formatIn, | ||
| XVidC_ColorFormat | formatOut | ||
| ) |
This function configures the Chroma resampler for the required format conversion.
| InstancePtr | is a pointer to the core instance to be worked on. |
| formatIn | is the input chroma format |
| formatOut | is required chroma format |
References XV_hcresampler::Config, XV_hcresampler_Config::ResamplingType, XV_hcresampler_Set_HwReg_input_video_format(), and XV_hcresampler_Set_HwReg_output_video_format().
| void XV_HCrsmplStart | ( | XV_Hcresampler_l2 * | InstancePtr | ) |
This function starts the Chroma resampler core.
| InstancePtr | is a pointer to the core instance to be worked on. |
References XV_hcresampler_EnableAutoRestart(), and XV_hcresampler_Start().
| void XV_HCrsmplStop | ( | XV_Hcresampler_l2 * | InstancePtr | ) |
This function stops the Chroma resampler core.
| InstancePtr | is a pointer to the core instance to be worked on. |
References XV_hcresampler_DisableAutoRestart().
| const short XV_hcrsmplrcoeff_taps4[XV_HCRSMPLR_NUM_CONVERSIONS][XV_HCRSMPLR_MAX_PHASES][XV_HCRSMPLR_TAPS_4] |
4 tap filter coefficients
Referenced by XV_HCrsmplLoadDefaultCoeff().
| const short XV_hcrsmplrcoeff_taps4[XV_HCRSMPLR_NUM_CONVERSIONS][XV_HCRSMPLR_MAX_PHASES][XV_HCRSMPLR_TAPS_4] |
4 tap filter coefficients
Referenced by XV_HCrsmplLoadDefaultCoeff().