2 * Copyright (C) Hidenori TAKESHIMA
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.
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.
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
19 #ifndef WINE_DSHOW_SAMPLE_H
20 #define WINE_DSHOW_SAMPLE_H
23 implements CMemMediaSample.
25 - At least, the following interfaces should be implemented:
27 IUnknown - IMediaSample - IMediaSample2
30 typedef struct CMemMediaSample
32 ICOM_VFIELD(IMediaSample2
);
36 /* IMediaSample2 fields */
37 IMemAllocator
* pOwner
; /* not addref-ed. */
38 BOOL fMediaTimeIsValid
;
39 LONGLONG llMediaTimeStart
;
40 LONGLONG llMediaTimeEnd
;
41 AM_SAMPLE2_PROPERTIES prop
;
45 HRESULT
QUARTZ_CreateMemMediaSample(
46 BYTE
* pbData
, DWORD dwDataLength
,
47 IMemAllocator
* pOwner
,
48 CMemMediaSample
** ppSample
);
49 void QUARTZ_DestroyMemMediaSample(
50 CMemMediaSample
* pSample
);
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
,
66 #endif /* WINE_DSHOW_SAMPLE_H */