XvMCSurfaceTypes Class Reference

#include <XvMCSurfaceTypes.h>

List of all members.


Detailed Description

Definition at line 44 of file XvMCSurfaceTypes.h.


Public Member Functions

 XvMCSurfaceTypes (Display *dpy, XvPortID port)
 ~XvMCSurfaceTypes ()
int find (int pminWidth, int pminHeight, int chroma, bool vld, bool idct, int mpeg, int pminSubpictureWidth, int pminSubpictureHeight)
 Find an appropriate surface on the current port.
bool hasChroma420 (int surface) const
bool hasChroma422 (int surface) const
bool hasChroma444 (int surface) const
bool hasOverlay (int surface) const
bool hasBackendSubpicture (int surface) const
bool hasSubpictureScaling (int surface) const
bool isIntraUnsigned (int surface) const
bool hasCopyToPBuffer (int surface) const
bool hasMotionCompensationAcceleration (int surface) const
bool hasIDCTAcceleration (int surface) const
bool hasVLDAcceleration (int surface) const
bool hasMPEG1Support (int surface) const
bool hasMPEG2Support (int surface) const
bool hasH263Support (int surface) const
bool hasMPEG4Support (int surface) const
int surfaceTypeID (int surface) const
unsigned short maxWidth (int surface) const
unsigned short maxHeight (int surface) const
unsigned short maxSubpictureWidth (int surface) const
unsigned short maxSubpictureHeight (int surface) const
void set (int surface, XvMCSurfaceInfo *surfinfo) const
int size () const
QString toString (Display *pdisp=NULL, XvPortID p=0) const
ostream & operator<< (ostream &os) const

Static Public Member Functions

static void find (int minWidth, int minHeight, int chroma, bool vld, bool idct, int mpeg, int minSubpictureWidth, int minSubpictureHeight, Display *dpy, XvPortID portMin, XvPortID portMax, XvPortID &port, int &surfNum)
 Find an appropriate surface on the current display.
static bool has (Display *pdisp, XvMCAccelID accel_type, uint stream_type, int chroma, uint width, uint height, uint osd_width, uint osd_height)
 Find out if there is a surface on any port capable of a specific acceleration type.
static QString XvMCDescription (Display *pdisp=NULL)

Private Attributes

int num
XvMCSurfaceInfosurfaces

Constructor & Destructor Documentation

XvMCSurfaceTypes::XvMCSurfaceTypes ( Display *  dpy,
XvPortID  port 
) [inline]

Definition at line 47 of file XvMCSurfaceTypes.h.

XvMCSurfaceTypes::~XvMCSurfaceTypes (  )  [inline]

Definition at line 52 of file XvMCSurfaceTypes.h.


Member Function Documentation

int XvMCSurfaceTypes::find ( int  pminWidth,
int  pminHeight,
int  chroma,
bool  vld,
bool  idct,
int  mpeg,
int  pminSubpictureWidth,
int  pminSubpictureHeight 
) [inline]

Find an appropriate surface on the current port.

Definition at line 43 of file XvMCSurfaceTypes.cpp.

Referenced by find(), VideoOutputXv::GrabSuitableXvPort(), and has().

bool XvMCSurfaceTypes::hasChroma420 ( int  surface  )  const [inline]

Definition at line 62 of file XvMCSurfaceTypes.h.

Referenced by toString().

bool XvMCSurfaceTypes::hasChroma422 ( int  surface  )  const [inline]

Definition at line 67 of file XvMCSurfaceTypes.h.

Referenced by toString().

bool XvMCSurfaceTypes::hasChroma444 ( int  surface  )  const [inline]

Definition at line 72 of file XvMCSurfaceTypes.h.

Referenced by toString().

bool XvMCSurfaceTypes::hasOverlay ( int  surface  )  const [inline]

Definition at line 77 of file XvMCSurfaceTypes.h.

Referenced by toString().

bool XvMCSurfaceTypes::hasBackendSubpicture ( int  surface  )  const [inline]

Definition at line 82 of file XvMCSurfaceTypes.h.

Referenced by toString().

bool XvMCSurfaceTypes::hasSubpictureScaling ( int  surface  )  const [inline]

Definition at line 87 of file XvMCSurfaceTypes.h.

Referenced by toString().

bool XvMCSurfaceTypes::isIntraUnsigned ( int  surface  )  const [inline]

Definition at line 93 of file XvMCSurfaceTypes.h.

Referenced by toString().

bool XvMCSurfaceTypes::hasCopyToPBuffer ( int  surface  )  const [inline]

Definition at line 98 of file XvMCSurfaceTypes.h.

Referenced by toString().

bool XvMCSurfaceTypes::hasMotionCompensationAcceleration ( int  surface  )  const [inline]

Definition at line 108 of file XvMCSurfaceTypes.h.

Referenced by toString().

bool XvMCSurfaceTypes::hasIDCTAcceleration ( int  surface  )  const [inline]

Definition at line 115 of file XvMCSurfaceTypes.h.

Referenced by find(), and toString().

bool XvMCSurfaceTypes::hasVLDAcceleration ( int  surface  )  const [inline]

Definition at line 120 of file XvMCSurfaceTypes.h.

Referenced by find(), and toString().

bool XvMCSurfaceTypes::hasMPEG1Support ( int  surface  )  const [inline]

Definition at line 125 of file XvMCSurfaceTypes.h.

Referenced by find(), and toString().

bool XvMCSurfaceTypes::hasMPEG2Support ( int  surface  )  const [inline]

Definition at line 130 of file XvMCSurfaceTypes.h.

Referenced by find(), and toString().

bool XvMCSurfaceTypes::hasH263Support ( int  surface  )  const [inline]

Definition at line 135 of file XvMCSurfaceTypes.h.

Referenced by find(), and toString().

bool XvMCSurfaceTypes::hasMPEG4Support ( int  surface  )  const [inline]

Definition at line 140 of file XvMCSurfaceTypes.h.

Referenced by find(), and toString().

int XvMCSurfaceTypes::surfaceTypeID ( int  surface  )  const [inline]

Definition at line 145 of file XvMCSurfaceTypes.h.

Referenced by toString().

unsigned short XvMCSurfaceTypes::maxWidth ( int  surface  )  const [inline]

Definition at line 150 of file XvMCSurfaceTypes.h.

Referenced by find(), and toString().

unsigned short XvMCSurfaceTypes::maxHeight ( int  surface  )  const [inline]

Definition at line 155 of file XvMCSurfaceTypes.h.

Referenced by find(), and toString().

unsigned short XvMCSurfaceTypes::maxSubpictureWidth ( int  surface  )  const [inline]

Definition at line 160 of file XvMCSurfaceTypes.h.

Referenced by find(), and toString().

unsigned short XvMCSurfaceTypes::maxSubpictureHeight ( int  surface  )  const [inline]

Definition at line 165 of file XvMCSurfaceTypes.h.

Referenced by find(), and toString().

void XvMCSurfaceTypes::set ( int  surface,
XvMCSurfaceInfo surfinfo 
) const [inline]

Definition at line 170 of file XvMCSurfaceTypes.h.

Referenced by VideoOutputXv::GrabSuitableXvPort().

int XvMCSurfaceTypes::size (  )  const [inline]

void XvMCSurfaceTypes::find ( int  minWidth,
int  minHeight,
int  chroma,
bool  vld,
bool  idct,
int  mpeg,
int  minSubpictureWidth,
int  minSubpictureHeight,
Display *  dpy,
XvPortID  portMin,
XvPortID  portMax,
XvPortID &  port,
int &  surfNum 
) [static]

Find an appropriate surface on the current display.

Definition at line 86 of file XvMCSurfaceTypes.cpp.

bool XvMCSurfaceTypes::has ( Display *  pdisp,
XvMCAccelID  accel_type,
uint  stream_type,
int  chroma,
uint  width,
uint  height,
uint  osd_width,
uint  osd_height 
) [static]

Find out if there is a surface on any port capable of a specific acceleration type.

Definition at line 122 of file XvMCSurfaceTypes.cpp.

Referenced by VideoOutputXv::GetBestSupportedCodec().

QString XvMCSurfaceTypes::XvMCDescription ( Display *  pdisp = NULL  )  [static]

Definition at line 310 of file XvMCSurfaceTypes.cpp.

QString XvMCSurfaceTypes::toString ( Display *  pdisp = NULL,
XvPortID  p = 0 
) const

Definition at line 247 of file XvMCSurfaceTypes.cpp.

Referenced by operator<<(), and XvMCDescription().

ostream& XvMCSurfaceTypes::operator<< ( ostream &  os  )  const [inline]

Definition at line 192 of file XvMCSurfaceTypes.h.


Member Data Documentation

int XvMCSurfaceTypes::num [private]

Definition at line 195 of file XvMCSurfaceTypes.h.

Referenced by find(), size(), toString(), and XvMCSurfaceTypes().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:14 2010 for MythTV by  doxygen 1.5.5