VideoOutputNull Class Reference

#include <videoout_null.h>

Inheritance diagram for VideoOutputNull:
VideoOutput

List of all members.

Public Member Functions

 VideoOutputNull ()
 ~VideoOutputNull ()
bool Init (int width, int height, float aspect, WId winid, const QRect &win_rect, MythCodecID codec_id)
bool SetupDeinterlace (bool, const QString &ovrf="")
 Attempts to enable or disable deinterlacing.
void PrepareFrame (VideoFrame *buffer, FrameScanType, OSD *osd)
void Show (FrameScanType)
void CreatePauseFrame (void)
bool InputChanged (const QSize &input_size, float aspect, MythCodecID av_codec_id, void *codec_private, bool &aspect_only)
 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 (const QRect &rect)
 Tells video output to embed video in an existing window.
void StopEmbedding (void)
 Tells video output to stop embedding video in an existing window.
void DrawUnusedRects (bool sync=true)
 Draws non-video portions of the screen.
void UpdatePauseFrame (int64_t &disp_timecode)
 Updates frame displayed when video is paused.
void ProcessFrame (VideoFrame *frame, OSD *osd, FilterChain *filterList, const PIPMap &pipPlayers, FrameScanType scan)
void MoveResizeWindow (QRect)
virtual bool SetupVisualisation (AudioPlayer *audio, MythRender *render, const QString &name)

Static Public Member Functions

static void GetRenderOptions (render_opts &opts, QStringList &cpudeints)
static QStringList GetAllowedRenderers (MythCodecID myth_codec_id, const QSize &video_dim)

Private Attributes

QMutex global_lock
VideoFrame av_pause_frame

Detailed Description

Definition at line 8 of file videoout_null.h.


Constructor & Destructor Documentation

VideoOutputNull::VideoOutputNull (  ) 

Definition at line 31 of file videoout_null.cpp.

VideoOutputNull::~VideoOutputNull (  ) 

Definition at line 38 of file videoout_null.cpp.


Member Function Documentation

void VideoOutputNull::GetRenderOptions ( render_opts opts,
QStringList &  cpudeints 
) [static]

Definition at line 15 of file videoout_null.cpp.

bool VideoOutputNull::Init ( int  width,
int  height,
float  aspect,
WId  winid,
const QRect &  win_rect,
MythCodecID  codec_id 
) [virtual]

Reimplemented from VideoOutput.

Definition at line 134 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,
OSD osd 
) [virtual]

Implements VideoOutput.

Definition at line 185 of file videoout_null.cpp.

void VideoOutputNull::Show ( FrameScanType   )  [virtual]

Implements VideoOutput.

Definition at line 197 of file videoout_null.cpp.

void VideoOutputNull::CreatePauseFrame ( void   ) 

Definition at line 60 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,
bool aspect_only 
) [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 79 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 53 of file videoout_null.cpp.

void VideoOutputNull::EmbedInWidget ( const QRect &  rect  )  [virtual]

Tells video output to embed video in an existing window.

See also:
StopEmbedding()

Reimplemented from VideoOutput.

Definition at line 171 of file videoout_null.cpp.

void VideoOutputNull::StopEmbedding ( void   )  [virtual]

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

See also:
EmbedInWidget(const QRect&)

Reimplemented from VideoOutput.

Definition at line 178 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 201 of file videoout_null.cpp.

void VideoOutputNull::UpdatePauseFrame ( int64_t disp_timecode  )  [virtual]

Updates frame displayed when video is paused.

Implements VideoOutput.

Definition at line 205 of file videoout_null.cpp.

void VideoOutputNull::ProcessFrame ( VideoFrame frame,
OSD osd,
FilterChain filterList,
const PIPMap pipPlayers,
FrameScanType  scan 
) [virtual]

Implements VideoOutput.

Definition at line 228 of file videoout_null.cpp.

static QStringList VideoOutputNull::GetAllowedRenderers ( MythCodecID  myth_codec_id,
const QSize &  video_dim 
) [static]
void VideoOutputNull::MoveResizeWindow ( QRect   )  [inline, virtual]

Implements VideoOutput.

Definition at line 38 of file videoout_null.h.

virtual bool VideoOutputNull::SetupVisualisation ( AudioPlayer audio,
MythRender render,
const QString &  name 
) [inline, virtual]

Reimplemented from VideoOutput.

Definition at line 39 of file videoout_null.h.


Member Data Documentation

QMutex VideoOutputNull::global_lock [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:32 2012 for MythTV by  doxygen 1.6.3