Copy (2) of QTDec.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:1k
- #pragma once
- #include <afxtempl.h>
- #include "........includeqtqt.h"
- //
- // CQTDec
- //
- // {2D261619-3822-4856-A422-DC77BF0FB947}
- DEFINE_GUID(CLSID_QTDec,
- 0x2d261619, 0x3822, 0x4856, 0xa4, 0x22, 0xdc, 0x77, 0xbf, 0xf, 0xb9, 0x47);
- class CQTDec : public CTransformFilter
- {
- bool m_fQtInitialized;
- CArray<CMediaType> m_mts;
- QT::GWorldPtr m_pImageGWorld;
- QT::GWorldPtr MakeGWorld();
- void FreeGWorld(QT::GWorldPtr& pImageGWorld);
- QT::ComponentInstance m_cinst;
- QT::CodecCapabilities m_ccap;
- QT::CodecDecompressParams m_cdpar;
- QT::ImageDescriptionHandle m_hImageDesc;
- bool InitComponent();
- public:
- CQTDec(LPUNKNOWN lpunk, HRESULT* phr);
- virtual ~CQTDec();
- #ifdef REGISTER_FILTER
- static CUnknown* WINAPI CreateInstance(LPUNKNOWN lpunk, HRESULT* phr);
- #endif
- HRESULT BreakConnect(PIN_DIRECTION dir);
- HRESULT CompleteConnect(PIN_DIRECTION dir, IPin* pReceivePin);
- HRESULT Transform(IMediaSample* pIn, IMediaSample* pOut);
- HRESULT CheckInputType(const CMediaType* mtIn);
- HRESULT CheckTransform(const CMediaType* mtIn, const CMediaType* mtOut);
- HRESULT DecideBufferSize(IMemAllocator* pAllocator, ALLOCATOR_PROPERTIES* pProperties);
- HRESULT GetMediaType(int iPosition, CMediaType* pMediaType);
- };