diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-19 16:26:58 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-19 16:26:58 +0000 |
commit | 9a1bfa7ec1ef32e1ab316024e93fc6f8f059ce87 (patch) | |
tree | 1dead2dd55c536e477d6470b99a3fa490527cad9 /libmpdemux/tv.c | |
parent | 391a1c6e729774f965673844fb593a56c55c902e (diff) | |
download | mpv-9a1bfa7ec1ef32e1ab316024e93fc6f8f059ce87.tar.bz2 mpv-9a1bfa7ec1ef32e1ab316024e93fc6f8f059ce87.tar.xz |
hardware mjpeg encoding using v4l by Iván Szántó <szivan@freemail.hu>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9621 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/tv.c')
-rw-r--r-- | libmpdemux/tv.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libmpdemux/tv.c b/libmpdemux/tv.c index a4b5404597..2f4681f205 100644 --- a/libmpdemux/tv.c +++ b/libmpdemux/tv.c @@ -63,6 +63,9 @@ int tv_param_balance = -1; int tv_param_forcechan = -1; int tv_param_force_audio = 0; int tv_param_buffer_size = -1; +int tv_param_mjpeg = 0; +int tv_param_decimation = 2; +int tv_param_quality = 90; #ifdef HAVE_ALSA9 int tv_param_alsa = 0; #endif @@ -179,6 +182,27 @@ static int open_tv(tvi_handle_t *tvh) return 0; } + +#ifdef HAVE_TV_V4L + if ( tv_param_mjpeg ) + { + /* set width to expected value */ + if (tv_param_width == -1) + { + tv_param_width = 704/tv_param_decimation; + } + if (tv_param_height == -1) + { + if ( tvh->norm != TV_NORM_NTSC ) + tv_param_height = 576/tv_param_decimation; + else + tv_param_height = 480/tv_param_decimation; + } + mp_msg(MSGT_TV, MSGL_INFO, + " MJP: width %d height %d\n", tv_param_width, tv_param_height); + } +#endif + /* limits on w&h are norm-dependent -- JM */ /* set width */ if (tv_param_width != -1) |