CDrawImage Class Reference

#include <winutil.h>

List of all members.

Public Member Functions

 CDrawImage (CBaseWindow *pBaseWindow)
BOOL DrawImage (IMediaSample *pMediaSample)
BOOL DrawVideoImageHere (HDC hdc, IMediaSample *pMediaSample, LPRECT lprcSrc, LPRECT lprcDst)
void SetDrawContext ()
void SetTargetRect (RECT *pTargetRect)
void SetSourceRect (RECT *pSourceRect)
void GetTargetRect (RECT *pTargetRect)
void GetSourceRect (RECT *pSourceRect)
virtual RECT ScaleSourceRect (const RECT *pSource)
LONG GetPaletteVersion ()
void ResetPaletteVersion ()
void IncrementPaletteVersion ()
void NotifyAllocator (BOOL bUsingImageAllocator)
void NotifyMediaType (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, 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 121 of file winutil.h.


Constructor & Destructor Documentation

CDrawImage::CDrawImage ( CBaseWindow pBaseWindow  ) 


Member Function Documentation

void CDrawImage::SlowRender ( IMediaSample *  pMediaSample  )  [protected]

void CDrawImage::FastRender ( IMediaSample *  pMediaSample  )  [protected]

void CDrawImage::DisplaySampleTimes ( IMediaSample *  pSample  )  [protected]

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

Definition at line 752 of file winutil.cpp.

References ASSERT.

Referenced by FastRender().

void CDrawImage::SetStretchMode (  )  [protected]

Definition at line 1064 of file winutil.cpp.

References FALSE, LONG, m_bStretch, m_SourceRect, m_TargetRect, and TRUE.

Referenced by SetSourceRect(), and SetTargetRect().

BOOL CDrawImage::DrawImage ( IMediaSample *  pMediaSample  ) 

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

void CDrawImage::SetDrawContext (  ) 

void CDrawImage::SetTargetRect ( RECT *  pTargetRect  ) 

Definition at line 1038 of file winutil.cpp.

References ASSERT, m_TargetRect, and SetStretchMode().

void CDrawImage::SetSourceRect ( RECT *  pSourceRect  ) 

Definition at line 1051 of file winutil.cpp.

References ASSERT, m_SourceRect, and SetStretchMode().

void CDrawImage::GetTargetRect ( RECT *  pTargetRect  ) 

Definition at line 1045 of file winutil.cpp.

References ASSERT, and m_TargetRect.

void CDrawImage::GetSourceRect ( RECT *  pSourceRect  ) 

Definition at line 1058 of file winutil.cpp.

References ASSERT, and m_SourceRect.

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

Definition at line 767 of file winutil.cpp.

References ASSERT.

Referenced by DrawVideoImageHere(), FastRender(), and SlowRender().

LONG CDrawImage::GetPaletteVersion (  ) 

Definition at line 1096 of file winutil.cpp.

References m_PaletteVersion.

Referenced by FastRender().

void CDrawImage::ResetPaletteVersion (  ) 

Definition at line 1101 of file winutil.cpp.

References m_PaletteVersion, and PALETTE_VERSION.

Referenced by CDrawImage().

void CDrawImage::IncrementPaletteVersion (  ) 

Definition at line 1106 of file winutil.cpp.

References m_PaletteVersion.

Referenced by CImagePalette::PreparePalette().

void CDrawImage::NotifyAllocator ( BOOL  bUsingImageAllocator  ) 

Definition at line 1081 of file winutil.cpp.

References m_bUsingImageAllocator.

void CDrawImage::NotifyMediaType ( CMediaType pMediaType  ) 

Definition at line 1091 of file winutil.cpp.

References m_pMediaType.

BOOL CDrawImage::UsingImageAllocator (  ) 

Definition at line 1086 of file winutil.cpp.

References m_bUsingImageAllocator.

void CDrawImage::NotifyStartDraw (  )  [inline]

Definition at line 175 of file winutil.h.

References m_perfidRenderTime, and MSR_START.

Referenced by DrawImage().

void CDrawImage::NotifyEndDraw (  )  [inline]

Definition at line 181 of file winutil.h.

References m_perfidRenderTime, and MSR_STOP.

Referenced by DrawImage().


Member Data Documentation

Definition at line 125 of file winutil.h.

Referenced by DisplaySampleTimes(), and SetDrawContext().

Definition at line 126 of file winutil.h.

Referenced by DisplaySampleTimes().

Definition at line 127 of file winutil.h.

Referenced by DisplaySampleTimes().

HDC CDrawImage::m_hdc [protected]

Definition at line 128 of file winutil.h.

Referenced by DisplaySampleTimes(), DrawImage(), FastRender(), SetDrawContext(), and SlowRender().

HDC CDrawImage::m_MemoryDC [protected]

Definition at line 129 of file winutil.h.

Referenced by DrawImage(), FastRender(), and SetDrawContext().

RECT CDrawImage::m_TargetRect [protected]

RECT CDrawImage::m_SourceRect [protected]

BOOL CDrawImage::m_bStretch [protected]

Definition at line 132 of file winutil.h.

Referenced by FastRender(), SetStretchMode(), and SlowRender().

Definition at line 133 of file winutil.h.

Referenced by DrawImage(), NotifyAllocator(), and UsingImageAllocator().

Definition at line 134 of file winutil.h.

Referenced by DrawVideoImageHere(), FastRender(), NotifyMediaType(), and SlowRender().

Definition at line 135 of file winutil.h.

Referenced by CDrawImage(), NotifyEndDraw(), and NotifyStartDraw().

Definition at line 136 of file winutil.h.

Referenced by GetPaletteVersion(), IncrementPaletteVersion(), and ResetPaletteVersion().


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

Generated on Sun May 25 00:20:45 2008 by  doxygen 1.5.6