annotate loader/dshow/allocator.h @ 4206:bb7dc35902ff

XviD added
author arpi
date Thu, 17 Jan 2002 00:55:07 +0000
parents 623cdb771e97
children 174e2a58b4cd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
1 #ifndef DS_ALLOCATOR_H
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
2 #define DS_ALLOCATOR_H
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
3
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
4 #include "interfaces.h"
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
5 #include "cmediasample.h"
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
6
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
7 typedef struct avm_list_t
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
8 {
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
9 struct avm_list_t* next;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
10 struct avm_list_t* prev;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
11 void* member;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
12 } avm_list_t;
713
9355b2ae634e avifile-0.6-CVS merge
arpi_esp
parents: 168
diff changeset
13
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
14 typedef struct _MemAllocator MemAllocator;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
15 struct _MemAllocator
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
16 {
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
17 IMemAllocator_vt* vt;
3130
623cdb771e97 avifile sync. seems to some bugs fixed...
arpi
parents: 3056
diff changeset
18 DECLARE_IUNKNOWN();
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
19 ALLOCATOR_PROPERTIES props;
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
20 avm_list_t* used_list;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
21 avm_list_t* free_list;
713
9355b2ae634e avifile-0.6-CVS merge
arpi_esp
parents: 168
diff changeset
22 char* new_pointer;
9355b2ae634e avifile-0.6-CVS merge
arpi_esp
parents: 168
diff changeset
23 CMediaSample* modified_sample;
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
24 GUID interfaces[2];
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
25
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
26 void ( *SetPointer )(MemAllocator* This, char* pointer);
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
27 void ( *ResetPointer )(MemAllocator* This);
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
28 };
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
29
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
30 MemAllocator* MemAllocatorCreate();
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
31
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 713
diff changeset
32 #endif /* DS_ALLOCATOR_H */