|
MythTV
0.26-pre
|
#include <videoout_openglvaapi.h>
Public Member Functions | |
| VideoOutputOpenGLVAAPI () | |
| ~VideoOutputOpenGLVAAPI () | |
| bool | Init (int width, int height, float aspect, WId winid, const QRect &win_rect, MythCodecID codec_id) |
| Performs most of the initialization for VideoOutput. | |
| bool | CreateVAAPIContext (QSize size) |
| void | DeleteVAAPIContext (void) |
| bool | CreateBuffers (void) |
| virtual void * | GetDecoderContext (unsigned char *buf, uint8_t *&id) |
| uint8_t * | GetSurfaceIDPointer (void *buf) |
| void | SetProfile (void) |
| void | TearDown (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. | |
| virtual 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) |
| bool | ApproveDeintFilter (const QString &filtername) const |
| Approves bobdeint filter for XVideo and otherwise defers to VideoOutput::ApproveDeintFilter(const QString&). | |
| bool | SetDeinterlacingEnabled (bool enable) |
| Attempts to enable/disable deinterlacing using existing deinterlace method when enabling. | |
| bool | SetupDeinterlace (bool i, const QString &ovrf="") |
| Attempts to enable or disable deinterlacing. | |
| virtual void | InitPictureAttributes (void) |
| virtual int | SetPictureAttribute (PictureAttribute attribute, int newValue) |
| Sets a specified picture attribute. | |
Static Public Member Functions | |
| static void | GetRenderOptions (render_opts &opts) |
| static QStringList | GetAllowedRenderers (MythCodecID myth_codec_id, const QSize &video_dim) |
| static MythCodecID | GetBestSupportedCodec (uint width, uint height, const QString &decoder, uint stream_type, bool no_acceleration, PixelFormat &pix_fmt) |
Private Attributes | |
| VAAPIContext * | m_ctx |
| void * | m_pauseBuffer |
Definition at line 8 of file videoout_openglvaapi.h.
Definition at line 28 of file videoout_openglvaapi.cpp.
Definition at line 33 of file videoout_openglvaapi.cpp.
| void VideoOutputOpenGLVAAPI::GetRenderOptions | ( | render_opts & | opts | ) | [static] |
Reimplemented from VideoOutput.
Definition at line 7 of file videoout_openglvaapi.cpp.
| bool VideoOutputOpenGLVAAPI::Init | ( | int | width, |
| int | height, | ||
| float | aspect, | ||
| WId | winid, | ||
| const QRect & | win_rect, | ||
| MythCodecID | codec_id | ||
| ) | [virtual] |
Performs most of the initialization for VideoOutput.
Reimplemented from VideoOutputOpenGL.
Definition at line 104 of file videoout_openglvaapi.cpp.
Referenced by InputChanged().
| bool VideoOutputOpenGLVAAPI::CreateVAAPIContext | ( | QSize | size | ) |
Definition at line 115 of file videoout_openglvaapi.cpp.
Referenced by Init().
Definition at line 150 of file videoout_openglvaapi.cpp.
Referenced by CreateVAAPIContext(), and TearDown().
| bool VideoOutputOpenGLVAAPI::CreateBuffers | ( | void | ) | [virtual] |
Reimplemented from VideoOutputOpenGL.
Definition at line 157 of file videoout_openglvaapi.cpp.
| void * VideoOutputOpenGLVAAPI::GetDecoderContext | ( | unsigned char * | buf, |
| uint8_t *& | id | ||
| ) | [virtual] |
Reimplemented from VideoOutput.
Definition at line 168 of file videoout_openglvaapi.cpp.
Definition at line 178 of file videoout_openglvaapi.cpp.
Referenced by GetDecoderContext().
| void VideoOutputOpenGLVAAPI::SetProfile | ( | void | ) | [virtual] |
Reimplemented from VideoOutputOpenGL.
Definition at line 185 of file videoout_openglvaapi.cpp.
| void VideoOutputOpenGLVAAPI::TearDown | ( | void | ) | [virtual] |
Reimplemented from VideoOutputOpenGL.
Definition at line 38 of file videoout_openglvaapi.cpp.
Referenced by InputChanged(), and ~VideoOutputOpenGLVAAPI().
| bool VideoOutputOpenGLVAAPI::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.
Reimplemented from VideoOutputOpenGL.
Definition at line 43 of file videoout_openglvaapi.cpp.
| void VideoOutputOpenGLVAAPI::UpdatePauseFrame | ( | int64_t & | disp_timecode | ) | [virtual] |
Updates frame displayed when video is paused.
Reimplemented from VideoOutputOpenGL.
Definition at line 231 of file videoout_openglvaapi.cpp.
| void VideoOutputOpenGLVAAPI::ProcessFrame | ( | VideoFrame * | frame, |
| OSD * | osd, | ||
| FilterChain * | filterList, | ||
| const PIPMap & | pipPlayers, | ||
| FrameScanType | scan | ||
| ) | [virtual] |
Reimplemented from VideoOutputOpenGL.
Definition at line 253 of file videoout_openglvaapi.cpp.
| bool VideoOutputOpenGLVAAPI::ApproveDeintFilter | ( | const QString & | filtername | ) | const [virtual] |
Approves bobdeint filter for XVideo and otherwise defers to VideoOutput::ApproveDeintFilter(const QString&).
Approves all deinterlace filters, except ones which must be supported by a specific video output class.
Reimplemented from VideoOutputOpenGL.
Definition at line 191 of file videoout_openglvaapi.cpp.
| bool VideoOutputOpenGLVAAPI::SetDeinterlacingEnabled | ( | bool | enable | ) | [virtual] |
Attempts to enable/disable deinterlacing using existing deinterlace method when enabling.
Reimplemented from VideoOutputOpenGL.
Definition at line 196 of file videoout_openglvaapi.cpp.
| bool VideoOutputOpenGLVAAPI::SetupDeinterlace | ( | bool | i, |
| const QString & | ovrf = "" |
||
| ) | [virtual] |
Attempts to enable or disable deinterlacing.
| overridefilter | optional, explicitly use this nondefault deint filter |
Reimplemented from VideoOutputOpenGL.
Definition at line 203 of file videoout_openglvaapi.cpp.
Referenced by SetDeinterlacingEnabled().
| void VideoOutputOpenGLVAAPI::InitPictureAttributes | ( | void | ) | [virtual] |
Reimplemented from VideoOutputOpenGL.
Definition at line 211 of file videoout_openglvaapi.cpp.
Referenced by CreateVAAPIContext().
| int VideoOutputOpenGLVAAPI::SetPictureAttribute | ( | PictureAttribute | attribute, |
| int | newValue | ||
| ) | [virtual] |
Sets a specified picture attribute.
| attribute | Picture attribute to set. |
| newValue | Value to set attribute to. |
Reimplemented from VideoOutputOpenGL.
Definition at line 222 of file videoout_openglvaapi.cpp.
| QStringList VideoOutputOpenGLVAAPI::GetAllowedRenderers | ( | MythCodecID | myth_codec_id, |
| const QSize & | video_dim | ||
| ) | [static] |
Reimplemented from VideoOutputOpenGL.
Definition at line 272 of file videoout_openglvaapi.cpp.
Referenced by VideoOutput::Create().
| MythCodecID VideoOutputOpenGLVAAPI::GetBestSupportedCodec | ( | uint | width, |
| uint | height, | ||
| const QString & | decoder, | ||
| uint | stream_type, | ||
| bool | no_acceleration, | ||
| PixelFormat & | pix_fmt | ||
| ) | [static] |
Definition at line 285 of file videoout_openglvaapi.cpp.
Referenced by AvFormatDecoder::ScanStreams().
VAAPIContext* VideoOutputOpenGLVAAPI::m_ctx [private] |
Definition at line 48 of file videoout_openglvaapi.h.
Referenced by CreateVAAPIContext(), DeleteVAAPIContext(), GetDecoderContext(), GetSurfaceIDPointer(), InitPictureAttributes(), ProcessFrame(), and SetPictureAttribute().
void* VideoOutputOpenGLVAAPI::m_pauseBuffer [private] |
Definition at line 49 of file videoout_openglvaapi.h.
Referenced by ProcessFrame(), and UpdatePauseFrame().
1.7.6.1