xine-lib: xine-lib-1.2.12/src/libw32dll/DirectShow/allocator.h Source File

xine-lib 1.2.12

allocator.h
Go to the documentation of this file.
1#ifndef DS_ALLOCATOR_H
2#define DS_ALLOCATOR_H
3
4#include "interfaces.h"
5#include "cmediasample.h"
6
7 typedef struct _avm_list_t avm_list_t;
8 typedef struct _MemAllocator MemAllocator;
9
10 struct _MemAllocator
11{
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];
20
21 void ( *SetPointer )(MemAllocator* This, char* pointer);
22 void ( *ResetPointer )(MemAllocator* This);
23};
24
25 MemAllocator* MemAllocatorCreate(void);
26
27#endif /* DS_ALLOCATOR_H */
MemAllocatorCreate
MemAllocator * MemAllocatorCreate(void)
Definition: allocator.c:300
cmediasample.h
interfaces.h
DECLARE_IUNKNOWN
#define DECLARE_IUNKNOWN()
Definition: iunk.h:11
IMemAllocator_vt
Definition: interfaces.h:220
_AllocatorProperties
Definition: interfaces.h:34
_CMediaSample
Definition: cmediasample.h:9
_MemAllocator
Definition: allocator.h:11
_MemAllocator::used_list
avm_list_t * used_list
Definition: allocator.h:15
_MemAllocator::vt
IMemAllocator_vt * vt
Definition: allocator.h:12
_MemAllocator::SetPointer
void(* SetPointer)(MemAllocator *This, char *pointer)
Definition: allocator.h:21
_MemAllocator::props
ALLOCATOR_PROPERTIES props
Definition: allocator.h:14
_MemAllocator::ResetPointer
void(* ResetPointer)(MemAllocator *This)
Definition: allocator.h:22
_MemAllocator::new_pointer
char * new_pointer
Definition: allocator.h:17
_MemAllocator::modified_sample
CMediaSample * modified_sample
Definition: allocator.h:18
_MemAllocator::interfaces
GUID interfaces[2]
Definition: allocator.h:19
_MemAllocator::free_list
avm_list_t * free_list
Definition: allocator.h:16
_avm_list_t
Definition: allocator.c:10