v_hcresampler
Xilinx SDK Drivers API Documentation
V_hcresampler_v1_0

Data Structures

struct  XV_Hcresampler_l2
 H Chroma Resampler Layer 2 data. More...
 

Hw Configuration

The following constants define the horiz.

resampler HW MAX configuration

enum  XV_HCRESAMPLER_TAPS
 This typedef enumerates the supported taps. More...
 
enum  XV_HCRESAMPLER_CONVERSION
 This typedef enumerates the conversion type. More...
 
enum  XV_HCRESAMPLER_TYPE
 This typedef enumerates the resampling algorithm. More...
 
int XV_HcrsmplInitialize (XV_Hcresampler_l2 *InstancePtr, u16 DeviceId)
 This function initializes the core instance. More...
 
void XV_HCrsmplStart (XV_Hcresampler_l2 *InstancePtr)
 This function starts the Chroma resampler core. More...
 
void XV_HCrsmplStop (XV_Hcresampler_l2 *InstancePtr)
 This function stops the Chroma resampler core. More...
 
void XV_HCrsmplLoadDefaultCoeff (XV_Hcresampler_l2 *InstancePtr)
 This function loads default filter coefficients in the chroma resampler coefficient storage based on the selected TAP configuration. More...
 
void XV_HCrsmplrLoadExtCoeff (XV_Hcresampler_l2 *InstancePtr, u16 num_taps, const short *Coeff)
 This function loads user defined filter coefficients in the horiz. More...
 
void XV_HCrsmplSetActiveSize (XV_Hcresampler_l2 *InstancePtr, u32 width, u32 height)
 This function configures the Chroma resampler active resolution. More...
 
void XV_HCrsmplSetFormat (XV_Hcresampler_l2 *InstancePtr, XVidC_ColorFormat formatIn, XVidC_ColorFormat formatOut)
 This function configures the Chroma resampler for the required format conversion. More...
 
void XV_HCrsmplDbgReportStatus (XV_Hcresampler_l2 *InstancePtr)
 This function prints Chroma Resampler status on the console. More...
 
#define XV_HCRSMPLR_MAX_TAPS   (10)
 
#define XV_HCRSMPLR_MAX_PHASES   (2)
 

Enumeration Type Documentation

◆ XV_HCRESAMPLER_CONVERSION

#include <xv_hcresampler_l2.h>

This typedef enumerates the conversion type.

◆ XV_HCRESAMPLER_TAPS

#include <xv_hcresampler_l2.h>

This typedef enumerates the supported taps.

◆ XV_HCRESAMPLER_TYPE

#include <xv_hcresampler_l2.h>

This typedef enumerates the resampling algorithm.

Function Documentation

◆ XV_HCrsmplDbgReportStatus()

void XV_HCrsmplDbgReportStatus ( XV_Hcresampler_l2 InstancePtr)

#include <xv_hcresampler_l2.c>

This function prints Chroma Resampler status on the console.

Parameters
InstancePtris a pointer to the core instance to be worked on.
Returns
None

References XV_hcresampler_Config::BaseAddress, XV_hcresampler::Config, and XV_hcresampler_Config::ResamplingType.

◆ XV_HcrsmplInitialize()

int XV_HcrsmplInitialize ( XV_Hcresampler_l2 InstancePtr,
u16  DeviceId 
)

#include <xv_hcresampler_l2.c>

This function initializes the core instance.

Parameters
InstancePtris a pointer to core instance to be worked upon
DeviceIdis instance id of the core
Returns
XST_SUCCESS if device is found and initialized XST_DEVICE_NOT_FOUND if device is not found

◆ XV_HCrsmplLoadDefaultCoeff()

void XV_HCrsmplLoadDefaultCoeff ( XV_Hcresampler_l2 InstancePtr)

#include <xv_hcresampler_l2.c>

This function loads default filter coefficients in the chroma resampler coefficient storage based on the selected TAP configuration.

Parameters
InstancePtris a pointer to the core instance to be worked on.
Returns
None

References XV_hcresampler::Config, and XV_hcresampler_Config::NumTaps.

◆ XV_HCrsmplrLoadExtCoeff()

void XV_HCrsmplrLoadExtCoeff ( XV_Hcresampler_l2 InstancePtr,
u16  num_taps,
const short *  Coeff 
)

#include <xv_hcresampler_l2.c>

This function loads user defined filter coefficients in the horiz.

chroma resampler coefficient storage

Parameters
InstancePtris a pointer to the core instance to be worked on.
num_tapsis the number of taps
Coeffis a pointer to user defined filter coefficients table
Returns
None

◆ XV_HCrsmplSetActiveSize()

void XV_HCrsmplSetActiveSize ( XV_Hcresampler_l2 InstancePtr,
u32  width,
u32  height 
)

#include <xv_hcresampler_l2.c>

This function configures the Chroma resampler active resolution.

Parameters
InstancePtris a pointer to the core instance to be worked on.
widthis the active frame width
heightis the active frame height
Returns
None

◆ XV_HCrsmplSetFormat()

void XV_HCrsmplSetFormat ( XV_Hcresampler_l2 InstancePtr,
XVidC_ColorFormat  formatIn,
XVidC_ColorFormat  formatOut 
)

#include <xv_hcresampler_l2.c>

This function configures the Chroma resampler for the required format conversion.

Parameters
InstancePtris a pointer to the core instance to be worked on.
formatInis the input chroma format
formatOutis required chroma format
Returns
None

◆ XV_HCrsmplStart()

void XV_HCrsmplStart ( XV_Hcresampler_l2 InstancePtr)

#include <xv_hcresampler_l2.c>

This function starts the Chroma resampler core.

Parameters
InstancePtris a pointer to the core instance to be worked on.
Returns
None

◆ XV_HCrsmplStop()

void XV_HCrsmplStop ( XV_Hcresampler_l2 InstancePtr)

#include <xv_hcresampler_l2.c>

This function stops the Chroma resampler core.

Parameters
InstancePtris a pointer to the core instance to be worked on.
Returns
None