VideoOutputNull Class Reference

#include <videoout_null.h>

Inheritance diagram for VideoOutputNull:

VideoOutput

List of all members.


Detailed Description

Definition at line 8 of file videoout_null.h.


Public Member Functions

 VideoOutputNull ()
 ~VideoOutputNull ()
bool Init (int width, int height, float aspect, WId winid, int winx, int winy, int winw, int winh, WId embedid=0)
 Performs most of the initialization for VideoOutput.
bool SetupDeinterlace (bool, const QString &ovrf="")
 Attempts to enable or disable deinterlacing.
void PrepareFrame (VideoFrame *buffer, FrameScanType)
void Show (FrameScanType)
void CreatePauseFrame (void)
bool InputChanged (const QSize &input_size, float aspect, MythCodecID av_codec_id, void *codec_private)
 Tells video output to discard decoded frames and wait for new ones.
void Zoom (ZoomDirection direction)
 Sets up zooming into to different parts of the video, the zoom is actually applied in MoveResize().
void EmbedInWidget (WId wid, int x, int y, int w, int h)
 Tells video output to embed video in an existing window.
void StopEmbedding (void)
 Tells video output to stop embedding video in an existing window.
int GetRefreshRate (void)
 Returns current display's frame refresh period in microseconds.
void DrawUnusedRects (bool sync=true)
 Draws non-video portions of the screen.
void UpdatePauseFrame (void)
 Updates frame displayed when video is paused.
void ProcessFrame (VideoFrame *frame, OSD *osd, FilterChain *filterList, NuppelVideoPlayer *pipPlayer)

Static Public Member Functions

static QStringList GetAllowedRenderers (MythCodecID myth_codec_id, const QSize &video_dim)

Private Attributes

QMutex global_lock
VideoFrame av_pause_frame

Constructor & Destructor Documentation

VideoOutputNull::VideoOutputNull ( void   ) 

Definition at line 15 of file videoout_null.cpp.

VideoOutputNull::~VideoOutputNull (  ) 

Definition at line 22 of file videoout_null.cpp.


Member Function Documentation

bool VideoOutputNull::Init ( int  width,
int  height,
float  aspect,
WId  winid,
int  winx,
int  winy,
int  winw,
int  winh,
WId  embedid = 0 
) [virtual]

Performs most of the initialization for VideoOutput.

Returns:
true if successful, false otherwise.

Reimplemented from VideoOutput.

Definition at line 116 of file videoout_null.cpp.

bool VideoOutputNull::SetupDeinterlace ( bool  i,
const QString &  ovrf = "" 
) [inline, virtual]

Attempts to enable or disable deinterlacing.

Returns:
true if successful, false otherwise.
Parameters:
overridefilter optional, explicitly use this nondefault deint filter

Reimplemented from VideoOutput.

Definition at line 17 of file videoout_null.h.

void VideoOutputNull::PrepareFrame ( VideoFrame buffer,
FrameScanType  t 
) [virtual]

Implements VideoOutput.

Definition at line 158 of file videoout_null.cpp.

void VideoOutputNull::Show ( FrameScanType   )  [virtual]

Implements VideoOutput.

Definition at line 170 of file videoout_null.cpp.

void VideoOutputNull::CreatePauseFrame ( void   ) 

Definition at line 46 of file videoout_null.cpp.

Referenced by Init(), and InputChanged().

bool VideoOutputNull::InputChanged ( const QSize &  input_size,
float  aspect,
MythCodecID  myth_codec_id,
void *  codec_private 
) [virtual]

Tells video output to discard decoded frames and wait for new ones.

Bug:
We set the new width height and aspect ratio here, but we should do this based on the new video frames in Show().

Reimplemented from VideoOutput.

Definition at line 70 of file videoout_null.cpp.

void VideoOutputNull::Zoom ( ZoomDirection  direction  )  [virtual]

Sets up zooming into to different parts of the video, the zoom is actually applied in MoveResize().

See also:
ToggleAdjustFill(AdjustFillMode)

Reimplemented from VideoOutput.

Definition at line 39 of file videoout_null.cpp.

void VideoOutputNull::EmbedInWidget ( WId  wid,
int  x,
int  y,
int  w,
int  h 
) [virtual]

Tells video output to embed video in an existing window.

Parameters:
wid window to embed in.
x X location where to locate video
y Y location where to locate video
w width of video
h height of video
See also:
StopEmbedding()

Reimplemented from VideoOutput.

Definition at line 144 of file videoout_null.cpp.

void VideoOutputNull::StopEmbedding ( void   )  [virtual]

Tells video output to stop embedding video in an existing window.

See also:
EmbedInWidget(WId, int, int, int, int)

Reimplemented from VideoOutput.

Definition at line 151 of file videoout_null.cpp.

int VideoOutputNull::GetRefreshRate ( void   )  [virtual]

Returns current display's frame refresh period in microseconds.

e.g. 1000000 / frame_rate_in_Hz

Implements VideoOutput.

Definition at line 111 of file videoout_null.cpp.

void VideoOutputNull::DrawUnusedRects ( bool  sync = true  )  [virtual]

Draws non-video portions of the screen.

Parameters:
sync if set any queued up draws are sent immediately to the graphics context and we block until they have completed.

Implements VideoOutput.

Definition at line 174 of file videoout_null.cpp.

void VideoOutputNull::UpdatePauseFrame ( void   )  [virtual]

Updates frame displayed when video is paused.

Implements VideoOutput.

Definition at line 178 of file videoout_null.cpp.

void VideoOutputNull::ProcessFrame ( VideoFrame frame,
OSD osd,
FilterChain filterList,
NuppelVideoPlayer pipPlayer 
) [virtual]

Implements VideoOutput.

Definition at line 212 of file videoout_null.cpp.

static QStringList VideoOutputNull::GetAllowedRenderers ( MythCodecID  myth_codec_id,
const QSize &  video_dim 
) [static]


Member Data Documentation

QMutex VideoOutputNull::global_lock [private]


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