v_hscaler
Vitis Drivers API Documentation
xv_hscaler_sinit.c File Reference

Functions

XV_hscaler_ConfigXV_hscaler_LookupConfig (u16 DeviceId)
 This function looks up the configuration for a device instance by its DeviceId. More...
 
int XV_hscaler_Initialize (XV_hscaler *InstancePtr, u16 DeviceId)
 XV_hscaler_Initialize - Initializes an XV_hscaler instance. More...
 

Variables

XV_hscaler_Config XV_hscaler_ConfigTable []
 XV_hscaler_ConfigTable - Array of configuration structures for XV_hscaler instances. More...
 

Function Documentation

int XV_hscaler_Initialize ( XV_hscaler InstancePtr,
u16  DeviceId 
)

XV_hscaler_Initialize - Initializes an XV_hscaler instance.

This function looks up the hardware configuration for the device specified by DeviceId, and initializes the XV_hscaler instance pointed to by InstancePtr. If the configuration is not found, the function sets the instance's IsReady flag to 0 and returns XST_DEVICE_NOT_FOUND. Otherwise, it calls XV_hscaler_CfgInitialize to complete the initialization.

Parameters
InstancePtrPointer to the XV_hscaler instance to be initialized.
DeviceIdUnique device ID of the XV_hscaler core.
Returns
  • XST_SUCCESS if initialization was successful.
  • XST_DEVICE_NOT_FOUND if the device configuration could not be found.

References XV_hscaler_Config::BaseAddress, XV_hscaler::IsReady, XV_hscaler_CfgInitialize(), and XV_hscaler_LookupConfig().

Referenced by XV_HScalerInitialize().

XV_hscaler_Config* XV_hscaler_LookupConfig ( u16  DeviceId)

This function looks up the configuration for a device instance by its DeviceId.

Parameters
DeviceIdis the unique device ID of the XV_hscaler instance.
Returns
A pointer to the configuration structure if found, or NULL otherwise.
Note
None.

Referenced by XV_hscaler_Initialize().

Variable Documentation

XV_hscaler_Config XV_hscaler_ConfigTable[]

XV_hscaler_ConfigTable - Array of configuration structures for XV_hscaler instances.

This table contains the configuration parameters for each instance of the XV_hscaler hardware IP core present in the system. Each entry is initialized with values defined in the hardware platform configuration (xparameters.h), such as device ID, base address, supported video formats, and scaling capabilities.

Fields initialized per instance:

  • Device ID
  • AXI control base address
  • Samples per clock
  • Number of video components
  • Maximum columns and rows supported
  • Maximum data width
  • Phase shift value
  • Scale mode
  • Number of filter taps
  • Enable flags for 4:2:2 and 4:2:0 chroma subsampling
  • Enable flag for color space conversion (CSC)

The table is typically auto-generated based on the hardware design and should not be modified manually.