![]() |
v_vscaler
Vitis Drivers API Documentation
|
Functions | |
| int | XV_VScalerInitialize (XV_Vscaler_l2 *InstancePtr, u16 DeviceId) |
| This function initializes the core instance. More... | |
| void | XV_VScalerStart (XV_Vscaler_l2 *InstancePtr) |
| This function starts the vertical scaler core. More... | |
| void | XV_VScalerStop (XV_Vscaler_l2 *InstancePtr) |
| This function stops the vertical scaler core. More... | |
| void | XV_VScalerLoadExtCoeff (XV_Vscaler_l2 *InstancePtr, u16 num_phases, u16 num_taps, const short *Coeff) |
| This function loads user defined filter coefficients in the scaler coefficient storage. More... | |
| int | XV_VScalerSetup (XV_Vscaler_l2 *InstancePtr, u32 WidthIn, u32 HeightIn, u32 HeightOut, u32 ColorFormat) |
| This function configures the scaler core registers with the specified configuration parameters of the AXI stream. More... | |
| void | XV_VScalerDbgReportStatus (XV_Vscaler_l2 *InstancePtr) |
| This function prints V Scaler status on the console. More... | |
Variables | |
| const short | XV_vscaler_Lanczos2_taps6 [XV_VSCALER_MAX_V_PHASES][XV_VSCALER_TAPS_6] |
| XV_vscaler_Lanczos2_taps6 Default fixed coefficient set for 6-tap Lanczos2 vertical scaler filter. More... | |
| const short | XV_vscaler_Lanczos2_taps6 [XV_VSCALER_MAX_V_PHASES][XV_VSCALER_TAPS_6] |
| XV_vscaler_Lanczos2_taps6 Default fixed coefficient set for 6-tap Lanczos2 vertical scaler filter. More... | |
| void XV_VScalerDbgReportStatus | ( | XV_Vscaler_l2 * | InstancePtr | ) |
This function prints V Scaler status on the console.
| InstancePtr | is the instance pointer to the core instance. |
References XV_vscaler_Config::BaseAddress, XV_vscaler::Config, XV_vscaler_Config::NumTaps, XV_vscaler_Config::PhaseShift, XV_vscaler_Config::ScalerType, XV_VSCALER_CTRL_ADDR_AP_CTRL, XV_vscaler_Get_HwReg_ColorMode(), XV_vscaler_Get_HwReg_HeightIn(), XV_vscaler_Get_HwReg_HeightOut(), XV_vscaler_Get_HwReg_LineRate(), XV_vscaler_Get_HwReg_vfltCoeff_BaseAddress(), XV_vscaler_Get_HwReg_Width(), XV_vscaler_IsDone(), XV_vscaler_IsIdle(), XV_vscaler_IsReady(), and XV_VscalerIs420Enabled.
| int XV_VScalerInitialize | ( | XV_Vscaler_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_vscaler_Initialize().
| void XV_VScalerLoadExtCoeff | ( | XV_Vscaler_l2 * | InstancePtr, |
| u16 | num_phases, | ||
| u16 | num_taps, | ||
| const short * | Coeff | ||
| ) |
This function loads user defined filter coefficients in the scaler coefficient storage.
| InstancePtr | is a pointer to the core instance to be worked on. |
| num_phases | is the number of phases in coefficient table |
| num_taps | is the number of taps in coefficient table |
| Coeff | is a pointer to user defined filter coefficients table |
References XV_vscaler::Config, and XV_vscaler_Config::PhaseShift.
| int XV_VScalerSetup | ( | XV_Vscaler_l2 * | InstancePtr, |
| u32 | WidthIn, | ||
| u32 | HeightIn, | ||
| u32 | HeightOut, | ||
| u32 | ColorFormat | ||
| ) |
This function configures the scaler core registers with the specified configuration parameters of the AXI stream.
| InstancePtr | is a pointer to the core instance to be worked on. |
| WidthIn | is the input stream width. |
| HeightIn | is the input stream height. |
| HeightOut | is the output stream height. |
| ColorFormat | is the color format of the stream. |
References XV_vscaler::Config, XV_vscaler_Config::PixPerClk, XV_vscaler_Config::ScalerType, XV_vscaler_Set_HwReg_ColorMode(), XV_vscaler_Set_HwReg_HeightIn(), XV_vscaler_Set_HwReg_HeightOut(), XV_vscaler_Set_HwReg_LineRate(), XV_vscaler_Set_HwReg_Width(), and XV_VscalerIs420Enabled.
| void XV_VScalerStart | ( | XV_Vscaler_l2 * | InstancePtr | ) |
This function starts the vertical scaler core.
| InstancePtr | is a pointer to the core instance to be worked on. |
References XV_vscaler_EnableAutoRestart(), and XV_vscaler_Start().
| void XV_VScalerStop | ( | XV_Vscaler_l2 * | InstancePtr | ) |
This function stops the vertical scaler core.
| InstancePtr | is a pointer to the core instance to be worked on. |
References XV_vscaler_DisableAutoRestart().
| const short XV_vscaler_Lanczos2_taps6[XV_VSCALER_MAX_V_PHASES][XV_VSCALER_TAPS_6] |
XV_vscaler_Lanczos2_taps6 Default fixed coefficient set for 6-tap Lanczos2 vertical scaler filter.
Each row represents a phase; columns are tap coefficients. Values are in Q12 fixed-point format.
| const short XV_vscaler_Lanczos2_taps6[XV_VSCALER_MAX_V_PHASES][XV_VSCALER_TAPS_6] |
XV_vscaler_Lanczos2_taps6 Default fixed coefficient set for 6-tap Lanczos2 vertical scaler filter.
Each row represents a phase; columns are tap coefficients. Values are in Q12 fixed-point format.