📄 amovie.hpp
字号:
{
public:
virtual HRESULT __stdcall SetFileName(wchar_t * pszFileName, TAM_Media_Type &pmt) = 0 ;
virtual HRESULT __stdcall GetCurFile(/* out */ wchar_t * &ppszFileName, /* out */ TAM_Media_Type &pmt
) = 0 ;
};
__interface IAMCopyCaptureFileProgress;
typedef System::DelphiInterface<IAMCopyCaptureFileProgress> _di_IAMCopyCaptureFileProgress;
__interface IAMCopyCaptureFileProgress : public IUnknown /* __guid="{670D1D20-A068-11D0-B3F0-00AA003761C5}" */
{
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 IAMVideoProcAmp : public IUnknown /* __guid="{C6E13360-30AC-11D0-A18C-00A0C9118956}" */
{
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 ICaptureGraphBuilder : public IUnknown /* __guid="{BF87B6E0-8C27-11D0-B3F0-00AA003761C5}" */
{
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, wchar_t * 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, _di_IUnknown 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(wchar_t * lpstr, __int64 dwlSize) = 0 ;
virtual HRESULT __stdcall CopyCaptureFile(wchar_t * lpwstrOld, wchar_t * lpwstrNew, int fAllowEscAbort
, _di_IAMCopyCaptureFileProgress pCallback) = 0 ;
};
__interface ICaptureGraphBuilder2;
typedef System::DelphiInterface<ICaptureGraphBuilder2> _di_ICaptureGraphBuilder2;
__interface ICaptureGraphBuilder2 : public IUnknown /* __guid="{93E5A4E0-2D50-11D2-ABFA-00A0C9C6E38D}" */
{
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, wchar_t * 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, _di_IUnknown 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(wchar_t * lpstr, __int64 dwlSize) = 0 ;
virtual HRESULT __stdcall CopyCaptureFile(wchar_t * lpwstrOld, wchar_t * lpwstrNew, int fAllowEscAbort
, _di_IAMCopyCaptureFileProgress pCallback) = 0 ;
virtual HRESULT __stdcall FindPin(_di_IUnknown pSource, TPin_Direction pindir, void * pCategory, void *
pType, BOOL fUnconnected, int num, /* out */ _di_IPin &ppPin) = 0 ;
};
__interface IEnumPins : public IUnknown /* __guid="{56A86892-0AD4-11CE-B03A-0020AF0BA770}" */
{
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
{
wchar_t achName[128];
_di_IFilterGraph pGraph;
} ;
#pragma pack(pop)
typedef int HSEMAPHORE;
__interface IReferenceClock : public IUnknown /* __guid="{56A86897-0AD4-11CE-B03A-0020AF0BA770}" */
{
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 IBasicVideo : public IDispatch /* __guid="{56A868B5-0AD4-11CE-B03A-0020AF0BA770}" */
{
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 IMediaSeeking : public IUnknown /* __guid="{36B73880-C2C8-11CF-8B46-00805F6CEF60}" */
{
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 IMediaControl : public IDispatch /* __guid="{56A868B1-0AD4-11CE-B03A-0020AF0BA770}" */
{
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 ISampleGrabberCB : public IUnknown /* __guid="{0579154A-2B53-4994-B0D0-E773148EFF85}" */
{
public:
virtual HRESULT __stdcall SampleCB(double SampleTime, void * pSample) = 0 ;
virtual HRESULT __stdcall BufferCB(double SampleTime, void * pBuffer, int BufferLen) = 0 ;
};
__interface ISampleGrabber;
typedef System::DelphiInterface<ISampleGrabber> _di_ISampleGrabber;
__interface ISampleGrabber : public IUnknown /* __guid="{6B652FFF-11FE-4FCE-92AD-0266B5D7C78F}" */
{
public:
virtual HRESULT __stdcall SetOneShot(BOOL OneShot) = 0 ;
virtual HRESULT __stdcall SetMediaType(TAM_Media_Type &pType) = 0 ;
virtual HRESULT __stdcall GetConnectedMediaType(/* out */ TAM_Media_Type &pType) = 0 ;
virtual HRESULT __stdcall SetBufferSamples(BOOL BufferThem) = 0 ;
virtual HRESULT __stdcall GetCurrentBuffer(int &pBufferSize, void * pBuffer) = 0 ;
virtual HRESULT __stdcall GetCurrentSample(/* out */ void * &ppSample) = 0 ;
virtual HRESULT __stdcall SetCallback(_di_ISampleGrabberCB pCallback, int WhichMethodToCallback) = 0
;
};
typedef int ReadyStateConstants;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -