VideoOutputDirectfb Class Reference

#include <videoout_directfb.h>

Inheritance diagram for VideoOutputDirectfb:

VideoOutput

List of all members.


Detailed Description

Definition at line 10 of file videoout_directfb.h.


Public Member Functions

 VideoOutputDirectfb ()
 ~VideoOutputDirectfb ()
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.
void ProcessFrame (VideoFrame *frame, OSD *osd, FilterChain *filterList, NuppelVideoPlayer *pipPlayer)
void PrepareFrame (VideoFrame *buffer, FrameScanType)
void Show (FrameScanType)
void MoveResize (void)
 performs all the calculations for video framing and any resizing.
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 DrawUnusedRects (bool)
 Draws non-video portions of the screen.
void UpdatePauseFrame (void)
 Updates frame displayed when video is paused.
int SetPictureAttribute (PictureAttribute attribute, int newValue)
 Sets a specified picture attribute.
int GetRefreshRate (void)
 Returns current display's frame refresh period in microseconds.

Static Public Member Functions

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

Private Attributes

bool XJ_started
VideoFrame pauseFrame
QObject * widget
DirectfbDatadata

Constructor & Destructor Documentation

VideoOutputDirectfb::VideoOutputDirectfb ( void   ) 

Definition at line 259 of file videoout_directfb.cpp.

VideoOutputDirectfb::~VideoOutputDirectfb (  ) 

Definition at line 266 of file videoout_directfb.cpp.


Member Function Documentation

bool VideoOutputDirectfb::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 354 of file videoout_directfb.cpp.

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

Implements VideoOutput.

Definition at line 861 of file videoout_directfb.cpp.

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

Implements VideoOutput.

Definition at line 670 of file videoout_directfb.cpp.

void VideoOutputDirectfb::Show ( FrameScanType   )  [virtual]

Implements VideoOutput.

Definition at line 795 of file videoout_directfb.cpp.

void VideoOutputDirectfb::MoveResize ( void   )  [virtual]

performs all the calculations for video framing and any resizing.

First we apply playback over/underscanning and offsetting, then we letterbox settings, and finally we apply manual scale & move properties for "Zoom Mode".

See also:
Zoom(ZoomDirection), ToggleAdjustFill(int)

Reimplemented from VideoOutput.

Definition at line 958 of file videoout_directfb.cpp.

Referenced by Init(), InputChanged(), and Zoom().

bool VideoOutputDirectfb::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 913 of file videoout_directfb.cpp.

void VideoOutputDirectfb::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 952 of file videoout_directfb.cpp.

void VideoOutputDirectfb::DrawUnusedRects ( bool  sync  )  [inline, 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 31 of file videoout_directfb.h.

void VideoOutputDirectfb::UpdatePauseFrame ( void   )  [virtual]

Updates frame displayed when video is paused.

Implements VideoOutput.

Definition at line 823 of file videoout_directfb.cpp.

int VideoOutputDirectfb::SetPictureAttribute ( PictureAttribute  attribute,
int  newValue 
) [virtual]

Sets a specified picture attribute.

Parameters:
attribute Picture attribute to set.
newValue Value to set attribute to.
Returns:
Set value if it succeeds, -1 if it does not.

Reimplemented from VideoOutput.

Definition at line 997 of file videoout_directfb.cpp.

int VideoOutputDirectfb::GetRefreshRate ( void   )  [virtual]

Returns current display's frame refresh period in microseconds.

e.g. 1000000 / frame_rate_in_Hz

Implements VideoOutput.

Definition at line 299 of file videoout_directfb.cpp.

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

Definition at line 1044 of file videoout_directfb.cpp.

Referenced by VideoOutput::Create().


Member Data Documentation

Definition at line 41 of file videoout_directfb.h.

Referenced by Init(), and ~VideoOutputDirectfb().

QObject* VideoOutputDirectfb::widget [private]

Definition at line 43 of file videoout_directfb.h.

Referenced by Init(), and Show().


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