XvMCBufferSettings Class Reference

#include <util-xvmc.h>

List of all members.


Detailed Description

Definition at line 49 of file util-xvmc.h.


Public Member Functions

 XvMCBufferSettings ()
void SetOSDNum (uint val)
void SetNumSurf (uint val)
uint GetOSDNum (void) const
 Returns number of XvMC OSD surfaces to allocate.
uint GetNeededBeforeDisplay (void) const
 Returns number of frames we want decoded before we try to display a frame.
uint GetMinSurf (void) const
 Returns minumum number of XvMC surfaces we need.
uint GetMaxSurf (void) const
 Returns maximum number of XvMC surfaces should try to get.
uint GetNumSurf (void) const
 Returns number of XvMC surfaces we actually allocate.
uint GetPreBufferGoal (void) const
 Returns number of frames we want to try to prebuffer.
uint GetFrameReserve (void) const
 Returns number of frames reserved for the OSD blending process and for video display.
bool IsAggressive (void) const
 Returns true if we should be aggressive in freeing buffers.

Private Attributes

uint num_xvmc_surf
 Number of XvMC OSD surface to allocate.
uint needed_for_display
 Frames needed before we try to display a frame, a larger number here ensures that we don't lose A/V Sync when a frame takes longer than one frame interval to decode.
uint min_num_xvmc_surfaces
 Minumum number of XvMC surfaces to get.
uint max_num_xvmc_surfaces
 Maximum number of XvMC surfaces to get.
uint num_xvmc_surfaces
 Number of XvMC surfaces we got.
bool aggressive
 Use aggressive buffer management.

Static Private Attributes

static const uint XVMC_PRE_NUM = 1
 Allow for one I/P frame before us.
static const uint XVMC_POST_NUM = 1
 Allow for one I/P frame after us.
static const uint XVMC_SHOW_NUM = 1
 Allow for one B frame to be displayed.

Constructor & Destructor Documentation

XvMCBufferSettings::XvMCBufferSettings (  )  [inline]

Definition at line 52 of file util-xvmc.h.


Member Function Documentation

void XvMCBufferSettings::SetOSDNum ( uint  val  )  [inline]

Definition at line 60 of file util-xvmc.h.

Referenced by VideoOutputXv::CheckOSDInit(), and VideoOutputXv::InitOSD().

void XvMCBufferSettings::SetNumSurf ( uint  val  )  [inline]

Definition at line 65 of file util-xvmc.h.

uint XvMCBufferSettings::GetOSDNum ( void   )  const [inline]

uint XvMCBufferSettings::GetNeededBeforeDisplay ( void   )  const [inline]

Returns number of frames we want decoded before we try to display a frame.

Definition at line 76 of file util-xvmc.h.

Referenced by VideoOutputXv::InitVideoBuffers().

uint XvMCBufferSettings::GetMinSurf ( void   )  const [inline]

Returns minumum number of XvMC surfaces we need.

Definition at line 80 of file util-xvmc.h.

Referenced by VideoOutputXv::CreateXvMCBuffers().

uint XvMCBufferSettings::GetMaxSurf ( void   )  const [inline]

Returns maximum number of XvMC surfaces should try to get.

Definition at line 83 of file util-xvmc.h.

Referenced by VideoOutputXv::CreateXvMCBuffers().

uint XvMCBufferSettings::GetNumSurf ( void   )  const [inline]

Returns number of XvMC surfaces we actually allocate.

Definition at line 86 of file util-xvmc.h.

Referenced by VideoOutputXv::InitVideoBuffers().

uint XvMCBufferSettings::GetPreBufferGoal ( void   )  const [inline]

Returns number of frames we want to try to prebuffer.

Definition at line 89 of file util-xvmc.h.

Referenced by VideoOutputXv::InitVideoBuffers().

uint XvMCBufferSettings::GetFrameReserve ( void   )  const [inline]

Returns number of frames reserved for the OSD blending process and for video display.

This is the HARD reserve.

Definition at line 98 of file util-xvmc.h.

Referenced by GetPreBufferGoal(), and VideoOutputXv::InitVideoBuffers().

bool XvMCBufferSettings::IsAggressive ( void   )  const [inline]

Returns true if we should be aggressive in freeing buffers.

Definition at line 102 of file util-xvmc.h.

Referenced by VideoOutputXv::CheckFrameStates().


Member Data Documentation

Number of XvMC OSD surface to allocate.

Definition at line 106 of file util-xvmc.h.

Referenced by GetFrameReserve(), GetOSDNum(), and SetOSDNum().

Frames needed before we try to display a frame, a larger number here ensures that we don't lose A/V Sync when a frame takes longer than one frame interval to decode.

Definition at line 110 of file util-xvmc.h.

Referenced by GetNeededBeforeDisplay().

Minumum number of XvMC surfaces to get.

Definition at line 112 of file util-xvmc.h.

Referenced by GetMinSurf(), and SetNumSurf().

Maximum number of XvMC surfaces to get.

Definition at line 114 of file util-xvmc.h.

Referenced by GetMaxSurf(), and SetNumSurf().

Number of XvMC surfaces we got.

Definition at line 116 of file util-xvmc.h.

Referenced by GetNumSurf(), GetPreBufferGoal(), and SetNumSurf().

Use aggressive buffer management.

Definition at line 118 of file util-xvmc.h.

Referenced by IsAggressive().

const uint XvMCBufferSettings::XVMC_PRE_NUM = 1 [static, private]

Allow for one I/P frame before us.

Definition at line 121 of file util-xvmc.h.

Referenced by GetPreBufferGoal().

const uint XvMCBufferSettings::XVMC_POST_NUM = 1 [static, private]

Allow for one I/P frame after us.

Definition at line 123 of file util-xvmc.h.

Referenced by GetPreBufferGoal().

const uint XvMCBufferSettings::XVMC_SHOW_NUM = 1 [static, private]

Allow for one B frame to be displayed.

Definition at line 125 of file util-xvmc.h.

Referenced by GetFrameReserve(), and GetPreBufferGoal().


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

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