Added some stubs.
[wine] / dlls / quartz / sample.h
1 /*
2  * Copyright (C) Hidenori TAKESHIMA
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef WINE_DSHOW_SAMPLE_H
20 #define WINE_DSHOW_SAMPLE_H
21
22 /*
23                 implements CMemMediaSample.
24
25         - At least, the following interfaces should be implemented:
26
27         IUnknown - IMediaSample - IMediaSample2
28  */
29
30 typedef struct CMemMediaSample
31 {
32         ICOM_VFIELD(IMediaSample2);
33
34         /* IUnknown fields */
35         ULONG   ref;
36         /* IMediaSample2 fields */
37         IMemAllocator*  pOwner; /* not addref-ed. */
38         BOOL    fMediaTimeIsValid;
39         LONGLONG        llMediaTimeStart;
40         LONGLONG        llMediaTimeEnd;
41         AM_SAMPLE2_PROPERTIES   prop;
42 } CMemMediaSample;
43
44
45 HRESULT QUARTZ_CreateMemMediaSample(
46         BYTE* pbData, DWORD dwDataLength,
47         IMemAllocator* pOwner,
48         CMemMediaSample** ppSample );
49 void QUARTZ_DestroyMemMediaSample(
50         CMemMediaSample* pSample );
51
52
53 HRESULT QUARTZ_IMediaSample_GetProperties(
54         IMediaSample* pSample,
55         AM_SAMPLE2_PROPERTIES* pProp );
56 HRESULT QUARTZ_IMediaSample_SetProperties(
57         IMediaSample* pSample,
58         const AM_SAMPLE2_PROPERTIES* pProp );
59 HRESULT QUARTZ_IMediaSample_Copy(
60         IMediaSample* pDstSample,
61         IMediaSample* pSrcSample,
62         BOOL bCopyData );
63
64
65
66 #endif  /* WINE_DSHOW_SAMPLE_H */