MythTV  master
Public Member Functions | Private Attributes | List of all members
D3D9Image Class Reference

#include <libmythui/mythrender_d3d9.h>

Collaboration diagram for D3D9Image:
[legend]

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}
 
MythRenderD3D9m_render {nullptr}
 
IDirect3DVertexBuffer9 * m_vertexbuffer {nullptr}
 
IDirect3DTexture9 * m_texture {nullptr}
 
IDirect3DSurface9 * m_surface {nullptr}
 

Detailed Description

Definition at line 25 of file mythrender_d3d9.h.

Constructor & Destructor Documentation

◆ D3D9Image()

D3D9Image::D3D9Image ( MythRenderD3D9 render,
QSize  size,
bool  video = false 
)

Definition at line 39 of file mythrender_d3d9.cpp.

◆ ~D3D9Image()

D3D9Image::~D3D9Image ( )

Definition at line 51 of file mythrender_d3d9.cpp.

Member Function Documentation

◆ IsValid()

bool D3D9Image::IsValid ( void  ) const
inline

◆ GetSize()

QSize D3D9Image::GetSize ( void  ) const
inline

Definition at line 32 of file mythrender_d3d9.h.

◆ GetDataSize()

int D3D9Image::GetDataSize ( void  ) const
inline

◆ SetAsRenderTarget()

bool D3D9Image::SetAsRenderTarget ( void  )

Definition at line 64 of file mythrender_d3d9.cpp.

Referenced by MythD3D9Painter::Begin().

◆ UpdateImage() [1/2]

bool D3D9Image::UpdateImage ( IDirect3DSurface9 *  surface)

◆ UpdateImage() [2/2]

bool D3D9Image::UpdateImage ( const MythImage img)

Definition at line 78 of file mythrender_d3d9.cpp.

◆ UpdateVertices()

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().

◆ Draw()

bool D3D9Image::Draw ( void  )

Definition at line 97 of file mythrender_d3d9.cpp.

Referenced by MythD3D9Painter::DrawImage(), and VideoOutputD3D::RenderFrame().

◆ GetBuffer()

uint8_t * D3D9Image::GetBuffer ( bool hardware_conv,
uint pitch 
)

Definition at line 104 of file mythrender_d3d9.cpp.

Referenced by VideoOutputD3D::UpdateFrame().

◆ ReleaseBuffer()

void D3D9Image::ReleaseBuffer ( void  )

Definition at line 113 of file mythrender_d3d9.cpp.

Referenced by VideoOutputD3D::UpdateFrame().

◆ GetRect()

QRect D3D9Image::GetRect ( void  )

Definition at line 121 of file mythrender_d3d9.cpp.

Member Data Documentation

◆ m_size

QSize D3D9Image::m_size
private

Definition at line 45 of file mythrender_d3d9.h.

Referenced by D3D9Image().

◆ m_valid

bool D3D9Image::m_valid {false}
private

◆ m_render

MythRenderD3D9* D3D9Image::m_render {nullptr}
private

◆ m_vertexbuffer

IDirect3DVertexBuffer9* D3D9Image::m_vertexbuffer {nullptr}
private

Definition at line 48 of file mythrender_d3d9.h.

Referenced by D3D9Image(), Draw(), GetRect(), UpdateVertices(), and ~D3D9Image().

◆ m_texture

IDirect3DTexture9* D3D9Image::m_texture {nullptr}
private

◆ m_surface

IDirect3DSurface9* D3D9Image::m_surface {nullptr}
private

Definition at line 50 of file mythrender_d3d9.h.

Referenced by D3D9Image(), GetBuffer(), ReleaseBuffer(), UpdateImage(), and ~D3D9Image().


The documentation for this class was generated from the following files: