#include <videoout_d3d.h>

Definition at line 16 of file videoout_d3d.h.
Public Member Functions | |
| VideoOutputD3D () | |
| ~VideoOutputD3D () | |
| 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 | InitD3D () |
| void | UnInitD3D () |
| void | PrepareFrame (VideoFrame *buffer, FrameScanType) |
| void | ProcessFrame (VideoFrame *frame, OSD *osd, FilterChain *filterList, NuppelVideoPlayer *pipPlayer) |
| void | Show (FrameScanType) |
| 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. | |
| int | GetRefreshRate (void) |
| Returns current display's frame refresh period in microseconds. | |
| void | UpdatePauseFrame (void) |
| Updates frame displayed when video is paused. | |
| void | DrawUnusedRects (bool) |
| Draws non-video portions of the screen. | |
| 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. | |
| virtual void | StopEmbedding (void) |
| Tells video output to stop embedding video in an existing window. | |
| float | GetDisplayAspect (void) const |
| Returns current display aspect ratio. | |
Static Public Member Functions | |
| static QStringList | GetAllowedRenderers (MythCodecID myth_codec_id, const QSize &video_dim) |
Private Member Functions | |
| void | Exit (void) |
Private Attributes | |
| int | m_InputCX |
| int | m_InputCY |
| VideoFrame | m_pauseFrame |
| QMutex | m_lock |
| int | m_RefreshRate |
| HWND | m_hWnd |
| HWND | m_hEmbedWnd |
| D3DFORMAT | m_ddFormat |
| IDirect3D9 * | m_pD3D |
| IDirect3DDevice9 * | m_pd3dDevice |
| IDirect3DSurface9 * | m_pSurface |
| IDirect3DTexture9 * | m_pTexture |
| IDirect3DVertexBuffer9 * | m_pVertexBuffer |
| VideoOutputD3D::VideoOutputD3D | ( | void | ) |
Definition at line 50 of file videoout_d3d.cpp.
| VideoOutputD3D::~VideoOutputD3D | ( | ) |
Definition at line 61 of file videoout_d3d.cpp.
| bool VideoOutputD3D::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.
Reimplemented from VideoOutput.
Definition at line 452 of file videoout_d3d.cpp.
| bool VideoOutputD3D::InitD3D | ( | ) |
| void VideoOutputD3D::UnInitD3D | ( | void | ) |
| void VideoOutputD3D::PrepareFrame | ( | VideoFrame * | buffer, | |
| FrameScanType | t | |||
| ) | [virtual] |
| void VideoOutputD3D::ProcessFrame | ( | VideoFrame * | frame, | |
| OSD * | osd, | |||
| FilterChain * | filterList, | |||
| NuppelVideoPlayer * | pipPlayer | |||
| ) | [virtual] |
| void VideoOutputD3D::Show | ( | FrameScanType | ) | [virtual] |
| bool VideoOutputD3D::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.
Reimplemented from VideoOutput.
Definition at line 114 of file videoout_d3d.cpp.
| int VideoOutputD3D::GetRefreshRate | ( | void | ) | [virtual] |
Returns current display's frame refresh period in microseconds.
e.g. 1000000 / frame_rate_in_Hz
Implements VideoOutput.
Definition at line 447 of file videoout_d3d.cpp.
| void VideoOutputD3D::UpdatePauseFrame | ( | void | ) | [virtual] |
Updates frame displayed when video is paused.
Implements VideoOutput.
Definition at line 755 of file videoout_d3d.cpp.
| void VideoOutputD3D::DrawUnusedRects | ( | bool | sync | ) | [virtual] |
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 707 of file videoout_d3d.cpp.
Referenced by Show().
| void VideoOutputD3D::Zoom | ( | ZoomDirection | direction | ) | [virtual] |
Sets up zooming into to different parts of the video, the zoom is actually applied in MoveResize().
Reimplemented from VideoOutput.
Definition at line 742 of file videoout_d3d.cpp.
| void VideoOutputD3D::EmbedInWidget | ( | WId | wid, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) | [virtual] |
Tells video output to embed video in an existing window.
| 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 |
Reimplemented from VideoOutput.
Definition at line 725 of file videoout_d3d.cpp.
| void VideoOutputD3D::StopEmbedding | ( | void | ) | [virtual] |
Tells video output to stop embedding video in an existing window.
Reimplemented from VideoOutput.
Definition at line 734 of file videoout_d3d.cpp.
| float VideoOutputD3D::GetDisplayAspect | ( | void | ) | const [virtual] |
Returns current display aspect ratio.
Reimplemented from VideoOutput.
Definition at line 793 of file videoout_d3d.cpp.
| QStringList VideoOutputD3D::GetAllowedRenderers | ( | MythCodecID | myth_codec_id, | |
| const QSize & | video_dim | |||
| ) | [static] |
| void VideoOutputD3D::Exit | ( | void | ) | [private] |
int VideoOutputD3D::m_InputCX [private] |
Definition at line 53 of file videoout_d3d.h.
Referenced by Init(), InitD3D(), InputChanged(), and PrepareFrame().
int VideoOutputD3D::m_InputCY [private] |
Definition at line 54 of file videoout_d3d.h.
Referenced by Init(), InitD3D(), InputChanged(), and PrepareFrame().
VideoFrame VideoOutputD3D::m_pauseFrame [private] |
Definition at line 56 of file videoout_d3d.h.
Referenced by Exit(), Init(), InputChanged(), ProcessFrame(), UpdatePauseFrame(), and VideoOutputD3D().
QMutex VideoOutputD3D::m_lock [private] |
Definition at line 57 of file videoout_d3d.h.
Referenced by Exit(), InitD3D(), InputChanged(), ProcessFrame(), UnInitD3D(), and UpdatePauseFrame().
int VideoOutputD3D::m_RefreshRate [private] |
HWND VideoOutputD3D::m_hWnd [private] |
Definition at line 60 of file videoout_d3d.h.
Referenced by DrawUnusedRects(), Init(), InitD3D(), and Zoom().
HWND VideoOutputD3D::m_hEmbedWnd [private] |
D3DFORMAT VideoOutputD3D::m_ddFormat [private] |
IDirect3D9* VideoOutputD3D::m_pD3D [private] |
IDirect3DDevice9* VideoOutputD3D::m_pd3dDevice [private] |
IDirect3DSurface9* VideoOutputD3D::m_pSurface [private] |
Definition at line 65 of file videoout_d3d.h.
Referenced by InitD3D(), PrepareFrame(), Show(), and UnInitD3D().
IDirect3DTexture9* VideoOutputD3D::m_pTexture [private] |
IDirect3DVertexBuffer9* VideoOutputD3D::m_pVertexBuffer [private] |
1.5.5