1545
|
1 #ifndef DS_CMEDIASAMPLE_H
|
|
2 #define DS_CMEDIASAMPLE_H
|
168
|
3
|
|
4 #include "interfaces.h"
|
|
5 #include "guids.h"
|
1545
|
6
|
3056
|
7 typedef struct _CMediaSample CMediaSample;
|
|
8 struct _CMediaSample
|
168
|
9 {
|
3056
|
10 IMediaSample_vt* vt;
|
3130
|
11 DECLARE_IUNKNOWN();
|
168
|
12 IMemAllocator* all;
|
|
13 int size;
|
|
14 int actual_size;
|
|
15 char* block;
|
1545
|
16 char* own_block;
|
168
|
17 int isPreroll;
|
|
18 int isSyncPoint;
|
3467
|
19 int isDiscontinuity;
|
|
20 LONGLONG time_start;
|
|
21 LONGLONG time_end;
|
168
|
22 AM_MEDIA_TYPE media_type;
|
|
23 int type_valid;
|
3467
|
24 void ( *SetPointer) (CMediaSample* This, char* pointer);
|
3056
|
25 void ( *ResetPointer) (CMediaSample* This); // FIXME replace with Set & 0
|
1545
|
26 };
|
168
|
27
|
3056
|
28 CMediaSample* CMediaSampleCreate(IMemAllocator* allocator, int _size);
|
|
29 // called from allocator
|
|
30 void CMediaSample_Destroy(CMediaSample* This);
|
|
31
|
1545
|
32 #endif /* DS_CMEDIASAMPLE_H */
|