summaryrefslogtreecommitdiffstats
path: root/loader/dshow/DS_Filter.h
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-02 18:52:10 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-02 18:52:10 +0000
commite9e53f8cd0704adcab13ae9fee616b4f8f54dfdf (patch)
treef0f01081985a6b297b15ab318ca31fb087885033 /loader/dshow/DS_Filter.h
parent5c927f23672550e2d3f15aaced60c7bec51da1f9 (diff)
downloadmpv-e9e53f8cd0704adcab13ae9fee616b4f8f54dfdf.tar.bz2
mpv-e9e53f8cd0704adcab13ae9fee616b4f8f54dfdf.tar.xz
Rework of copying samples from directshow codecs.
Using callback function provided by filter to store and process samples from codec instead of explicit typecast to DS_Filter. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22416 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/DS_Filter.h')
-rw-r--r--loader/dshow/DS_Filter.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/loader/dshow/DS_Filter.h b/loader/dshow/DS_Filter.h
index 909217602b..6fb643dc67 100644
--- a/loader/dshow/DS_Filter.h
+++ b/loader/dshow/DS_Filter.h
@@ -8,6 +8,11 @@
extern "C" {
#endif
+typedef struct {
+ char* frame_pointer;
+ long frame_size;
+} SampleProcUserData;
+
/**
User will allocate and fill format structures, call Create(),
and then set up m_pAll.
@@ -35,7 +40,7 @@ struct _DS_Filter
};
DS_Filter* DS_FilterCreate(const char* dllname, const GUID* id,
- AM_MEDIA_TYPE* in_fmt, AM_MEDIA_TYPE* out_fmt);
+ AM_MEDIA_TYPE* in_fmt, AM_MEDIA_TYPE* out_fmt,SampleProcUserData* pUserData);
void DS_Filter_Destroy(DS_Filter* This);
#if defined(__cplusplus)