v_vcresampler
Vitis Drivers API Documentation
xv_vcresampler_sinit.c File Reference

Functions

XV_vcresampler_ConfigXV_vcresampler_LookupConfig (u16 DeviceId)
 Looks up the configuration for a specific XV_vcresampler device instance. More...
 
int XV_vcresampler_Initialize (XV_vcresampler *InstancePtr, u16 DeviceId)
 Initializes the XV_vcresampler instance. More...
 

Variables

XV_vcresampler_Config XV_vcresampler_ConfigTable []
 XV_vcresampler_ConfigTable. More...
 

Function Documentation

int XV_vcresampler_Initialize ( XV_vcresampler InstancePtr,
u16  DeviceId 
)

Initializes the XV_vcresampler instance.

This function looks up the configuration for the given DeviceId, and initializes the XV_vcresampler instance with the configuration. If the configuration is not found, the function sets the instance as not ready and returns an error code.

Parameters
InstancePtrPointer to the XV_vcresampler instance to be initialized.
DeviceIdDevice ID of the hardware instance to initialize.
Returns
  • XST_SUCCESS if initialization was successful.
  • XST_DEVICE_NOT_FOUND if the configuration for the given DeviceId was not found.

References XV_vcresampler_Config::BaseAddress, XV_vcresampler::IsReady, XV_vcresampler_CfgInitialize(), and XV_vcresampler_LookupConfig().

Referenced by XV_VcrsmplInitialize().

XV_vcresampler_Config* XV_vcresampler_LookupConfig ( u16  DeviceId)

Looks up the configuration for a specific XV_vcresampler device instance.

This function searches the XV_vcresampler_ConfigTable for a configuration structure that matches the provided DeviceId. If a match is found, a pointer to the configuration structure is returned; otherwise, NULL is returned.

Parameters
DeviceIdThe unique identifier for the XV_vcresampler device instance.
Returns
Pointer to the XV_vcresampler_Config structure if found, or NULL if no match is found.

Referenced by XV_vcresampler_Initialize().

Variable Documentation

XV_vcresampler_Config XV_vcresampler_ConfigTable[]

XV_vcresampler_ConfigTable.

This table contains the configuration parameters for each XV_vcresampler hardware instance defined in xparameters.h. Each entry is populated with macros generated by the hardware design tools, describing the instance's device ID, base address, and capabilities.

Fields:

  • DEVICE_ID: Unique identifier for the hardware instance.
  • S_AXI_CTRL_BASEADDR: Base address for the control interface.
  • SAMPLES_PER_CLOCK: Number of samples processed per clock cycle.
  • NUM_VIDEO_COMPONENTS: Number of video components supported.
  • MAX_COLS: Maximum horizontal resolution.
  • MAX_ROWS: Maximum vertical resolution.
  • MAX_DATA_WIDTH: Maximum data width supported.
  • CONVERT_TYPE: Type of color conversion supported.
  • NUM_V_TAPS: Number of vertical filter taps.