forked from markessien/DirectEncode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMPEGFilterInterface.h
73 lines (57 loc) · 2.75 KB
/
MPEGFilterInterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/** This file is part of The Standard Mpeg Encoder.
The Standard Mpeg Encoder is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
The Standard Mpeg Encoder is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with The Standard Mpeg Encoder.
If not, see <http://www.gnu.org/licenses/>.
**/
// MPEGFilterInterface.h: interface for the CMPEGFilterInterface class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MPEGFILTERINTERFACE_H__385FE1A1_9A58_40FE_BEAB_085711A93D4D__INCLUDED_)
#define AFX_MPEGFILTERINTERFACE_H__385FE1A1_9A58_40FE_BEAB_085711A93D4D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "mpeginputpin.h"
#include "mpegobj.h"
class CMPEGFilterInterface : public CUnknown,
public IStandardMpegEncoder,
public IStandardMpegEncoderStats
{
public:
DECLARE_IUNKNOWN
CMPEGFilterInterface();
virtual ~CMPEGFilterInterface();
// mpegenc
STDMETHODIMP GetProfile(SystemsOutputFormat systemsFormat, Constraint constraint, IStandardMpegEncoderProfile** pProfile);
STDMETHODIMP GetSelectedProfile(IStandardMpegEncoderProfile** pProfile);
STDMETHODIMP SelectProfile(IStandardMpegEncoderProfile* pProfile);
STDMETHODIMP SelectFormat(SystemsOutputFormat systemsFormat, Constraint constraint);
STDMETHODIMP SetFilterLicenseKey(BSTR strLicense);
STDMETHODIMP SaveSettings(BSTR strKey);
STDMETHODIMP LoadSettings(BSTR strKey);
STDMETHODIMP PassThruCmd(BSTR strCmd, long nCmd, double dCmd, BYTE* pCmd);
STDMETHODIMP SetErrorBoxDisplay(BOOL bVal);
STDMETHODIMP SetPass(long n);
STDMETHODIMP SetSourceFramerate(double dSourceFramerate, double * dRequiredInputFramerate);
STDMETHODIMP ActivateAudioVideoOutputPins(BOOL bVal);
STDMETHODIMP GetAudioVideoOutputPinsActivated(BOOL* bVal);
STDMETHODIMP EnableFramerateCorrection(BOOL bCorrectVideo, BOOL bCorrectAudio);
// stats
STDMETHODIMP GetFramesEncoded(long * pllFramesEncoded);
STDMETHODIMP GetWrittenBytes(long * pllBytesWritten);
STDMETHODIMP GetStatusString(BSTR* strValue);
STDMETHODIMP GetVideoFramesDropped(long * lFramesDropped);
STDMETHODIMP GetAudioTimeCorrected(double * dTimeCorrected);
// helper
bool IsFrameRateSupported(double dFPS);
CMPEGObj* m_pObj;
};
#endif // !defined(AFX_MPEGFILTERINTERFACE_H__385FE1A1_9A58_40FE_BEAB_085711A93D4D__INCLUDED_)