|
MythTV
0.27pre
|
#include <videoout_null.h>


Public Member Functions | |
| VideoOutputNull () | |
| ~VideoOutputNull () | |
| bool | Init (const QSize &video_dim_buf, const QSize &video_dim_disp, float aspect, WId winid, const QRect &win_rect, MythCodecID codec_id) |
| Performs most of the initialization for VideoOutput. | |
| 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 &video_dim_buf, const QSize &video_dim_disp, 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) |
Public Member Functions inherited from VideoOutput | |
| VideoOutput () | |
| This constructor for VideoOutput must be followed by an Init(int,int,float,WId,int,int,int,int,WId) call. | |
| virtual | ~VideoOutput () |
| Shuts down video output. | |
| virtual void | InitOSD (OSD *osd) |
| virtual void | SetVideoFrameRate (float) |
| virtual bool | IsPreferredRenderer (QSize video_size) |
| virtual bool | SetDeinterlacingEnabled (bool) |
| Attempts to enable/disable deinterlacing using existing deinterlace method when enabling. | |
| virtual void | FallbackDeint (void) |
| Fallback to non-frame-rate-doubling deinterlacing method. | |
| virtual void | BestDeint (void) |
| Change to the best deinterlacing method. | |
| virtual bool | NeedsDoubleFramerate (void) const |
| Should Prepare() and Show() be called twice for every ProcessFrame(). | |
| virtual bool | IsBobDeint (void) const |
| virtual bool | IsExtraProcessingRequired (void) const |
| Should Prepare() and Show() and ProcessFrame be called twice for every Frameloop(). | |
| virtual bool | ApproveDeintFilter (const QString &filtername) const |
| Approves bobdeint filter for XVideo and otherwise defers to VideoOutput::ApproveDeintFilter(const QString&). | |
| void | GetDeinterlacers (QStringList &deinterlacers) |
| QString | GetDeinterlacer (void) |
| virtual void | WindowResized (const QSize &new_size) |
| virtual void | VideoAspectRatioChanged (float aspect) |
| Calls SetVideoAspectRatio(float aspect), then calls MoveResize() to apply changes. | |
| virtual void | ResizeDisplayWindow (const QRect &, bool) |
| Resize Display Window. | |
| virtual void | ResizeForGui (void) |
| If we are using DisplayRes support, return the screen size and refresh rate to those used for the GUI. | |
| virtual void | ResizeForVideo (uint width=0, uint height=0) |
| Sets display parameters based on video resolution. | |
| virtual void | MoveResize (void) |
| performs all the calculations for video framing and any resizing. | |
| virtual void | GetOSDBounds (QRect &total, QRect &visible, float &visibleAspect, float &fontScale, float themeAspect) const |
| QRect | GetMHEGBounds (void) |
| virtual void | DrawSlice (VideoFrame *frame, int x, int y, int w, int h) |
| Informs video output of new data for frame, used for hardware accelerated decoding. | |
| virtual float | GetDisplayAspect (void) const |
| Returns current display aspect ratio. | |
| AspectOverrideMode | GetAspectOverride (void) const |
| Returns current aspect override mode. | |
| virtual void | ToggleAspectOverride (AspectOverrideMode aspectOverrideMode=kAspect_Toggle) |
| Enforce different aspect ration than detected, then calls VideoAspectRatioChanged(float) to apply them. | |
| AdjustFillMode | GetAdjustFill (void) const |
| Returns current adjust fill mode. | |
| virtual void | ToggleAdjustFill (AdjustFillMode adjustFillMode=kAdjustFill_Toggle) |
| Sets up letterboxing for various standard video frame and monitor dimensions, then calls MoveResize() to apply them. | |
| QString | GetZoomString (void) const |
| void | CropToDisplay (VideoFrame *frame) |
| void | ExposeEvent (void) |
| Tells video output that a full repaint is needed. | |
| PictureAttributeSupported | GetSupportedPictureAttributes (void) |
| int | ChangePictureAttribute (PictureAttribute, bool direction) |
| virtual int | SetPictureAttribute (PictureAttribute, int newValue) |
| Sets a specified picture attribute. | |
| int | GetPictureAttribute (PictureAttribute) |
| virtual void | InitPictureAttributes (void) |
| bool | AllowPreviewEPG (void) const |
| virtual bool | IsPIPSupported (void) const |
| virtual bool | IsPBPSupported (void) const |
| virtual bool | NeedExtraAudioDecode (void) const |
| virtual bool | hasHWAcceleration (void) const |
| Return true if HW Acceleration is running. | |
| virtual void * | GetDecoderContext (unsigned char *buf, uint8_t *&id) |
| virtual void | SetFramesPlayed (long long fp) |
| Sets the number of frames played. | |
| virtual long long | GetFramesPlayed (void) |
| Returns the number of frames played. | |
| bool | IsErrored () const |
| Returns true if a fatal error has been encountered. | |
| VideoErrorState | GetError (void) const |
| Returns error type. | |
| void | SetPrebuffering (bool normal) |
| Sets whether to use a normal number of buffers or fewer buffers. | |
| virtual void | ClearAfterSeek (void) |
| Tells video output to toss decoded buffers due to a seek. | |
| virtual int | ValidVideoFrames (void) const |
| Returns number of frames that are fully decoded. | |
| int | FreeVideoFrames (void) |
| Returns number of frames available for decoding onto. | |
| bool | EnoughFreeFrames (void) |
| Returns true iff enough frames are available to decode onto. | |
| bool | EnoughDecodedFrames (void) |
| Returns true iff there are plenty of decoded frames ready for display. | |
| bool | EnoughPrebufferedFrames (void) |
| Returns true iff we have at least the minimum number of decoded frames ready for display. | |
| bool | IsEmbedding (void) |
| Returns if videooutput is embedding. | |
| virtual VideoFrame * | GetNextFreeFrame (void) |
| Blocks until it is possible to return a frame for decoding onto. | |
| virtual void | ReleaseFrame (VideoFrame *frame) |
| Releases a frame from the ready for decoding queue onto the queue of frames ready for display. | |
| virtual void | DeLimboFrame (VideoFrame *frame) |
| Releases a frame for reuse if it is in limbo. | |
| virtual void | StartDisplayingFrame (void) |
| Tell GetLastShownFrame() to return the next frame from the head of the queue of frames to display. | |
| virtual void | DoneDisplayingFrame (VideoFrame *frame) |
| Releases frame returned from GetLastShownFrame() onto the queue of frames ready for decoding onto. | |
| virtual void | DiscardFrame (VideoFrame *frame) |
| Releases frame from any queue onto the queue of frames ready for decoding onto. | |
| virtual void | DiscardFrames (bool kf) |
| Releases all frames not being actively displayed from any queue onto the queue of frames ready for decoding onto. | |
| virtual void | ClearDummyFrame (VideoFrame *frame) |
| Clears the frame to black. | |
| virtual void | CheckFrameStates (void) |
| virtual VideoFrame * | GetLastDecodedFrame (void) |
| virtual VideoFrame * | GetLastShownFrame (void) |
| Returns frame from the head of the ready to be displayed queue, if StartDisplayingFrame has been called. | |
| QString | GetFrameStatus (void) const |
| Returns string with status of each frame for debugging. | |
| void | SetVideoResize (const QRect &videoRect) |
| Tells the player to resize the video frame (used for ITV) | |
| void | SetVideoScalingAllowed (bool change) |
| Disable or enable underscan/overscan. | |
| bool | IsVideoScalingAllowed (void) const |
| check if video underscan/overscan is allowed | |
| virtual void | SetVideoFlip (void) |
| Tells the player to flip the video frames for proper display. | |
| virtual QRect | GetPIPRect (PIPLocation location, MythPlayer *pipplayer=NULL, bool do_pixel_adj=true) const |
| returns QRect of PIP based on PIPLocation | |
| virtual void | RemovePIP (MythPlayer *pipplayer) |
| virtual void | SetPIPState (PIPState setting) |
| virtual QString | GetOSDRenderer (void) const |
| \ brief return OSD renderer type for this videoOutput | |
| virtual MythPainter * | GetOSDPainter (void) |
| virtual bool | GetScreenShot (int width=0, int height=0, QString filename="") |
| QString | GetFilters (void) const |
| QRect | GetImageRect (const QRect &rect, QRect *display=NULL) |
| translates caption/dvd button rectangle into 'screen' space | |
| QRect | GetSafeRect (void) |
| Returns a QRect describing an area of the screen on which it is 'safe' to render the On Screen Display. | |
| bool | EnableVisualisation (AudioPlayer *audio, bool enable, const QString &name=QString("")) |
| virtual bool | CanVisualise (AudioPlayer *audio, MythRender *render) |
| VideoVisual * | GetVisualisation (void) |
| QString | GetVisualiserName (void) |
| virtual QStringList | GetVisualiserList (void) |
| void | DestroyVisualisation (void) |
| virtual bool | StereoscopicModesAllowed (void) const |
| void | SetStereoscopicMode (StereoscopicMode mode) |
| StereoscopicMode | GetStereoscopicMode (void) const |
Static Public Member Functions | |
| static void | GetRenderOptions (render_opts &opts, QStringList &cpudeints) |
| static QStringList | GetAllowedRenderers (MythCodecID myth_codec_id, const QSize &video_dim) |
Static Public Member Functions inherited from VideoOutput | |
| static void | GetRenderOptions (render_opts &opts) |
| static VideoOutput * | Create (const QString &decoder, MythCodecID codec_id, void *codec_priv, PIPState pipState, const QSize &video_dim_buf, const QSize &video_dim_disp, float video_aspect, QWidget *parentwidget, const QRect &embed_rect, float video_prate, uint playerFlags) |
| Depending on compile-time configure settings and run-time renderer settings, create a relevant VideoOutput subclass. | |
| static int | CalcHueBase (const QString &adaptor_name) |
Private Attributes | |
| QMutex | global_lock |
| VideoFrame | av_pause_frame |
Additional Inherited Members | |
Protected Member Functions inherited from VideoOutput | |
| void | InitBuffers (int numdecode, bool extra_for_pause, int need_free, int needprebuffer_normal, int needprebuffer_small, int keepprebuffer) |
| void | InitDisplayMeasurements (uint width, uint height, bool resize) |
| Init display measurements based on database settings and actual screen parameters. | |
| virtual void | ShowPIPs (VideoFrame *frame, const PIPMap &pipPlayers) |
| virtual void | ShowPIP (VideoFrame *frame, MythPlayer *pipplayer, PIPLocation loc) |
| Composites PiP image onto a video frame. | |
| virtual bool | DisplayOSD (VideoFrame *frame, OSD *osd) |
| If the OSD has changed, this will convert the OSD buffer to the OSDSurface's color format. | |
| QRect | GetVisibleOSDBounds (float &, float &, float) const |
| Returns visible portions of total OSD bounds. | |
| QRect | GetTotalOSDBounds (void) const |
| Returns total OSD bounds. | |
| virtual bool | hasFullScreenOSD (void) const |
| void | DoPipResize (int pipwidth, int pipheight) |
| Sets up Picture in Picture image resampler. | |
| void | ShutdownPipResize (void) |
| Shuts down Picture in Picture image resampler. | |
| void | ResizeVideo (VideoFrame *frame) |
| void | DoVideoResize (const QSize &inDim, const QSize &outDim) |
| Sets up Picture in Picture image resampler. | |
| virtual void | ShutdownVideoResize (void) |
Static Protected Member Functions inherited from VideoOutput | |
| static void | CopyFrame (VideoFrame *to, const VideoFrame *from) |
| Copies frame data from one VideoFrame to another. | |
Protected Attributes inherited from VideoOutput | |
| VideoOutWindow | window |
| QSize | db_display_dim |
| Screen dimensions in millimeters from DB. | |
| VideoColourSpace | videoColourSpace |
| AspectOverrideMode | db_aspectoverride |
| AdjustFillMode | db_adjustfill |
| LetterBoxColour | db_letterbox_colour |
| QString | db_deint_filtername |
| MythCodecID | video_codec_id |
| VideoDisplayProfile * | db_vdisp_profile |
| QSize | pip_desired_display_size |
| QSize | pip_display_size |
| QSize | pip_video_size |
| unsigned char * | pip_tmp_buf |
| unsigned char * | pip_tmp_buf2 |
| struct SwsContext * | pip_scaling_context |
| VideoFrame | pip_tmp_image |
| bool | vsz_enabled |
| QRect | vsz_desired_display_rect |
| QSize | vsz_display_size |
| QSize | vsz_video_size |
| unsigned char * | vsz_tmp_buf |
| struct SwsContext * | vsz_scale_context |
| bool | m_deinterlacing |
| QString | m_deintfiltername |
| FilterManager * | m_deintFiltMan |
| FilterChain * | m_deintFilter |
| bool | m_deinterlaceBeforeOSD |
| VideoBuffers | vbuffers |
| VideoBuffers instance used to track video output buffers. | |
| VideoErrorState | errorState |
| long long | framesPlayed |
| DisplayRes * | display_res |
| QSize | monitor_sz |
| QSize | monitor_dim |
| MythYUVAPainter * | osd_painter |
| MythImage * | osd_image |
| VideoVisual * | m_visual |
| StereoscopicMode | m_stereo |
Definition at line 8 of file videoout_null.h.
| VideoOutputNull::VideoOutputNull | ( | ) |
Definition at line 31 of file videoout_null.cpp.
| VideoOutputNull::~VideoOutputNull | ( | ) |
Definition at line 38 of file videoout_null.cpp.
|
static |
Definition at line 15 of file videoout_null.cpp.
|
virtual |
Performs most of the initialization for VideoOutput.
Reimplemented from VideoOutput.
Definition at line 136 of file videoout_null.cpp.
Attempts to enable or disable deinterlacing.
| overridefilter | optional, explicitly use this nondefault deint filter |
Reimplemented from VideoOutput.
Definition at line 19 of file videoout_null.h.
|
virtual |
Implements VideoOutput.
Definition at line 191 of file videoout_null.cpp.
|
virtual |
Implements VideoOutput.
Definition at line 203 of file videoout_null.cpp.
Definition at line 60 of file videoout_null.cpp.
Referenced by Init(), and InputChanged().
|
virtual |
Tells video output to discard decoded frames and wait for new ones.
Reimplemented from VideoOutput.
Definition at line 79 of file videoout_null.cpp.
|
virtual |
Sets up zooming into to different parts of the video, the zoom is actually applied in MoveResize().
Reimplemented from VideoOutput.
Definition at line 53 of file videoout_null.cpp.
|
virtual |
Tells video output to embed video in an existing window.
Reimplemented from VideoOutput.
Definition at line 177 of file videoout_null.cpp.
Tells video output to stop embedding video in an existing window.
Reimplemented from VideoOutput.
Definition at line 184 of file videoout_null.cpp.
Draws non-video portions of the screen.
| 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 207 of file videoout_null.cpp.
|
virtual |
Updates frame displayed when video is paused.
Implements VideoOutput.
Definition at line 211 of file videoout_null.cpp.
|
virtual |
Implements VideoOutput.
Definition at line 234 of file videoout_null.cpp.
|
static |
|
inlinevirtual |
Implements VideoOutput.
Definition at line 41 of file videoout_null.h.
|
inlinevirtual |
Reimplemented from VideoOutput.
Definition at line 42 of file videoout_null.h.
|
private |
Definition at line 46 of file videoout_null.h.
Referenced by EmbedInWidget(), Init(), InputChanged(), StopEmbedding(), UpdatePauseFrame(), Zoom(), and ~VideoOutputNull().
|
private |
Definition at line 47 of file videoout_null.h.
Referenced by CreatePauseFrame(), UpdatePauseFrame(), VideoOutputNull(), and ~VideoOutputNull().
1.8.1.2