1545
|
1 #ifndef DS_CMEDIASAMPLE_H
|
|
2 #define DS_CMEDIASAMPLE_H
|
168
|
3
|
|
4 #include "interfaces.h"
|
|
5 #include "guids.h"
|
1545
|
6
|
|
7 struct CMediaSample: public IMediaSample
|
168
|
8 {
|
|
9 IMemAllocator* all;
|
|
10 int size;
|
|
11 int actual_size;
|
|
12 char* block;
|
1545
|
13 char* own_block;
|
168
|
14 int refcount;
|
|
15 int isPreroll;
|
|
16 int isSyncPoint;
|
|
17 AM_MEDIA_TYPE media_type;
|
|
18 int type_valid;
|
|
19 CMediaSample(IMemAllocator* allocator, long _size);
|
|
20 ~CMediaSample();
|
1545
|
21 void SetPointer(char* pointer) { block = pointer; }
|
|
22 void ResetPointer() { block = own_block; }
|
|
23 };
|
168
|
24
|
1545
|
25 #endif /* DS_CMEDIASAMPLE_H */
|