Mercurial > mplayer.hg
comparison loader/dshow/cmediasample.h @ 713:9355b2ae634e
avifile-0.6-CVS merge
author | arpi_esp |
---|---|
date | Sun, 06 May 2001 21:43:45 +0000 |
parents | bdc4a8fc04d8 |
children | da26060c81ef |
comparison
equal
deleted
inserted
replaced
712:ea093aa3ecae | 713:9355b2ae634e |
---|---|
8 { | 8 { |
9 IMemAllocator* all; | 9 IMemAllocator* all; |
10 int size; | 10 int size; |
11 int actual_size; | 11 int actual_size; |
12 char* block; | 12 char* block; |
13 char* old_block; | |
13 int refcount; | 14 int refcount; |
14 int isPreroll; | 15 int isPreroll; |
15 int isSyncPoint; | 16 int isSyncPoint; |
16 AM_MEDIA_TYPE media_type; | 17 AM_MEDIA_TYPE media_type; |
17 int type_valid; | 18 int type_valid; |
18 public: | 19 public: |
19 CMediaSample(IMemAllocator* allocator, long _size); | 20 CMediaSample(IMemAllocator* allocator, long _size); |
20 ~CMediaSample(); | 21 ~CMediaSample(); |
22 void SetPointer(char* pointer) { old_block=block; block=pointer; } | |
23 void ResetPointer() { block=old_block; old_block=0; } | |
21 | 24 |
22 static long STDCALL QueryInterface ( | 25 static long STDCALL QueryInterface ( |
23 IUnknown * This, | 26 IUnknown * This, |
24 /* [in] */ IID* riid, | 27 /* [in] */ IID* riid, |
25 /* [iid_is][out] */ void **ppvObject); | 28 /* [iid_is][out] */ void **ppvObject); |