D3D9Image Class Reference

#include <mythrender_d3d9.h>

List of all members.

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_tGetBuffer (bool &hardware_conv, uint &pitch)
void ReleaseBuffer (void)
QRect GetRect (void)

Private Attributes

QSize m_size
bool m_valid
MythRenderD3D9m_render
IDirect3DVertexBuffer9 * m_vertexbuffer
IDirect3DTexture9 * m_texture
IDirect3DSurface9 * m_surface

Detailed Description

Definition at line 23 of file mythrender_d3d9.h.


Constructor & Destructor Documentation

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

Definition at line 65 of file mythrender_d3d9.cpp.

D3D9Image::~D3D9Image (  ) 

Definition at line 78 of file mythrender_d3d9.cpp.


Member Function Documentation

bool D3D9Image::IsValid ( void   )  const [inline]
QSize D3D9Image::GetSize ( void   )  const [inline]

Definition at line 30 of file mythrender_d3d9.h.

Referenced by VideoOutputD3D::ShowPIP().

int D3D9Image::GetDataSize ( void   )  const [inline]
bool D3D9Image::SetAsRenderTarget ( void   ) 

Definition at line 91 of file mythrender_d3d9.cpp.

Referenced by MythD3D9Painter::Begin().

bool D3D9Image::UpdateImage ( IDirect3DSurface9 *  surface  ) 
bool D3D9Image::UpdateImage ( const MythImage img  ) 

Definition at line 105 of file mythrender_d3d9.cpp.

bool D3D9Image::UpdateVertices ( const QRect &  dvr,
const QRect &  vr,
int  alpha = 255,
bool  video = false 
)
bool D3D9Image::Draw ( void   ) 
uint8_t * D3D9Image::GetBuffer ( bool hardware_conv,
uint pitch 
)

Definition at line 132 of file mythrender_d3d9.cpp.

Referenced by VideoOutputD3D::UpdateFrame().

void D3D9Image::ReleaseBuffer ( void   ) 

Definition at line 141 of file mythrender_d3d9.cpp.

Referenced by VideoOutputD3D::UpdateFrame().

QRect D3D9Image::GetRect ( void   ) 

Definition at line 149 of file mythrender_d3d9.cpp.


Member Data Documentation

QSize D3D9Image::m_size [private]

Definition at line 43 of file mythrender_d3d9.h.

Referenced by D3D9Image().

IDirect3DVertexBuffer9* D3D9Image::m_vertexbuffer [private]

Definition at line 46 of file mythrender_d3d9.h.

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

IDirect3DTexture9* D3D9Image::m_texture [private]
IDirect3DSurface9* D3D9Image::m_surface [private]

Definition at line 48 of file mythrender_d3d9.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:59 2012 for MythTV by  doxygen 1.6.3