AJA NTV2 SDK  17.6.0.2675
NTV2 SDK 17.6.0.2675
CDrawImage Class Reference

#include <winutil.h>

Collaboration diagram for CDrawImage:
[legend]

Public Member Functions

 CDrawImage (__inout CBaseWindow *pBaseWindow)
 
BOOL DrawImage (IMediaSample *pMediaSample)
 
BOOL DrawVideoImageHere (HDC hdc, IMediaSample *pMediaSample, __in LPRECT lprcSrc, __in LPRECT lprcDst)
 
void SetDrawContext ()
 
void SetTargetRect (__in RECT *pTargetRect)
 
void SetSourceRect (__in RECT *pSourceRect)
 
void GetTargetRect (__out RECT *pTargetRect)
 
void GetSourceRect (__out RECT *pSourceRect)
 
virtual RECT ScaleSourceRect (const RECT *pSource)
 
LONG GetPaletteVersion ()
 
void ResetPaletteVersion ()
 
void IncrementPaletteVersion ()
 
void NotifyAllocator (BOOL bUsingImageAllocator)
 
void NotifyMediaType (__in CMediaType *pMediaType)
 
BOOL UsingImageAllocator ()
 
void NotifyStartDraw ()
 
void NotifyEndDraw ()
 

Protected Member Functions

void SlowRender (IMediaSample *pMediaSample)
 
void FastRender (IMediaSample *pMediaSample)
 
void DisplaySampleTimes (IMediaSample *pSample)
 
void UpdateColourTable (HDC hdc, __in BITMAPINFOHEADER *pbmi)
 
void SetStretchMode ()
 

Protected Attributes

CBaseWindowm_pBaseWindow
 
CRefTime m_StartSample
 
CRefTime m_EndSample
 
HDC m_hdc
 
HDC m_MemoryDC
 
RECT m_TargetRect
 
RECT m_SourceRect
 
BOOL m_bStretch
 
BOOL m_bUsingImageAllocator
 
CMediaTypem_pMediaType
 
int m_perfidRenderTime
 
LONG m_PaletteVersion
 

Detailed Description

Definition at line 161 of file winutil.h.

Constructor & Destructor Documentation

◆ CDrawImage()

CDrawImage::CDrawImage ( __inout CBaseWindow pBaseWindow)

Definition at line 919 of file winutil.cpp.

Member Function Documentation

◆ DisplaySampleTimes()

void CDrawImage::DisplaySampleTimes ( IMediaSample *  pSample)
protected

Definition at line 941 of file winutil.cpp.

◆ DrawImage()

BOOL CDrawImage::DrawImage ( IMediaSample *  pMediaSample)

Definition at line 1217 of file winutil.cpp.

◆ DrawVideoImageHere()

BOOL CDrawImage::DrawVideoImageHere ( HDC  hdc,
IMediaSample *  pMediaSample,
__in LPRECT  lprcSrc,
__in LPRECT  lprcDst 
)

Definition at line 1244 of file winutil.cpp.

◆ FastRender()

void CDrawImage::FastRender ( IMediaSample *  pMediaSample)
protected

Definition at line 1023 of file winutil.cpp.

◆ GetPaletteVersion()

LONG CDrawImage::GetPaletteVersion ( )

Definition at line 1417 of file winutil.cpp.

◆ GetSourceRect()

void CDrawImage::GetSourceRect ( __out RECT *  pSourceRect)

Definition at line 1350 of file winutil.cpp.

◆ GetTargetRect()

void CDrawImage::GetTargetRect ( __out RECT *  pTargetRect)

Definition at line 1328 of file winutil.cpp.

◆ IncrementPaletteVersion()

void CDrawImage::IncrementPaletteVersion ( )

Definition at line 1433 of file winutil.cpp.

◆ NotifyAllocator()

void CDrawImage::NotifyAllocator ( BOOL  bUsingImageAllocator)

Definition at line 1387 of file winutil.cpp.

◆ NotifyEndDraw()

void CDrawImage::NotifyEndDraw ( )
inline

Definition at line 221 of file winutil.h.

◆ NotifyMediaType()

void CDrawImage::NotifyMediaType ( __in CMediaType pMediaType)

Definition at line 1405 of file winutil.cpp.

◆ NotifyStartDraw()

void CDrawImage::NotifyStartDraw ( )
inline

Definition at line 215 of file winutil.h.

◆ ResetPaletteVersion()

void CDrawImage::ResetPaletteVersion ( )

Definition at line 1425 of file winutil.cpp.

◆ ScaleSourceRect()

RECT CDrawImage::ScaleSourceRect ( const RECT *  pSource)
virtual

Definition at line 1009 of file winutil.cpp.

◆ SetDrawContext()

void CDrawImage::SetDrawContext ( )

Definition at line 1307 of file winutil.cpp.

◆ SetSourceRect()

void CDrawImage::SetSourceRect ( __in RECT *  pSourceRect)

Definition at line 1340 of file winutil.cpp.

◆ SetStretchMode()

void CDrawImage::SetStretchMode ( )
protected

Definition at line 1362 of file winutil.cpp.

◆ SetTargetRect()

void CDrawImage::SetTargetRect ( __in RECT *  pTargetRect)

Definition at line 1318 of file winutil.cpp.

◆ SlowRender()

void CDrawImage::SlowRender ( IMediaSample *  pMediaSample)
protected

Definition at line 1126 of file winutil.cpp.

◆ UpdateColourTable()

void CDrawImage::UpdateColourTable ( HDC  hdc,
__in BITMAPINFOHEADER *  pbmi 
)
protected

Definition at line 991 of file winutil.cpp.

◆ UsingImageAllocator()

BOOL CDrawImage::UsingImageAllocator ( )

Definition at line 1395 of file winutil.cpp.

Member Data Documentation

◆ m_bStretch

BOOL CDrawImage::m_bStretch
protected

Definition at line 172 of file winutil.h.

◆ m_bUsingImageAllocator

BOOL CDrawImage::m_bUsingImageAllocator
protected

Definition at line 173 of file winutil.h.

◆ m_EndSample

CRefTime CDrawImage::m_EndSample
protected

Definition at line 167 of file winutil.h.

◆ m_hdc

HDC CDrawImage::m_hdc
protected

Definition at line 168 of file winutil.h.

◆ m_MemoryDC

HDC CDrawImage::m_MemoryDC
protected

Definition at line 169 of file winutil.h.

◆ m_PaletteVersion

LONG CDrawImage::m_PaletteVersion
protected

Definition at line 176 of file winutil.h.

◆ m_pBaseWindow

CBaseWindow* CDrawImage::m_pBaseWindow
protected

Definition at line 165 of file winutil.h.

◆ m_perfidRenderTime

int CDrawImage::m_perfidRenderTime
protected

Definition at line 175 of file winutil.h.

◆ m_pMediaType

CMediaType* CDrawImage::m_pMediaType
protected

Definition at line 174 of file winutil.h.

◆ m_SourceRect

RECT CDrawImage::m_SourceRect
protected

Definition at line 171 of file winutil.h.

◆ m_StartSample

CRefTime CDrawImage::m_StartSample
protected

Definition at line 166 of file winutil.h.

◆ m_TargetRect

RECT CDrawImage::m_TargetRect
protected

Definition at line 170 of file winutil.h.


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