gl_common: minor cleanup/refactor
[mplayer.git] / loader / dshow / allocator.h
blob71597b3634dea02895b2f31148adb7072975b54f
1 #ifndef MPLAYER_ALLOCATOR_H
2 #define MPLAYER_ALLOCATOR_H
4 #include "interfaces.h"
5 #include "cmediasample.h"
7 typedef struct avm_list_t avm_list_t;
8 typedef struct MemAllocator MemAllocator;
10 struct MemAllocator
12 IMemAllocator_vt* vt;
13 DECLARE_IUNKNOWN();
14 ALLOCATOR_PROPERTIES props;
15 avm_list_t* used_list;
16 avm_list_t* free_list;
17 char* new_pointer;
18 CMediaSample* modified_sample;
19 GUID interfaces[2];
21 void ( *SetPointer )(MemAllocator* This, char* pointer);
22 void ( *ResetPointer )(MemAllocator* This);
25 MemAllocator* MemAllocatorCreate(void);
27 #endif /* MPLAYER_ALLOCATOR_H */