summaryrefslogtreecommitdiffstats
path: root/loader/dshow/outputpin.h
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-21 19:12:39 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-21 19:12:39 +0000
commit6e718683eb5125bd8f41926a3c3acb5c68948f10 (patch)
treeedd9cd90f0d2881c4e53b3875ec31a867a7ae0e9 /loader/dshow/outputpin.h
parentd1abb9c4b3280dc3592470f3bda83aaecc240c97 (diff)
downloadmpv-6e718683eb5125bd8f41926a3c3acb5c68948f10.tar.bz2
mpv-6e718683eb5125bd8f41926a3c3acb5c68948f10.tar.xz
C++ -> C (import from avifile cvs)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3057 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/outputpin.h')
-rw-r--r--loader/dshow/outputpin.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/loader/dshow/outputpin.h b/loader/dshow/outputpin.h
index 7cedd7dfed..47ef9f43ef 100644
--- a/loader/dshow/outputpin.h
+++ b/loader/dshow/outputpin.h
@@ -3,35 +3,33 @@
/* "output pin" - the one that connects to output of filter. */
-#include "interfaces.h"
-#include "guids.h"
#include "allocator.h"
-struct COutputPin;
+typedef struct _COutputPin COutputPin;
-struct COutputMemPin : public IMemInputPin
+typedef struct _COutputMemPin COutputMemPin;
+struct _COutputMemPin
{
+ IMemInputPin_vt* vt;
char** frame_pointer;
long* frame_size_pointer;
MemAllocator* pAllocator;
COutputPin* parent;
};
-struct COutputPin : public IPin
+struct _COutputPin
{
+ IPin_vt* vt;
COutputMemPin* mempin;
int refcount;
AM_MEDIA_TYPE type;
IPin* remote;
- COutputPin(const AM_MEDIA_TYPE& vhdr);
- ~COutputPin();
- void SetFramePointer(char** z) { mempin->frame_pointer = z; }
- void SetPointer2(char* p) {
- if (mempin->pAllocator)
- mempin->pAllocator->SetPointer(p);
- }
- void SetFrameSizePointer(long* z) { mempin->frame_size_pointer = z; }
- void SetNewFormat(const AM_MEDIA_TYPE& a) { type = a; }
+ void ( *SetFramePointer )(COutputPin*, char** z);
+ void ( *SetPointer2 )(COutputPin*, char* p);
+ void ( *SetFrameSizePointer )(COutputPin*, long* z);
+ void ( *SetNewFormat )(COutputPin*, const AM_MEDIA_TYPE* a);
};
+COutputPin* COutputPinCreate(const AM_MEDIA_TYPE* vhdr);
+
#endif /* DS_OUTPUTPIN_H */