summaryrefslogtreecommitdiff
path: root/src/libw32dll/DirectShow/allocator.h
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2001-11-11 23:32:25 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2001-11-11 23:32:25 +0000
commit675ca3309d98e4257a606e9daed11f7bad8cdca0 (patch)
treefd6cb641e235a3514cfba1d938e46b84ac708d9f /src/libw32dll/DirectShow/allocator.h
parent2407730277bb538b84405d7fde13756de95b9286 (diff)
downloadxine-lib-675ca3309d98e4257a606e9daed11f7bad8cdca0.tar.gz
xine-lib-675ca3309d98e4257a606e9daed11f7bad8cdca0.tar.bz2
initial import of DirectShow support files. Most of hard work was done
(converting all c++ files to c) and DS_Audio codecs are already producing some (weird) sound from my local tree. I hope to commit it soon... CVS patchset: 1022 CVS date: 2001/11/11 23:32:25
Diffstat (limited to 'src/libw32dll/DirectShow/allocator.h')
-rw-r--r--src/libw32dll/DirectShow/allocator.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/libw32dll/DirectShow/allocator.h b/src/libw32dll/DirectShow/allocator.h
new file mode 100644
index 000000000..1d37dd920
--- /dev/null
+++ b/src/libw32dll/DirectShow/allocator.h
@@ -0,0 +1,51 @@
+#ifndef DS_ALLOCATOR_H
+#define DS_ALLOCATOR_H
+
+/*
+#ifndef NOAVIFILE_HEADERS
+#include "default.h"
+#else
+#include "../wine/libwin32.h"
+#endif
+*/
+
+#include "interfaces.h"
+#include "cmediasample.h"
+#include "iunk.h"
+
+typedef struct _CMediaSample_vector
+{
+ CMediaSample** m_Type;
+ int m_uiSize;
+ int m_uiAlloc;
+} CMediaSample_vector;
+
+typedef struct _MemAllocator
+{
+ IMemAllocator_vt *vt;
+
+ ALLOCATOR_PROPERTIES props;
+
+ CMediaSample_vector * used_list;
+ CMediaSample_vector * free_list;
+
+ char* new_pointer;
+ CMediaSample* modified_sample;
+ GUID interfaces[2];
+ DECLARE_IUNKNOWN(MemAllocator);
+
+ /*
+ MemAllocator();
+ ~MemAllocator();
+ static long CreateAllocator(GUID* clsid, GUID* iid, void** ppv);
+ */
+} MemAllocator;
+
+MemAllocator * MemAllocator_Create();
+void MemAllocator_Destroy(MemAllocator *this);
+
+long MemAllocator_CreateAllocator(GUID* clsid, GUID* iid, void** ppv);
+void MemAllocator_SetPointer(MemAllocator*this, char* pointer);
+void MemAllocator_ResetPointer(MemAllocator*this);
+
+#endif /* DS_ALLOCATOR_H */