v_vscaler
Vitis Drivers API Documentation
xv_vscaler_sinit.c File Reference

Functions

XV_vscaler_ConfigXV_vscaler_LookupConfig (u16 DeviceId)
 Looks up the configuration for a specific XV_vscaler device instance. More...
 
int XV_vscaler_Initialize (XV_vscaler *InstancePtr, u16 DeviceId)
 Initializes a specific XV_vscaler device instance. More...
 

Variables

XV_vscaler_Config XV_vscaler_ConfigTable []
 XV_vscaler_ConfigTable contains the configuration information for each V_VSCALER device in the system. More...
 

Function Documentation

int XV_vscaler_Initialize ( XV_vscaler InstancePtr,
u16  DeviceId 
)

Initializes a specific XV_vscaler device instance.

This function initializes the XV_vscaler device pointed to by InstancePtr using the configuration data corresponding to the specified DeviceId. It first looks up the configuration for the given DeviceId. If the configuration is found, it calls XV_vscaler_CfgInitialize to initialize the device instance. If the configuration is not found, the function sets the IsReady flag of the instance to 0 and returns XST_DEVICE_NOT_FOUND.

Parameters
InstancePtrPointer to the XV_vscaler instance to be initialized.
DeviceIdUnique identifier for the XV_vscaler device instance.
Returns
XST_SUCCESS if initialization is successful, or XST_DEVICE_NOT_FOUND if the configuration for the specified DeviceId does not exist.

References XV_vscaler_Config::BaseAddress, XV_vscaler::IsReady, XV_vscaler_CfgInitialize(), and XV_vscaler_LookupConfig().

Referenced by XV_VScalerInitialize().

XV_vscaler_Config* XV_vscaler_LookupConfig ( u16  DeviceId)

Looks up the configuration for a specific XV_vscaler device instance.

This function searches the XV_vscaler configuration table for an entry that matches the specified DeviceId. If a matching configuration is found, a pointer to the configuration structure is returned; otherwise, NULL is returned.

Parameters
DeviceIdThe unique identifier of the XV_vscaler device instance to look up.
Returns
Pointer to the XV_vscaler_Config structure if found, or NULL if no matching configuration exists.

Referenced by XV_vscaler_Initialize().

Variable Documentation

XV_vscaler_Config XV_vscaler_ConfigTable[]

XV_vscaler_ConfigTable contains the configuration information for each V_VSCALER device in the system.

This table is typically populated using values from xparameters.h generated by the hardware design tools.

Each entry corresponds to a hardware instance and includes parameters such as:

  • Device ID
  • Base address
  • Samples per clock
  • Number of video components
  • Maximum columns and rows
  • Maximum data width
  • Phase shift
  • Scale mode
  • Number of taps
  • Enable 4:2:0 support