v_deinterlacer
Vitis Drivers API Documentation
xv_deinterlacer_sinit.c File Reference

Functions

XV_deinterlacer_ConfigXV_deinterlacer_LookupConfig (u16 DeviceId)
 XV_deinterlacer_LookupConfig - Looks up the configuration for a specific device ID. More...
 
int XV_deinterlacer_Initialize (XV_deinterlacer *InstancePtr, u16 DeviceId)
 XV_deinterlacer_Initialize - Initializes the XV_deinterlacer instance. More...
 

Variables

XV_deinterlacer_Config XV_deinterlacer_ConfigTable []
 XV_deinterlacer_ConfigTable - Configuration table for XV_deinterlacer driver instances. More...
 

Function Documentation

int XV_deinterlacer_Initialize ( XV_deinterlacer InstancePtr,
u16  DeviceId 
)

XV_deinterlacer_Initialize - Initializes the XV_deinterlacer instance.

This function looks up the configuration for the specified device ID and initializes the XV_deinterlacer instance with the configuration data. If the configuration cannot be found, the function sets the instance as not ready and returns an error code.

Parameters
InstancePtrPointer to the XV_deinterlacer instance to be initialized.
DeviceIdDevice ID of the XV_deinterlacer core to look up.
Returns
  • XST_SUCCESS if initialization is successful.
  • XST_DEVICE_NOT_FOUND if the device configuration is not found.

References XV_deinterlacer_Config::BaseAddress, XV_deinterlacer::IsReady, XV_deinterlacer_CfgInitialize(), and XV_deinterlacer_LookupConfig().

Referenced by XV_DeintInitialize().

XV_deinterlacer_Config* XV_deinterlacer_LookupConfig ( u16  DeviceId)

XV_deinterlacer_LookupConfig - Looks up the configuration for a specific device ID.

This function searches the XV_deinterlacer_ConfigTable for a configuration structure that matches the provided DeviceId. If a match is found, a pointer to the corresponding configuration structure is returned. If no match is found, NULL is returned.

Parameters
DeviceId,:The unique identifier for the device whose configuration is to be found.
Returns
  • Pointer to the XV_deinterlacer_Config structure if a match is found.
  • NULL if no matching configuration is found.

Referenced by XV_deinterlacer_Initialize().

Variable Documentation

XV_deinterlacer_Config XV_deinterlacer_ConfigTable[]

XV_deinterlacer_ConfigTable - Configuration table for XV_deinterlacer driver instances.

This table contains configuration structures for each instance of the XV_deinterlacer hardware. Each entry provides the following information:

  • Device ID
  • Base address of the hardware instance
  • Number of video components supported
  • Maximum data width supported

The values are populated from xparameters.h macros.