summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/dshow/gstdshowfakesrc.h
diff options
context:
space:
mode:
authorJulien Isorce <julien.isorce@gmail.com>2009-07-21 10:49:37 +0200
committerJulien Isorce <julien.isorce@gmail.com>2009-07-21 10:49:37 +0200
commit30469d45c0a9e3f6f0aa361ef0008e313fd07b3f (patch)
tree515bffbe13c5e606db9e92b35bf19694df7456eb /gst-libs/gst/dshow/gstdshowfakesrc.h
parentaf54a9afbad27627216e0b2b1f0a7553c8b18ea6 (diff)
downloadgst-plugins-bad-30469d45c0a9e3f6f0aa361ef0008e313fd07b3f.tar.gz
gst-plugins-bad-30469d45c0a9e3f6f0aa361ef0008e313fd07b3f.tar.bz2
gst-plugins-bad-30469d45c0a9e3f6f0aa361ef0008e313fd07b3f.zip
start refactoring of dshowsrcwrapper
-remove gst-libs/gst/dshow -fakesource is moved from gst-libs/gst/dshow to sys/dshowsrcwrapper -some minor changes (C/C++ check and includes) to make the plugin compile again.
Diffstat (limited to 'gst-libs/gst/dshow/gstdshowfakesrc.h')
-rw-r--r--gst-libs/gst/dshow/gstdshowfakesrc.h72
1 files changed, 0 insertions, 72 deletions
diff --git a/gst-libs/gst/dshow/gstdshowfakesrc.h b/gst-libs/gst/dshow/gstdshowfakesrc.h
deleted file mode 100644
index 06884313..00000000
--- a/gst-libs/gst/dshow/gstdshowfakesrc.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/* GStreamer
- * Copyright (C) 2007 Sebastien Moutte <sebastien@moutte.net>
- *
- * gstdshowfakesrc.h:
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-#include "gstdshowinterface.h"
-#include <gst/gst.h>
-
-class CDshowFakeOutputPin : public CBaseOutputPin
-{
-protected:
-/* members */
- HRESULT m_hres;
- CMediaType m_MediaType;
- unsigned int m_SampleSize;
-
-public:
-/* methods */
- CDshowFakeOutputPin (CBaseFilter *pFilter, CCritSec *sec);
- ~CDshowFakeOutputPin ();
-
- virtual HRESULT CheckMediaType(const CMediaType *pmt);
- HRESULT GetMediaType(int iPosition, CMediaType *pMediaType);
- virtual HRESULT DecideBufferSize (IMemAllocator *pAlloc, ALLOCATOR_PROPERTIES *ppropInputRequest);
- STDMETHOD (SetMediaType) (AM_MEDIA_TYPE *pmt);
- STDMETHOD (PushBuffer) (byte *buffer, __int64 start, __int64 stop, unsigned int size, bool discount);
- STDMETHOD (Flush) ();
- STDMETHOD (SetSampleSize) (unsigned int size);
-};
-
-class CDshowFakeSrc : public CBaseFilter,
- public IGstDshowInterface
-{
-public:
-/* members */
- CDshowFakeOutputPin *m_pOutputPin;
-
-/* methods */
- CDshowFakeSrc ();
- virtual ~CDshowFakeSrc ();
-
- static CUnknown * WINAPI CreateInstance (LPUNKNOWN pUnk, HRESULT *pHr);
-
- virtual int GetPinCount();
- virtual CBasePin *GetPin(int n);
-
- STDMETHOD (QueryInterface)(REFIID riid, void **ppvObject);
- ULONG STDMETHODCALLTYPE AddRef();
- ULONG STDMETHODCALLTYPE Release();
-
- STDMETHOD (gst_set_media_type) (AM_MEDIA_TYPE *pmt);
- STDMETHOD (gst_set_buffer_callback) (push_buffer_func push, byte *data);
- STDMETHOD (gst_push_buffer) (byte *buffer, __int64 start, __int64 stop, unsigned int size, bool discount);
- STDMETHOD (gst_flush) ();
- STDMETHOD (gst_set_sample_size) (unsigned int size);
-}; \ No newline at end of file