MythTV
master
|
#include <libmythui/mythrender_d3d9.h>
Public Member Functions | |
D3D9Image (MythRenderD3D9 *render, QSize size, bool video=false) | |
~D3D9Image () | |
bool | IsValid (void) const |
QSize | GetSize (void) const |
int | GetDataSize (void) const |
bool | SetAsRenderTarget (void) |
bool | UpdateImage (IDirect3DSurface9 *surface) |
bool | UpdateImage (const MythImage *img) |
bool | UpdateVertices (const QRect &dvr, const QRect &vr, int alpha=255, bool video=false) |
bool | Draw (void) |
uint8_t * | GetBuffer (bool &hardware_conv, uint &pitch) |
void | ReleaseBuffer (void) |
QRect | GetRect (void) |
Private Attributes | |
QSize | m_size |
bool | m_valid {false} |
MythRenderD3D9 * | m_render {nullptr} |
IDirect3DVertexBuffer9 * | m_vertexbuffer {nullptr} |
IDirect3DTexture9 * | m_texture {nullptr} |
IDirect3DSurface9 * | m_surface {nullptr} |
Definition at line 25 of file mythrender_d3d9.h.
D3D9Image::D3D9Image | ( | MythRenderD3D9 * | render, |
QSize | size, | ||
bool | video = false |
||
) |
Definition at line 39 of file mythrender_d3d9.cpp.
D3D9Image::~D3D9Image | ( | ) |
Definition at line 51 of file mythrender_d3d9.cpp.
|
inline |
Definition at line 31 of file mythrender_d3d9.h.
Referenced by MythD3D9Painter::GetImageFromCache(), and VideoOutputD3D::SetupContext().
|
inline |
Definition at line 32 of file mythrender_d3d9.h.
|
inline |
Definition at line 33 of file mythrender_d3d9.h.
Referenced by MythD3D9Painter::DeleteBitmaps(), and MythD3D9Painter::GetImageFromCache().
bool D3D9Image::SetAsRenderTarget | ( | void | ) |
Definition at line 64 of file mythrender_d3d9.cpp.
Referenced by MythD3D9Painter::Begin().
bool D3D9Image::UpdateImage | ( | IDirect3DSurface9 * | surface | ) |
Definition at line 71 of file mythrender_d3d9.cpp.
Referenced by MythRenderD3D9::CopyFrame(), and MythD3D9Painter::GetImageFromCache().
Definition at line 78 of file mythrender_d3d9.cpp.
bool D3D9Image::UpdateVertices | ( | const QRect & | dvr, |
const QRect & | vr, | ||
int | alpha = 255 , |
||
bool | video = false |
||
) |
Definition at line 89 of file mythrender_d3d9.cpp.
Referenced by MythD3D9Painter::DrawImage(), and VideoOutputD3D::RenderFrame().
bool D3D9Image::Draw | ( | void | ) |
Definition at line 97 of file mythrender_d3d9.cpp.
Referenced by MythD3D9Painter::DrawImage(), and VideoOutputD3D::RenderFrame().
Definition at line 104 of file mythrender_d3d9.cpp.
Referenced by VideoOutputD3D::UpdateFrame().
void D3D9Image::ReleaseBuffer | ( | void | ) |
Definition at line 113 of file mythrender_d3d9.cpp.
Referenced by VideoOutputD3D::UpdateFrame().
QRect D3D9Image::GetRect | ( | void | ) |
Definition at line 121 of file mythrender_d3d9.cpp.
|
private |
Definition at line 45 of file mythrender_d3d9.h.
Referenced by D3D9Image().
Definition at line 46 of file mythrender_d3d9.h.
Referenced by D3D9Image(), Draw(), GetBuffer(), GetRect(), ReleaseBuffer(), SetAsRenderTarget(), UpdateImage(), and UpdateVertices().
|
private |
Definition at line 47 of file mythrender_d3d9.h.
Referenced by D3D9Image(), Draw(), GetBuffer(), GetRect(), ReleaseBuffer(), SetAsRenderTarget(), UpdateImage(), UpdateVertices(), and ~D3D9Image().
|
private |
Definition at line 48 of file mythrender_d3d9.h.
Referenced by D3D9Image(), Draw(), GetRect(), UpdateVertices(), and ~D3D9Image().
|
private |
Definition at line 49 of file mythrender_d3d9.h.
Referenced by D3D9Image(), ReleaseBuffer(), SetAsRenderTarget(), UpdateImage(), and ~D3D9Image().
|
private |
Definition at line 50 of file mythrender_d3d9.h.
Referenced by D3D9Image(), GetBuffer(), ReleaseBuffer(), UpdateImage(), and ~D3D9Image().