From 45287b2c2b9213d7bcfe443125e2aae6ef5a22dc Mon Sep 17 00:00:00 2001 From: voroshil Date: Sat, 13 Oct 2007 17:14:39 +0000 Subject: DirectShow based tv:// driver for win32 Teletext is also supported (but 625 system parameters are hardcoded). pthreads is required for teletext. Code is still experimental. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24772 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tv.h | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'stream/tv.h') diff --git a/stream/tv.h b/stream/tv.h index ff04a901d3..acd78f108f 100644 --- a/stream/tv.h +++ b/stream/tv.h @@ -11,7 +11,7 @@ typedef struct tv_param_s { char *chanlist; char *norm; int automute; -#ifdef HAVE_TV_V4L2 +#if defined(HAVE_TV_V4L2) || defined(HAVE_TV_DSHOW) int normid; #endif char *device; @@ -26,15 +26,18 @@ typedef struct tv_param_s { int immediate; int audiorate; int audio_id; -#if defined(HAVE_TV_V4L) +#if defined(HAVE_TV_V4L) || defined(HAVE_TV_DSHOW) int amode; int volume; +#if defined(HAVE_TV_V4L) int bass; int treble; int balance; int forcechan; int force_audio; +#endif int buffer_size; +#if defined(HAVE_TV_V4L) int mjpeg; int decimation; int quality; @@ -43,6 +46,7 @@ typedef struct tv_param_s { #endif #endif char* adevice; +#endif int brightness; int contrast; int hue; @@ -56,6 +60,35 @@ typedef struct tv_param_s { int scan; int scan_threshold; float scan_period; + +#ifdef HAVE_TV_DSHOW + /** + Terminate stream with video renderer instead of Null renderer + Will help if video freezes but audio does not. + May not work with -vo directx and -vf crop combination. + */ + int hidden_video_renderer; + /** + For VIVO cards VP pin have to be rendered too. + This tweak will cause VidePort pin stream to be terminated with video renderer + instead of removing it from graph. + Use if your card have vp pin and video is still choppy. + May not work with -vo directx and -vf crop combination. + */ + int hidden_vp_renderer; + /** + Use system clock as sync source instead of default graph clock (usually the clock + from one of live sources in graph. + */ + int system_clock; + /** + Some audio cards creates audio chunks with about 0.5 sec size. + This can cause choppy video when using mplayer with immediatemode=0 + Use followingtweak to decrease audio chunk sizes. + It will create audio chunks with time length equal to one video frame time. + */ + int normalize_audio_chunks; +#endif } tv_param_t; extern tv_param_t stream_tv_defaults; -- cgit v1.2.3