1 #ifndef WINE_DSHOW_SAMPLE_H
2 #define WINE_DSHOW_SAMPLE_H
5 implements CMemMediaSample.
7 - At least, the following interfaces should be implemented:
9 IUnknown - IMediaSample - IMediaSample2
12 typedef struct CMemMediaSample
14 ICOM_VFIELD(IMediaSample2);
18 /* IMediaSample2 fields */
19 IMemAllocator* pOwner; /* not addref-ed. */
20 BOOL fMediaTimeIsValid;
21 LONGLONG llMediaTimeStart;
22 LONGLONG llMediaTimeEnd;
23 AM_SAMPLE2_PROPERTIES prop;
27 HRESULT QUARTZ_CreateMemMediaSample(
28 BYTE* pbData, DWORD dwDataLength,
29 IMemAllocator* pOwner,
30 CMemMediaSample** ppSample );
31 void QUARTZ_DestroyMemMediaSample(
32 CMemMediaSample* pSample );
35 HRESULT QUARTZ_IMediaSample_GetProperties(
36 IMediaSample* pSample,
37 AM_SAMPLE2_PROPERTIES* pProp );
38 HRESULT QUARTZ_IMediaSample_SetProperties(
39 IMediaSample* pSample,
40 const AM_SAMPLE2_PROPERTIES* pProp );
41 HRESULT QUARTZ_IMediaSample_Copy(
42 IMediaSample* pDstSample,
43 IMediaSample* pSrcSample,
48 #endif /* WINE_DSHOW_SAMPLE_H */