#include <winutil.h>
Public Member Functions | |
| CImagePalette (CBaseFilter *pBaseFilter, CBaseWindow *pBaseWindow, CDrawImage *pDrawImage) | |
| HRESULT | RemovePalette () |
| HRESULT | CopyPalette (const CMediaType *pSrc, CMediaType *pDest) |
| BOOL | ShouldUpdate (const VIDEOINFOHEADER *pNewInfo, const VIDEOINFOHEADER *pOldInfo) |
| HRESULT | PreparePalette (const CMediaType *pmtNew, const CMediaType *pmtOld, LPSTR szDevice) |
| BOOL | DrawVideoImageHere (HDC hdc, IMediaSample *pMediaSample, LPRECT lprcSrc, LPRECT lprcDst) |
Static Public Member Functions | |
| static HPALETTE | MakePalette (const VIDEOINFOHEADER *pVideoInfo, LPSTR szDevice) |
| static HRESULT | MakeIdentityPalette (PALETTEENTRY *pEntry, INT iColours, LPSTR szDevice) |
Protected Attributes | |
| CBaseWindow * | m_pBaseWindow |
| CBaseFilter * | m_pFilter |
| CDrawImage * | m_pDrawImage |
| HPALETTE | m_hPalette |
Definition at line 257 of file winutil.h.
| CImagePalette::CImagePalette | ( | CBaseFilter * | pBaseFilter, | |
| CBaseWindow * | pBaseWindow, | |||
| CDrawImage * | pDrawImage | |||
| ) |
| HPALETTE CImagePalette::MakePalette | ( | const VIDEOINFOHEADER * | pVideoInfo, | |
| LPSTR | szDevice | |||
| ) | [static] |
Definition at line 1546 of file winutil.cpp.
References ASSERT, if(), MakeIdentityPalette(), NULL, PALVERSION, and TRUE.
Referenced by PreparePalette().
| HRESULT CImagePalette::RemovePalette | ( | ) |
Definition at line 1517 of file winutil.cpp.
References ASSERT, EXECUTE_ASSERT, CBaseWindow::GetMemoryHDC(), CBaseWindow::GetWindowHDC(), m_hPalette, m_pBaseWindow, NULL, and TRUE.
Referenced by PreparePalette().
| HRESULT CImagePalette::MakeIdentityPalette | ( | PALETTEENTRY * | pEntry, | |
| INT | iColours, | |||
| LPSTR | szDevice | |||
| ) | [static] |
Definition at line 1589 of file winutil.cpp.
References ASSERT, BOOL, E_OUTOFMEMORY, FALSE, NULL, S_FALSE, and TRUE.
Referenced by MakePalette().
| HRESULT CImagePalette::CopyPalette | ( | const CMediaType * | pSrc, | |
| CMediaType * | pDest | |||
| ) |
Definition at line 1462 of file winutil.cpp.
References ASSERT, FALSE, CMediaType::Format(), CMediaType::FormatLength(), NOTE, NOTE1, CMediaType::ReallocFormatBuffer(), and S_FALSE.
| BOOL CImagePalette::ShouldUpdate | ( | const VIDEOINFOHEADER * | pNewInfo, | |
| const VIDEOINFOHEADER * | pOldInfo | |||
| ) |
Definition at line 1373 of file winutil.cpp.
References FALSE, NULL, and TRUE.
Referenced by PreparePalette().
| HRESULT CImagePalette::PreparePalette | ( | const CMediaType * | pmtNew, | |
| const CMediaType * | pmtOld, | |||
| LPSTR | szDevice | |||
| ) |
Definition at line 1406 of file winutil.cpp.
References ASSERT, FALSE, CMediaType::Format(), CDrawImage::IncrementPaletteVersion(), m_hPalette, m_pBaseWindow, m_pDrawImage, m_pFilter, MakePalette(), NOTE, CBaseFilter::NotifyEvent(), NULL, RemovePalette(), S_FALSE, CBaseWindow::SetPalette(), and ShouldUpdate().
| BOOL CImagePalette::DrawVideoImageHere | ( | HDC | hdc, | |
| IMediaSample * | pMediaSample, | |||
| LPRECT | lprcSrc, | |||
| LPRECT | lprcDst | |||
| ) | [inline] |
CBaseWindow* CImagePalette::m_pBaseWindow [protected] |
CBaseFilter* CImagePalette::m_pFilter [protected] |
CDrawImage* CImagePalette::m_pDrawImage [protected] |
HPALETTE CImagePalette::m_hPalette [protected] |
1.5.6