v_frmbuf_wr
Xilinx SDK Drivers API Documentation
V_frmbuf_wr_v2_0

Enumerations

enum  XVFrmbufWr_HandlerType { XVFRMBUFWR_HANDLER_DONE = 1, XVFRMBUFWR_HANDLER_READY }
 These constants specify different types of handler and used to differentiate interrupt requests from peripheral. More...
 

Functions

XVidC_ColorFormat WrMemory2Live (XVidC_ColorFormat MemFmt)
 This function maps the memory video formats to the live/stream video formats. More...
 
int XVFrmbufWr_Initialize (XV_FrmbufWr_l2 *InstancePtr, u16 DeviceId)
 This function initializes the core instance. More...
 
void XVFrmbufWr_InterruptEnable (XV_FrmbufWr_l2 *InstancePtr, u32 IrqMask)
 This function enables interrupts in the core. More...
 
void XVFrmbufWr_InterruptDisable (XV_FrmbufWr_l2 *InstancePtr, u32 IrqMask)
 This function disables interrupts in the core. More...
 
void XVFrmbufWr_Start (XV_FrmbufWr_l2 *InstancePtr)
 This function starts the core instance. More...
 
int XVFrmbufWr_Stop (XV_FrmbufWr_l2 *InstancePtr)
 This function stops the core instance. More...
 
int XVFrmbufWr_WaitForIdle (XV_FrmbufWr_l2 *InstancePtr)
 This function Waits for the core to reach idle state. More...
 
int XVFrmbufWr_SetMemFormat (XV_FrmbufWr_l2 *InstancePtr, u32 StrideInBytes, XVidC_ColorFormat MemFmt, const XVidC_VideoStream *StrmIn)
 This function configures the frame buffer write memory output. More...
 
XVidC_VideoStream * XVFrmbufWr_GetVideoStream (XV_FrmbufWr_l2 *InstancePtr)
 This function reads the pointer to the output stream configuration. More...
 
int XVFrmbufWr_SetBufferAddr (XV_FrmbufWr_l2 *InstancePtr, UINTPTR Addr)
 This function sets the buffer address. More...
 
UINTPTR XVFrmbufWr_GetBufferAddr (XV_FrmbufWr_l2 *InstancePtr)
 This function reads the buffer address. More...
 
int XVFrmbufWr_SetChromaBufferAddr (XV_FrmbufWr_l2 *InstancePtr, UINTPTR Addr)
 This function sets the buffer address for the UV plane for semi-planar formats. More...
 
UINTPTR XVFrmbufWr_GetChromaBufferAddr (XV_FrmbufWr_l2 *InstancePtr)
 This function reads the buffer address for the UV plane for semi-planar formats. More...
 
u32 XVFrmbufWr_GetFieldID (XV_FrmbufWr_l2 *InstancePtr)
 This function reads the field ID. More...
 
void XVFrmbufWr_DbgReportStatus (XV_FrmbufWr_l2 *InstancePtr)
 This function reports the frame buffer write status. More...
 

Enumeration Type Documentation

◆ XVFrmbufWr_HandlerType

#include <xv_frmbufwr_l2.h>

These constants specify different types of handler and used to differentiate interrupt requests from peripheral.

Enumerator
XVFRMBUFWR_HANDLER_DONE 

Handler for ap_done.

XVFRMBUFWR_HANDLER_READY 

Handler for ap_ready.

Function Documentation

◆ WrMemory2Live()

XVidC_ColorFormat WrMemory2Live ( XVidC_ColorFormat  MemFmt)

#include <xv_frmbufwr_l2.c>

This function maps the memory video formats to the live/stream video formats.

Parameters
MemFmtis the video format written to memory
Returns
Live/Stream Video Format associated with that memory format

Referenced by XVFrmbufWr_SetMemFormat().

◆ XVFrmbufWr_DbgReportStatus()

◆ XVFrmbufWr_GetBufferAddr()

UINTPTR XVFrmbufWr_GetBufferAddr ( XV_FrmbufWr_l2 InstancePtr)

#include <xv_frmbufwr_l2.c>

This function reads the buffer address.

Parameters
InstancePtris a pointer to core instance to be worked upon
Returns
Address of buffer in memory

References XV_FrmbufWr_l2::FrmbufWr.

◆ XVFrmbufWr_GetChromaBufferAddr()

UINTPTR XVFrmbufWr_GetChromaBufferAddr ( XV_FrmbufWr_l2 InstancePtr)

#include <xv_frmbufwr_l2.c>

This function reads the buffer address for the UV plane for semi-planar formats.

Parameters
InstancePtris a pointer to core instance to be worked upon
Returns
Address of buffer in memory

References XV_FrmbufWr_l2::FrmbufWr.

◆ XVFrmbufWr_GetFieldID()

u32 XVFrmbufWr_GetFieldID ( XV_FrmbufWr_l2 InstancePtr)

#include <xv_frmbufwr_l2.c>

This function reads the field ID.

Parameters
InstancePtris a pointer to core instance to be worked upon
Returns
Field ID

References XV_frmbufwr::Config, XV_FrmbufWr_l2::FrmbufWr, and XV_frmbufwr_Config::Interlaced.

◆ XVFrmbufWr_GetVideoStream()

XVidC_VideoStream* XVFrmbufWr_GetVideoStream ( XV_FrmbufWr_l2 InstancePtr)

#include <xv_frmbufwr_l2.c>

This function reads the pointer to the output stream configuration.

Parameters
InstancePtris a pointer to core instance to be worked upon
Returns
Pointer to output stream configuration

References XV_FrmbufWr_l2::Stream.

◆ XVFrmbufWr_Initialize()

int XVFrmbufWr_Initialize ( XV_FrmbufWr_l2 InstancePtr,
u16  DeviceId 
)

#include <xv_frmbufwr_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

References XV_FrmbufWr_l2::FrmbufWr.

◆ XVFrmbufWr_InterruptDisable()

void XVFrmbufWr_InterruptDisable ( XV_FrmbufWr_l2 InstancePtr,
u32  IrqMask 
)

#include <xv_frmbufwr_l2.c>

This function disables interrupts in the core.

Parameters
InstancePtris a pointer to core instance to be worked upon
Returns
none

References XV_FrmbufWr_l2::FrmbufWr.

◆ XVFrmbufWr_InterruptEnable()

void XVFrmbufWr_InterruptEnable ( XV_FrmbufWr_l2 InstancePtr,
u32  IrqMask 
)

#include <xv_frmbufwr_l2.c>

This function enables interrupts in the core.

Parameters
InstancePtris a pointer to core instance to be worked upon
Returns
none

References XV_FrmbufWr_l2::FrmbufWr.

◆ XVFrmbufWr_SetBufferAddr()

int XVFrmbufWr_SetBufferAddr ( XV_FrmbufWr_l2 InstancePtr,
UINTPTR  Addr 
)

#include <xv_frmbufwr_l2.c>

This function sets the buffer address.

Parameters
InstancePtris a pointer to core instance to be worked upon
Addris the absolute address of buffer in memory
Returns
XST_SUCCESS or XST_FAILURE

References XV_frmbufwr::Config, XV_FrmbufWr_l2::FrmbufWr, and XV_frmbufwr_Config::PixPerClk.

◆ XVFrmbufWr_SetChromaBufferAddr()

int XVFrmbufWr_SetChromaBufferAddr ( XV_FrmbufWr_l2 InstancePtr,
UINTPTR  Addr 
)

#include <xv_frmbufwr_l2.c>

This function sets the buffer address for the UV plane for semi-planar formats.

Parameters
InstancePtris a pointer to core instance to be worked upon
Addris the absolute address of buffer in memory
Returns
XST_SUCCESS or XST_FAILURE

References XV_frmbufwr::Config, XV_FrmbufWr_l2::FrmbufWr, and XV_frmbufwr_Config::PixPerClk.

◆ XVFrmbufWr_SetMemFormat()

int XVFrmbufWr_SetMemFormat ( XV_FrmbufWr_l2 InstancePtr,
u32  StrideInBytes,
XVidC_ColorFormat  MemFmt,
const XVidC_VideoStream *  StrmIn 
)

#include <xv_frmbufwr_l2.c>

This function configures the frame buffer write memory output.

Parameters
InstancePtris a pointer to the core instance to be worked on.
StrideInBytesis the memory stride in bytes
MemFormatis the video format written to memory
StrmInis the pointer to output stream configuration
Returns
none

References XV_frmbufwr::Config, XV_FrmbufWr_l2::FrmbufWr, XV_frmbufwr_Config::PixPerClk, XV_FrmbufWr_l2::Stream, and WrMemory2Live().

◆ XVFrmbufWr_Start()

void XVFrmbufWr_Start ( XV_FrmbufWr_l2 InstancePtr)

#include <xv_frmbufwr_l2.c>

This function starts the core instance.

Parameters
InstancePtris a pointer to core instance to be worked upon
Returns
none

References XV_FrmbufWr_l2::FrmbufWr.

◆ XVFrmbufWr_Stop()

int XVFrmbufWr_Stop ( XV_FrmbufWr_l2 InstancePtr)

#include <xv_frmbufwr_l2.c>

This function stops the core instance.

Parameters
InstancePtris a pointer to core instance to be worked upon
Returns
XST_SUCCESS if the core is stop state XST_FAILURE if the core is not in stop state

References XV_FrmbufWr_l2::FrmbufWr.

◆ XVFrmbufWr_WaitForIdle()

int XVFrmbufWr_WaitForIdle ( XV_FrmbufWr_l2 InstancePtr)

#include <xv_frmbufwr_l2.c>

This function Waits for the core to reach idle state.

Parameters
InstancePtris a pointer to core instance to be worked upon
Returns
XST_SUCCESS if the core is in idle state XST_FAILURE if the core is not in idle state

References XV_FrmbufWr_l2::FrmbufWr.