📄 amovie.hpp
字号:
__interface INTERFACE_UUID("{56A86893-0AD4-11CE-B03A-0020AF0BA770}") IEnumFilters : public IInterface
{
public:
virtual HRESULT __stdcall Next(unsigned cFilters, /* out */ _di_IBaseFilter &ppFilter, PULONG pcFetched) = 0 ;
virtual HRESULT __stdcall Skip(unsigned cFilters) = 0 ;
virtual HRESULT __stdcall Reset(void) = 0 ;
virtual HRESULT __stdcall Clone(/* out */ _di_IEnumFilters &ppEnum) = 0 ;
};
__interface IGraphBuilder;
typedef System::DelphiInterface<IGraphBuilder> _di_IGraphBuilder;
__interface INTERFACE_UUID("{56A868A9-0AD4-11CE-B03A-0020AF0BA770}") IGraphBuilder : public IFilterGraph
{
public:
virtual HRESULT __stdcall Connect(_di_IPin ppinOut, _di_IPin ppinIn) = 0 ;
virtual HRESULT __stdcall Render(_di_IPin ppinOut) = 0 ;
virtual HRESULT __stdcall RenderFile(WideChar * lpcwstrFile, WideChar * lpcwstrPlayList) = 0 ;
virtual HRESULT __stdcall AddSourceFilter(WideChar * lpcwstrFileName, WideChar * lpcwstrFilterName, /* out */ _di_IBaseFilter &ppFilter) = 0 ;
virtual HRESULT __stdcall SetLogFile(unsigned hFile) = 0 ;
virtual HRESULT __stdcall Abort(void) = 0 ;
virtual HRESULT __stdcall ShouldOperationContinue(void) = 0 ;
};
__interface IFileSinkFilter;
typedef System::DelphiInterface<IFileSinkFilter> _di_IFileSinkFilter;
__interface INTERFACE_UUID("{A2104830-7C70-11CF-8BCE-00AA00A3F1A6}") IFileSinkFilter : public IInterface
{
public:
virtual HRESULT __stdcall SetFileName(WideChar * pszFileName, TAM_Media_Type &pmt) = 0 ;
virtual HRESULT __stdcall GetCurFile(/* out */ WideChar * &ppszFileName, /* out */ TAM_Media_Type &pmt) = 0 ;
};
__interface IAMCopyCaptureFileProgress;
typedef System::DelphiInterface<IAMCopyCaptureFileProgress> _di_IAMCopyCaptureFileProgress;
__interface INTERFACE_UUID("{670D1D20-A068-11D0-B3F0-00AA003761C5}") IAMCopyCaptureFileProgress : public IInterface
{
public:
virtual HRESULT __stdcall Progress(int iProgress) = 0 ;
};
#pragma option push -b-
enum TVideoProcAmpProperty { VideoProcAmp_Brightness, VideoProcAmp_Contrast, VideoProcAmp_Hue, VideoProcAmp_Saturation, VideoProcAmp_Sharpness, VideoProcAmp_Gamma, VideoProcAmp_ColorEnable, VideoProcAmp_WhiteBalance, VideoProcAmp_BacklightCompensation };
#pragma option pop
#pragma option push -b-
enum TVideoProcAmpFlags { VideoProcAmp_Flags_Manual, VideoProcAmp_Flags_Auto };
#pragma option pop
__interface IAMVideoProcAmp;
typedef System::DelphiInterface<IAMVideoProcAmp> _di_IAMVideoProcAmp;
__interface INTERFACE_UUID("{C6E13360-30AC-11D0-A18C-00A0C9118956}") IAMVideoProcAmp : public IInterface
{
public:
virtual HRESULT __stdcall GetRange(TVideoProcAmpProperty Property_, /* out */ int &pMin, /* out */ int &pMax, /* out */ int &pSteppingDelta, /* out */ int &pDefault, /* out */ TVideoProcAmpFlags &pCapsFlags) = 0 ;
virtual HRESULT __stdcall Set_(TVideoProcAmpProperty Property_, int lValue, TVideoProcAmpFlags Flags) = 0 ;
virtual HRESULT __stdcall Get(TVideoProcAmpProperty Property_, /* out */ int &lValue, /* out */ TVideoProcAmpFlags &Flags) = 0 ;
};
__interface ICaptureGraphBuilder;
typedef System::DelphiInterface<ICaptureGraphBuilder> _di_ICaptureGraphBuilder;
__interface INTERFACE_UUID("{BF87B6E0-8C27-11D0-B3F0-00AA003761C5}") ICaptureGraphBuilder : public IInterface
{
public:
virtual HRESULT __stdcall SetFiltergraph(_di_IGraphBuilder pfg) = 0 ;
virtual HRESULT __stdcall GetFiltergraph(/* out */ _di_IGraphBuilder &Muxg) = 0 ;
virtual HRESULT __stdcall SetOutputFileName(const GUID &pType, WideChar * lpstrFile, /* out */ _di_IBaseFilter &Mux, /* out */ _di_IFileSinkFilter &ppSink) = 0 ;
virtual HRESULT __stdcall FindInterface(System::PGUID pCategory, System::PGUID pType, _di_IBaseFilter pf, const GUID &riid, /* out */ void *ppint) = 0 ;
virtual HRESULT __stdcall RenderStream(System::PGUID pCategory, System::PGUID pType, System::_di_IInterface pSource, _di_IBaseFilter pfCompressor, _di_IBaseFilter pfRenderer) = 0 ;
virtual HRESULT __stdcall ControlStream(System::PGUID pCategory, System::PGUID pType, _di_IBaseFilter pFilter, PReference_Time pstart, PReference_Time pstop, Word wStartCookie, Word wStopCookie) = 0 ;
virtual HRESULT __stdcall AllocCapFile(WideChar * lpstr, __int64 dwlSize) = 0 ;
virtual HRESULT __stdcall CopyCaptureFile(WideChar * lpwstrOld, WideChar * lpwstrNew, int fAllowEscAbort, _di_IAMCopyCaptureFileProgress pCallback) = 0 ;
};
__interface ICaptureGraphBuilder2;
typedef System::DelphiInterface<ICaptureGraphBuilder2> _di_ICaptureGraphBuilder2;
__interface INTERFACE_UUID("{93E5A4E0-2D50-11D2-ABFA-00A0C9C6E38D}") ICaptureGraphBuilder2 : public IInterface
{
public:
virtual HRESULT __stdcall SetFiltergraph(_di_IGraphBuilder pfg) = 0 ;
virtual HRESULT __stdcall GetFiltergraph(/* out */ _di_IGraphBuilder &Muxg) = 0 ;
virtual HRESULT __stdcall SetOutputFileName(const GUID &pType, WideChar * lpstrFile, /* out */ _di_IBaseFilter &Mux, /* out */ _di_IFileSinkFilter &ppSink) = 0 ;
virtual HRESULT __stdcall FindInterface(System::PGUID pCategory, System::PGUID pType, _di_IBaseFilter pf, const GUID &riid, /* out */ void *ppint) = 0 ;
virtual HRESULT __stdcall RenderStream(System::PGUID pCategory, System::PGUID pType, System::_di_IInterface pSource, _di_IBaseFilter pfCompressor, _di_IBaseFilter pfRenderer) = 0 ;
virtual HRESULT __stdcall ControlStream(System::PGUID pCategory, System::PGUID pType, _di_IBaseFilter pFilter, PReference_Time pstart, PReference_Time pstop, Word wStartCookie, Word wStopCookie) = 0 ;
virtual HRESULT __stdcall AllocCapFile(WideChar * lpstr, __int64 dwlSize) = 0 ;
virtual HRESULT __stdcall CopyCaptureFile(WideChar * lpwstrOld, WideChar * lpwstrNew, int fAllowEscAbort, _di_IAMCopyCaptureFileProgress pCallback) = 0 ;
virtual HRESULT __stdcall FindPin(System::_di_IInterface pSource, TPin_Direction pindir, void * pCategory, void * pType, BOOL fUnconnected, int num, /* out */ _di_IPin &ppPin) = 0 ;
};
__interface INTERFACE_UUID("{56A86892-0AD4-11CE-B03A-0020AF0BA770}") IEnumPins : public IInterface
{
public:
virtual HRESULT __stdcall Next(unsigned cPins, /* out */ _di_IPin &ppPins, PULONG pcFetched) = 0 ;
virtual HRESULT __stdcall Skip(unsigned cPins) = 0 ;
virtual HRESULT __stdcall Reset(void) = 0 ;
virtual HRESULT __stdcall Clone(/* out */ _di_IEnumPins &ppEnum) = 0 ;
};
#pragma pack(push,4)
struct TFilterInfo
{
public:
WideChar achName[128];
_di_IFilterGraph pGraph;
} ;
#pragma pack(pop)
typedef int HSEMAPHORE;
__interface INTERFACE_UUID("{56A86897-0AD4-11CE-B03A-0020AF0BA770}") IReferenceClock : public IInterface
{
public:
virtual HRESULT __stdcall GetTime(/* out */ __int64 &pTime) = 0 ;
virtual HRESULT __stdcall AdviseTime(__int64 baseTime, __int64 streamTime, unsigned hEvent, /* out */ unsigned &pdwAdviseCookie) = 0 ;
virtual HRESULT __stdcall AdvisePeriodic(__int64 startTime, __int64 periodTime, int hSemaphore, /* out */ unsigned &pdwAdviseCookie) = 0 ;
virtual HRESULT __stdcall Unadvise(unsigned dwAdviseCookie) = 0 ;
};
typedef double TRefTime;
__interface IBasicVideo;
typedef System::DelphiInterface<IBasicVideo> _di_IBasicVideo;
__interface INTERFACE_UUID("{56A868B5-0AD4-11CE-B03A-0020AF0BA770}") IBasicVideo : public IDispatch
{
public:
virtual HRESULT __stdcall get_AvgTimePerFrame(/* out */ double &pAvgTimePerFrame) = 0 ;
virtual HRESULT __stdcall get_BitRate(/* out */ int &pBitRate) = 0 ;
virtual HRESULT __stdcall get_BitErrorRate(/* out */ int &pBitErrorRate) = 0 ;
virtual HRESULT __stdcall get_VideoWidth(/* out */ int &pVideoWidth) = 0 ;
virtual HRESULT __stdcall get_VideoHeight(/* out */ int &pVideoHeight) = 0 ;
virtual HRESULT __stdcall put_SourceLeft(int SourceLeft) = 0 ;
virtual HRESULT __stdcall get_SourceLeft(/* out */ int &pSourceLeft) = 0 ;
virtual HRESULT __stdcall put_SourceWidth(int SourceWidth) = 0 ;
virtual HRESULT __stdcall get_SourceWidth(/* out */ int &pSourceWidth) = 0 ;
virtual HRESULT __stdcall put_SourceTop(int SourceTop) = 0 ;
virtual HRESULT __stdcall get_SourceTop(/* out */ int &pSourceTop) = 0 ;
virtual HRESULT __stdcall put_SourceHeight(int SourceHeight) = 0 ;
virtual HRESULT __stdcall get_SourceHeight(/* out */ int &pSourceHeight) = 0 ;
virtual HRESULT __stdcall put_DestinationLeft(int DestinationLeft) = 0 ;
virtual HRESULT __stdcall get_DestinationLeft(/* out */ int &pDestinationLeft) = 0 ;
virtual HRESULT __stdcall put_DestinationWidth(int DestinationWidth) = 0 ;
virtual HRESULT __stdcall get_DestinationWidth(/* out */ int &pDestinationWidth) = 0 ;
virtual HRESULT __stdcall put_DestinationTop(int DestinationTop) = 0 ;
virtual HRESULT __stdcall get_DestinationTop(/* out */ int &pDestinationTop) = 0 ;
virtual HRESULT __stdcall put_DestinationHeight(int DestinationHeight) = 0 ;
virtual HRESULT __stdcall get_DestinationHeight(/* out */ int &pDestinationHeight) = 0 ;
virtual HRESULT __stdcall SetSourcePosition(int Left, int Top, int Width, int Height) = 0 ;
virtual HRESULT __stdcall GetSourcePosition(/* out */ int &pLeft, /* out */ int &pTop, /* out */ int &pWidth, /* out */ int &pHeight) = 0 ;
virtual HRESULT __stdcall SetDefaultSourcePosition(void) = 0 ;
virtual HRESULT __stdcall SetDestinationPosition(int Left, int Top, int Width, int Height) = 0 ;
virtual HRESULT __stdcall GetDestinationPosition(/* out */ int &pLeft, /* out */ int &pTop, /* out */ int &pWidth, /* out */ int &pHeight) = 0 ;
virtual HRESULT __stdcall SetDefaultDestinationPosition(void) = 0 ;
virtual HRESULT __stdcall GetVideoSize(/* out */ int &pWidth, /* out */ int &Height) = 0 ;
virtual HRESULT __stdcall GetVideoPaletteEntries(int StartIndex, int Entries, /* out */ int &pRetrieved, /* out */ void *pPalette) = 0 ;
virtual HRESULT __stdcall GetCurrentImage(int &BufferSize, void *pDIBImage) = 0 ;
virtual HRESULT __stdcall IsUsingDefaultSource(void) = 0 ;
virtual HRESULT __stdcall IsUsingDefaultDestination(void) = 0 ;
};
__interface IMediaSeeking;
typedef System::DelphiInterface<IMediaSeeking> _di_IMediaSeeking;
__interface INTERFACE_UUID("{36B73880-C2C8-11CF-8B46-00805F6CEF60}") IMediaSeeking : public IInterface
{
public:
virtual HRESULT __stdcall GetCapabilities(/* out */ unsigned &pCapabilities) = 0 ;
virtual HRESULT __stdcall CheckCapabilities(unsigned &pCapabilities) = 0 ;
virtual HRESULT __stdcall IsFormatSupported(const GUID &pFormat) = 0 ;
virtual HRESULT __stdcall QueryPreferredFormat(/* out */ GUID &pFormat) = 0 ;
virtual HRESULT __stdcall GetTimeFormat(/* out */ GUID &pFormat) = 0 ;
virtual HRESULT __stdcall IsUsingTimeFormat(const GUID &pFormat) = 0 ;
virtual HRESULT __stdcall SetTimeFormat(const GUID &pFormat) = 0 ;
virtual HRESULT __stdcall GetDuration(/* out */ __int64 &pDuration) = 0 ;
virtual HRESULT __stdcall GetStopPosition(/* out */ __int64 &pStop) = 0 ;
virtual HRESULT __stdcall GetCurrentPosition(/* out */ __int64 &pCurrent) = 0 ;
virtual HRESULT __stdcall ConvertTimeFormat(/* out */ __int64 &pTarget, System::PGUID pTargetFormat, __int64 Source, System::PGUID pSourceFormat) = 0 ;
virtual HRESULT __stdcall SetPositions(__int64 &pCurrent, unsigned dwCurrentFlags, __int64 &pStop, unsigned dwStopFlags) = 0 ;
virtual HRESULT __stdcall GetPositions(/* out */ __int64 &pCurrent, /* out */ __int64 &pStop) = 0 ;
virtual HRESULT __stdcall GetAvailable(/* out */ __int64 &pEarliest, /* out */ __int64 &pLatest) = 0 ;
virtual HRESULT __stdcall SetRate(double dRate) = 0 ;
virtual HRESULT __stdcall GetRate(/* out */ double &pdRate) = 0 ;
virtual HRESULT __stdcall GetPreroll(/* out */ __int64 &pllPreroll) = 0 ;
};
__interface IMediaControl;
typedef System::DelphiInterface<IMediaControl> _di_IMediaControl;
__interface INTERFACE_UUID("{56A868B1-0AD4-11CE-B03A-0020AF0BA770}") IMediaControl : public IDispatch
{
public:
virtual HRESULT __stdcall Run(void) = 0 ;
virtual HRESULT __stdcall Pause(void) = 0 ;
virtual HRESULT __stdcall Stop(void) = 0 ;
virtual HRESULT __stdcall GetState(unsigned msTimeout, /* out */ TFilter_State &pfs) = 0 ;
virtual HRESULT __stdcall RenderFile(WideString strFilename) = 0 ;
virtual HRESULT __stdcall AddSourceFilter(WideString strFilename, /* out */ _di_IDispatch &ppUnk) = 0 ;
virtual HRESULT __stdcall get_FilterCollection(/* out */ _di_IDispatch &ppUnk) = 0 ;
virtual HRESULT __stdcall get_RegFilterCollection(/* out */ _di_IDispatch &ppUnk) = 0 ;
virtual HRESULT __stdcall StopWhenReady(void) = 0 ;
};
__interface ISampleGrabberCB;
typedef System::DelphiInterface<ISampleGrabberCB> _di_ISampleGrabberCB;
__interface INTERFACE_UUID("{0579154A-2B53-4994-B0D0-E773148EFF85}") ISampleGrabberCB : public IInterface
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -