video_common
Vitis Drivers API Documentation
xvidc.h File Reference

Data Structures

struct  XVidC_VideoTiming
 Video timing structure. More...
 
struct  XVidC_3DSamplingInfo
 3D Sampling info structure. More...
 
struct  XVidC_3DInfo
 3D info structure. More...
 
struct  XVidC_VideoStream
 Video stream structure. More...
 
struct  XVidC_VideoWindow
 Video window structure. More...
 
struct  XVidC_VideoTimingMode
 Video timing mode from the video timing table. More...
 

Macros

#define XVidC_IsStream3D(VidStreamPtr)   ((VidStreamPtr)->Is3D)
 This macro check if video stream is 3D or 2D. More...
 

Typedefs

typedef void(* XVidC_DelayHandler )(void *TimerPtr, u32 Delay)
 Callback type which represents a custom timer wait handler. More...
 

Enumerations

enum  XVidC_VideoMode
 This typedef enumerates the list of available standard display monitor timings as specified in the xvidc_timings_table.c file. More...
 
enum  XVidC_VideoFormat
 Progressive/interlaced video format. More...
 
enum  XVidC_FrameRate
 Frame rate. More...
 
enum  XVidC_ColorDepth
 Color depth - bits per color component. More...
 
enum  XVidC_PixelsPerClock
 Pixels per clock. More...
 
enum  XVidC_ColorFormat
 Color space format. More...
 
enum  XVidC_AspectRatio
 Image Aspect Ratio. More...
 
enum  XVidC_ColorStd
 Color space conversion standard. More...
 
enum  XVidC_ColorRange
 Color conversion output range. More...
 
enum  XVidC_3DFormat {
  XVIDC_3D_FRAME_PACKING = 0, XVIDC_3D_FIELD_ALTERNATIVE, XVIDC_3D_LINE_ALTERNATIVE, XVIDC_3D_SIDE_BY_SIDE_FULL,
  XVIDC_3D_TOP_AND_BOTTOM_HALF, XVIDC_3D_SIDE_BY_SIDE_HALF
}
 3D formats. More...
 
enum  XVidC_3DSamplingMethod { XVIDC_3D_SAMPLING_HORIZONTAL = 0, XVIDC_3D_SAMPLING_QUINCUNX }
 3D Sub-sampling methods. More...
 
enum  XVidC_3DSamplingPosition { XVIDC_3D_SAMPPOS_OLOR = 0, XVIDC_3D_SAMPPOS_OLER, XVIDC_3D_SAMPPOS_ELOR, XVIDC_3D_SAMPPOS_ELER }
 3D Sub-sampling positions. More...
 
enum  XVidC_Eotf
 Electro Optical Transfer Function. More...
 

Functions

u32 XVidC_RegisterCustomTimingModes (const XVidC_VideoTimingMode *CustomTable, u16 NumElems)
 This function registers a user-defined custom video mode timing table with video_common. More...
 
void XVidC_UnregisterCustomTimingModes (void)
 This function unregisters the user-defined custom video mode timing table previously registered by XVidC_RegisterCustomTimingModes(). More...
 
u64 XVidC_GetPixelClockHzByHVFr (u32 HTotal, u32 VTotal, u8 FrameRate)
 This function calculates pixel clock based on the inputs. More...
 
u64 XVidC_GetPixelClockHzByVmId (XVidC_VideoMode VmId)
 This function calculates pixel clock from video mode. More...
 
XVidC_VideoFormat XVidC_GetVideoFormat (XVidC_VideoMode VmId)
 This function checks if the input video mode is interlaced/progressive based on its ID from the video timings table. More...
 
u8 XVidC_IsInterlaced (XVidC_VideoMode VmId)
 This function checks if the input video mode is interlaced based on its ID from the video timings table. More...
 
const XVidC_VideoTimingModeXVidC_GetVideoModeData (XVidC_VideoMode VmId)
 This function returns the pointer to video mode data at index provided. More...
 
const char * XVidC_GetVideoModeStr (XVidC_VideoMode VmId)
 This function returns the resolution name for index specified. More...
 
const char * XVidC_GetFrameRateStr (XVidC_VideoMode VmId)
 This function returns the frame rate name for index specified. More...
 
const char * XVidC_GetColorFormatStr (XVidC_ColorFormat ColorFormatId)
 This function returns the color format name for index specified. More...
 
XVidC_FrameRate XVidC_GetFrameRate (XVidC_VideoMode VmId)
 This function returns the frame rate for index specified. More...
 
const XVidC_VideoTimingXVidC_GetTimingInfo (XVidC_VideoMode VmId)
 This function returns the timing parameters for specified resolution. More...
 
void XVidC_ReportStreamInfo (const XVidC_VideoStream *Stream)
 This function prints the stream information on STDIO/UART console. More...
 
void XVidC_ReportTiming (const XVidC_VideoTiming *Timing, u8 IsInterlaced)
 This function prints timing information on STDIO/Uart console. More...
 
const char * XVidC_Get3DFormatStr (XVidC_3DFormat Format)
 This function returns a string representation of the enumerated type, XVidC_3DFormat. More...
 
u32 XVidC_SetVideoStream (XVidC_VideoStream *VidStrmPtr, XVidC_VideoMode VmId, XVidC_ColorFormat ColorFormat, XVidC_ColorDepth Bpc, XVidC_PixelsPerClock Ppc)
 This function sets the VideoStream structure for the specified video format. More...
 
u32 XVidC_Set3DVideoStream (XVidC_VideoStream *VidStrmPtr, XVidC_VideoMode VmId, XVidC_ColorFormat ColorFormat, XVidC_ColorDepth Bpc, XVidC_PixelsPerClock Ppc, XVidC_3DInfo *Info3DPtr)
 This function sets the VideoStream structure for the specified 3D video format. More...
 
XVidC_VideoMode XVidC_GetVideoModeId (u32 Width, u32 Height, u32 FrameRate, u8 IsInterlaced)
 This function returns the Video Mode ID that matches the detected input width, height, frame rate and I/P flag. More...
 
XVidC_VideoMode XVidC_GetVideoModeIdExtensive (XVidC_VideoTiming *Timing, u32 FrameRate, u8 IsInterlaced, u8 IsExtensive)
 This function returns the Video Mode ID that matches the detected input timing, frame rate and I/P flag. More...
 
XVidC_VideoMode XVidC_GetVideoModeIdRb (u32 Width, u32 Height, u32 FrameRate, u8 IsInterlaced, u8 RbN)
 This function returns the video mode ID that matches the detected input width, height, frame rate, interlaced or progressive, and reduced blanking. More...
 
XVidC_VideoMode XVidC_GetVideoModeIdWBlanking (const XVidC_VideoTiming *Timing, u32 FrameRate, u8 IsInterlaced)
 This function returns the Video Mode ID that matches the detected input timing, frame rate and I/P flag. More...