![]() |
v_vcresampler
Vitis Drivers API Documentation
|
Functions | |
| int | XV_VcrsmplInitialize (XV_Vcresampler_l2 *InstancePtr, u16 DeviceId) |
| This function initializes the core instance. More... | |
| void | XV_VCrsmplStart (XV_Vcresampler_l2 *InstancePtr) |
| This function starts the Chroma resampler core. More... | |
| void | XV_VCrsmplStop (XV_Vcresampler_l2 *InstancePtr) |
| This function stops the Chroma resampler core. More... | |
| void | XV_VCrsmplLoadDefaultCoeff (XV_Vcresampler_l2 *InstancePtr) |
| This function loads default filter coefficients in the chroma resampler coefficient storage based on the selected TAP configuration. More... | |
| void | XV_VCrsmplrLoadExtCoeff (XV_Vcresampler_l2 *InstancePtr, u16 num_taps, const short *Coeff) |
| This function loads user defined filter coefficients in the horiz. More... | |
| void | XV_VCrsmplSetActiveSize (XV_Vcresampler_l2 *InstancePtr, u32 width, u32 height) |
| This function configures the Chroma resampler active resolution. More... | |
| void | XV_VCrsmplSetFormat (XV_Vcresampler_l2 *InstancePtr, XVidC_ColorFormat formatIn, XVidC_ColorFormat formatOut) |
| This function configures the Chroma resampler for the required format conversion. More... | |
| void | XV_VCrsmplDbgReportStatus (XV_Vcresampler_l2 *InstancePtr) |
| This function prints Chroma Resampler status on the console. More... | |
Variables | |
| const short | XV_vcrsmplrcoeff_taps4 [XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_4] |
| Coefficient table for 4-tap vertical chroma resampling conversions. More... | |
| const short | XV_vcrsmplrcoeff_taps6 [XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_6] |
| Coefficient table for vertical chroma resampler with 6 taps. More... | |
| const short | XV_vcrsmplrcoeff_taps8 [XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_8] |
| Coefficient table for vertical chroma resampling with 8 taps. More... | |
| const short | XV_vcrsmplrcoeff_taps10 [XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_10] |
| Coefficient table for vertical chroma resampler with 10 taps. More... | |
| const short | XV_vcrsmplrcoeff_taps4 [XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_4] |
| Coefficient table for 4-tap vertical chroma resampling conversions. More... | |
| const short | XV_vcrsmplrcoeff_taps6 [XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_6] |
| Coefficient table for vertical chroma resampler with 6 taps. More... | |
| const short | XV_vcrsmplrcoeff_taps8 [XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_8] |
| Coefficient table for vertical chroma resampling with 8 taps. More... | |
| const short | XV_vcrsmplrcoeff_taps10 [XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_10] |
| Coefficient table for vertical chroma resampler with 10 taps. More... | |
| void XV_VCrsmplDbgReportStatus | ( | XV_Vcresampler_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_vcresampler_Config::BaseAddress, XV_vcresampler::Config, XV_vcresampler_Config::NumTaps, XV_vcresampler_Config::ResamplingType, XV_VCRESAMPLER_CTRL_ADDR_AP_CTRL, XV_vcresampler_Get_HwReg_height(), XV_vcresampler_Get_HwReg_input_video_format(), XV_vcresampler_Get_HwReg_output_video_format(), XV_vcresampler_Get_HwReg_width(), XV_vcresampler_IsDone(), XV_vcresampler_IsIdle(), and XV_vcresampler_IsReady().
| int XV_VcrsmplInitialize | ( | XV_Vcresampler_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 |
References XV_vcresampler_Initialize().
| void XV_VCrsmplLoadDefaultCoeff | ( | XV_Vcresampler_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_vcresampler::Config, XV_vcresampler_Config::NumTaps, XV_vcrsmplrcoeff_taps10, XV_vcrsmplrcoeff_taps4, XV_vcrsmplrcoeff_taps6, XV_vcrsmplrcoeff_taps8, and XV_VCrsmplrLoadExtCoeff().
| void XV_VCrsmplrLoadExtCoeff | ( | XV_Vcresampler_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_vcresampler::Config, and XV_vcresampler_Config::NumTaps.
Referenced by XV_VCrsmplLoadDefaultCoeff().
| void XV_VCrsmplSetActiveSize | ( | XV_Vcresampler_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_vcresampler_Set_HwReg_height(), and XV_vcresampler_Set_HwReg_width().
| void XV_VCrsmplSetFormat | ( | XV_Vcresampler_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_vcresampler::Config, XV_vcresampler_Config::ResamplingType, XV_vcresampler_Set_HwReg_input_video_format(), and XV_vcresampler_Set_HwReg_output_video_format().
| void XV_VCrsmplStart | ( | XV_Vcresampler_l2 * | InstancePtr | ) |
This function starts the Chroma resampler core.
| InstancePtr | is a pointer to the core instance to be worked on. |
References XV_vcresampler_EnableAutoRestart(), and XV_vcresampler_Start().
| void XV_VCrsmplStop | ( | XV_Vcresampler_l2 * | InstancePtr | ) |
This function stops the Chroma resampler core.
| InstancePtr | is a pointer to the core instance to be worked on. |
References XV_vcresampler_DisableAutoRestart().
| const short XV_vcrsmplrcoeff_taps10[XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_10] |
Coefficient table for vertical chroma resampler with 10 taps.
This 3D array contains precomputed filter coefficients for chroma resampling conversions between 4:2:2 and 4:2:0 formats. The coefficients are organized as:
The coefficients are used by the vertical chroma resampler hardware or software to perform high-quality chroma sub-sampling or up-sampling.
Referenced by XV_VCrsmplLoadDefaultCoeff().
| const short XV_vcrsmplrcoeff_taps10[XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_10] |
Coefficient table for vertical chroma resampler with 10 taps.
This 3D array contains precomputed filter coefficients for chroma resampling conversions between 4:2:2 and 4:2:0 formats. The coefficients are organized as:
The coefficients are used by the vertical chroma resampler hardware or software to perform high-quality chroma sub-sampling or up-sampling.
Referenced by XV_VCrsmplLoadDefaultCoeff().
| const short XV_vcrsmplrcoeff_taps4[XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_4] |
Coefficient table for 4-tap vertical chroma resampling conversions.
This 3D array contains the filter coefficients used for vertical chroma resampling between different chroma subsampling formats (e.g., 4:2:2 to 4:2:0 and vice versa).
Dimensions:
Each entry contains the coefficients for a specific conversion and phase.
Example usage: XV_vcrsmplrcoeff_taps4[conversion][phase][tap]
Referenced by XV_VCrsmplLoadDefaultCoeff().
| const short XV_vcrsmplrcoeff_taps4[XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_4] |
Coefficient table for 4-tap vertical chroma resampling conversions.
This 3D array contains the filter coefficients used for vertical chroma resampling between different chroma subsampling formats (e.g., 4:2:2 to 4:2:0 and vice versa).
Dimensions:
Each entry contains the coefficients for a specific conversion and phase.
Example usage: XV_vcrsmplrcoeff_taps4[conversion][phase][tap]
Referenced by XV_VCrsmplLoadDefaultCoeff().
| const short XV_vcrsmplrcoeff_taps6[XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_6] |
Coefficient table for vertical chroma resampler with 6 taps.
This 3D array contains precomputed filter coefficients used by the vertical chroma resampler for different conversion modes and phases. The coefficients are organized as follows:
The coefficients are used to perform chroma resampling between different chroma subsampling formats.
Referenced by XV_VCrsmplLoadDefaultCoeff().
| const short XV_vcrsmplrcoeff_taps6[XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_6] |
Coefficient table for vertical chroma resampler with 6 taps.
This 3D array contains precomputed filter coefficients used by the vertical chroma resampler for different conversion modes and phases. The coefficients are organized as follows:
The coefficients are used to perform chroma resampling between different chroma subsampling formats.
Referenced by XV_VCrsmplLoadDefaultCoeff().
| const short XV_vcrsmplrcoeff_taps8[XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_8] |
Coefficient table for vertical chroma resampling with 8 taps.
This 3D array contains precomputed filter coefficients used for vertical chroma resampling between different chroma subsampling formats (e.g., 4:2:2 to 4:2:0 and vice versa).
Dimensions:
Each entry contains the coefficients for a specific conversion and phase.
Example conversions:
Referenced by XV_VCrsmplLoadDefaultCoeff().
| const short XV_vcrsmplrcoeff_taps8[XV_VCRSMPLR_NUM_CONVERSIONS][XV_VCRSMPLR_MAX_PHASES][XV_VCRSMPLR_TAPS_8] |
Coefficient table for vertical chroma resampling with 8 taps.
This 3D array contains precomputed filter coefficients used for vertical chroma resampling between different chroma subsampling formats (e.g., 4:2:2 to 4:2:0 and vice versa).
Dimensions:
Each entry contains the coefficients for a specific conversion and phase.
Example conversions:
Referenced by XV_VCrsmplLoadDefaultCoeff().