From 675ca3309d98e4257a606e9daed11f7bad8cdca0 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sun, 11 Nov 2001 23:32:25 +0000 Subject: 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 --- src/libw32dll/DirectShow/cmediasample.h | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/libw32dll/DirectShow/cmediasample.h (limited to 'src/libw32dll/DirectShow/cmediasample.h') diff --git a/src/libw32dll/DirectShow/cmediasample.h b/src/libw32dll/DirectShow/cmediasample.h new file mode 100644 index 000000000..061566cc1 --- /dev/null +++ b/src/libw32dll/DirectShow/cmediasample.h @@ -0,0 +1,34 @@ +#ifndef DS_CMEDIASAMPLE_H +#define DS_CMEDIASAMPLE_H + +#include "interfaces.h" +#include "guids.h" + +typedef struct _CMediaSample +{ + IMediaSample_vt *vt; + + IMemAllocator* all; + int size; + int actual_size; + char* block; + char* own_block; + int refcount; + int isPreroll; + int isSyncPoint; + AM_MEDIA_TYPE media_type; + int type_valid; + + /* + CMediaSample(IMemAllocator* allocator, long _size); + ~CMediaSample(); + */ + + void (*SetPointer)(struct _CMediaSample *this, char* pointer); + void (*ResetPointer)(struct _CMediaSample *this); +} CMediaSample; + +CMediaSample * CMediaSample_Create(IMemAllocator* allocator, long _size); +void CMediaSample_Destroy(CMediaSample *this); + +#endif /* DS_CMEDIASAMPLE_H */ -- cgit v1.2.3