Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2525 | - | 1 | /////////////////////////////////////////////////////////////////////////////////// |
2 | |||
3 | #ifndef __qedit_h__ |
||
4 | #define __qedit_h__ |
||
5 | |||
6 | /////////////////////////////////////////////////////////////////////////////////// |
||
7 | |||
8 | #pragma once |
||
9 | |||
10 | /////////////////////////////////////////////////////////////////////////////////// |
||
11 | |||
12 | interface |
||
13 | ISampleGrabberCB |
||
14 | : |
||
15 | public IUnknown |
||
16 | { |
||
17 | virtual STDMETHODIMP SampleCB( double SampleTime, IMediaSample *pSample ) = 0; |
||
18 | virtual STDMETHODIMP BufferCB( double SampleTime, BYTE *pBuffer, long BufferLen ) = 0; |
||
19 | }; |
||
20 | |||
21 | /////////////////////////////////////////////////////////////////////////////////// |
||
22 | |||
23 | static |
||
24 | const |
||
25 | IID IID_ISampleGrabberCB = { 0x0579154A, 0x2B53, 0x4994, { 0xB0, 0xD0, 0xE7, 0x73, 0x14, 0x8E, 0xFF, 0x85 } }; |
||
26 | |||
27 | /////////////////////////////////////////////////////////////////////////////////// |
||
28 | |||
29 | interface |
||
30 | ISampleGrabber |
||
31 | : |
||
32 | public IUnknown |
||
33 | { |
||
34 | virtual HRESULT STDMETHODCALLTYPE SetOneShot( BOOL OneShot ) = 0; |
||
35 | virtual HRESULT STDMETHODCALLTYPE SetMediaType( const AM_MEDIA_TYPE *pType ) = 0; |
||
36 | virtual HRESULT STDMETHODCALLTYPE GetConnectedMediaType( AM_MEDIA_TYPE *pType ) = 0; |
||
37 | virtual HRESULT STDMETHODCALLTYPE SetBufferSamples( BOOL BufferThem ) = 0; |
||
38 | virtual HRESULT STDMETHODCALLTYPE GetCurrentBuffer( long *pBufferSize, long *pBuffer ) = 0; |
||
39 | virtual HRESULT STDMETHODCALLTYPE GetCurrentSample( IMediaSample **ppSample ) = 0; |
||
40 | virtual HRESULT STDMETHODCALLTYPE SetCallback( ISampleGrabberCB *pCallback, long WhichMethodToCallback ) = 0; |
||
41 | }; |
||
42 | |||
43 | /////////////////////////////////////////////////////////////////////////////////// |
||
44 | |||
45 | static |
||
46 | const |
||
47 | IID IID_ISampleGrabber = { 0x6B652FFF, 0x11FE, 0x4fce, { 0x92, 0xAD, 0x02, 0x66, 0xB5, 0xD7, 0xC7, 0x8F } }; |
||
48 | |||
49 | /////////////////////////////////////////////////////////////////////////////////// |
||
50 | |||
51 | static |
||
52 | const |
||
53 | CLSID CLSID_SampleGrabber = { 0xC1F400A0, 0x3F08, 0x11d3, { 0x9F, 0x0B, 0x00, 0x60, 0x08, 0x03, 0x9E, 0x37 } }; |
||
54 | |||
55 | /////////////////////////////////////////////////////////////////////////////////// |
||
56 | |||
57 | static |
||
58 | const |
||
59 | CLSID CLSID_NullRenderer = { 0xC1F400A4, 0x3F08, 0x11d3, { 0x9F, 0x0B, 0x00, 0x60, 0x08, 0x03, 0x9E, 0x37 } }; |
||
60 | |||
61 | /////////////////////////////////////////////////////////////////////////////////// |
||
62 | |||
63 | static |
||
64 | const |
||
65 | CLSID CLSID_VideoEffects1Category = { 0xcc7bfb42, 0xf175, 0x11d1, { 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59 } }; |
||
66 | |||
67 | /////////////////////////////////////////////////////////////////////////////////// |
||
68 | |||
69 | static |
||
70 | const |
||
71 | CLSID CLSID_VideoEffects2Category = { 0xcc7bfb43, 0xf175, 0x11d1, { 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59 } }; |
||
72 | |||
73 | /////////////////////////////////////////////////////////////////////////////////// |
||
74 | |||
75 | static |
||
76 | const |
||
77 | CLSID CLSID_AudioEffects1Category = { 0xcc7bfb44, 0xf175, 0x11d1, { 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59 } }; |
||
78 | |||
79 | /////////////////////////////////////////////////////////////////////////////////// |
||
80 | |||
81 | static |
||
82 | const |
||
83 | CLSID CLSID_AudioEffects2Category = { 0xcc7bfb45, 0xf175, 0x11d1, { 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59 } }; |
||
84 | |||
85 | /////////////////////////////////////////////////////////////////////////////////// |
||
86 | |||
87 | #endif |
||
88 | |||
89 | /////////////////////////////////////////////////////////////////////////////////// |