summaryrefslogtreecommitdiffstats
path: root/stream/tv.c
Commit message (Collapse)AuthorAgeFilesLines
* libaf: rename af_format.h to format.hwm42012-08-291-1/+1
| | | | | | | | | | af_format.h declares some symbols which are defined in format.c. The fact that af_format.c is a completely unrelated file is rather confusing. Having the header and implementation file use the same base name is more uniform. (af_format.c is the audio conversion filter, while af_format.h and format.c are about audio formats and their properties.) Also fix all source files which include this file.
* tv: reduce code duplicationmplayer-svn2012-08-031-21/+14
| | | | | | | Reduce some code duplication. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34995 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: reimar
* Remove teletext supportwm42012-08-031-17/+0
| | | | | | | | Teletext requires special OSD support. Because I can't even test teletext, I can't restore support for it. Since teletext can be considered ancient and obscure, and since it doesn't make sense to keep the remaining teletext code without being able to use it, I'm removing it.
* stream: remove V4L TV input and V4L radio supportwm42012-08-021-24/+0
| | | | There are V4L2 drivers, and the old V4L stuff seems plain unnecessary.
* demux, vd_ffmpeg: fix demux keyframe flag, set AV_PKT_FLAG_KEYUoti Urpala2012-07-251-2/+2
| | | | | | | | | | | | | | | | | | There was some confusion about the "flags" field in demuxer packets. Demuxers set it to either 1 or 0x10 to indicate a keyframe (and the field was not used to indicate anything else). This didn't cause visible problems because nothing read the value. Replace the "flags" field with a boolean "keyframe" field. Set AV_PKT_FLAG_KEY based on this field in packets fed to libavcodec video decoders (looks like PNG and ZeroCodec are the only ones which depend on values from demuxer; previously this was hardcoded to true for PNG). Make demux_mf set the keyframe field in every packet. This matters for PNG files now that the demuxer flag is forwarded to libavcodec. Fix logic setting the field in demux_mkv. It had probably not been updated when adding SimpleBlock support. This probably makes no difference for any current practical use.
* cleanup: shut up more warningsClément Bœsch2011-05-061-2/+4
|
* cleanup: remove unused MEncoder-related codeClément Bœsch2011-01-251-1/+0
| | | | | Remove some code and variables that were no longer used after MEncoder removal. Also remove some MEncoder references in comments.
* cleanup: don't check for NULL before free()diego2010-11-081-7/+5
| | | | | | patch by Clément Bœsch, ubitux gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32598 b3059339-0415-0410-9bf9-f77b7e298cf2
* stream/tv: move new_handle() function from header to tv.cdiego2010-11-021-0/+25
| | | | | | | Move TV input new_handle static function to tv.c and make it non-static. There is no need to duplicate the function in the binary. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32225 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup: malloc+memset->calloc, sizeof(TYPE)->sizeof(*ptr)reimar2010-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace malloc+memset by calloc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32181 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32182 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32183 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace some sizeof(type) by sizeof(*pointer) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32184 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32186 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32187 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32188 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace sizoef(type) by sizeof(*ptrvar). Besides being consistent with FFmpeg style, this reduces the size of a patch to rename these types to not conflict with the windows.h definitions. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32189 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32191 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32192 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace sizeof(type) by sizeof(*ptrvar) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32193 b3059339-0415-0410-9bf9-f77b7e298cf2 Remove a useless cast. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32194 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace sizeof(type) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32195 b3059339-0415-0410-9bf9-f77b7e298cf2 Remove a useless cast. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32196 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace several sizeof(WAVEFORMATEX) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32197 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace one more instance of sizeof(WAVEFORMATEX); fix compilation. patch by Clément Bœsch, ubitux gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32199 b3059339-0415-0410-9bf9-f77b7e298cf2 Avoid some pointless uses of sizeof() and one related cast. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32200 b3059339-0415-0410-9bf9-f77b7e298cf2 Merge one malloc() + memset() invocation into calloc(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32202 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32203 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace sizeof(WAVEFORMATEX) occurrences. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32205 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace malloc+memset by calloc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32206 b3059339-0415-0410-9bf9-f77b7e298cf2 Replace sizeof(BITMAPINFOHEADER) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32207 b3059339-0415-0410-9bf9-f77b7e298cf2
* stream/tv: move free_handle() from header to tv.cdiego2010-11-021-0/+11
| | | | | | | Move TV input free_handle static function to tv.c and make it non-static. There is no need to duplicate the function in the binary. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32174 b3059339-0415-0410-9bf9-f77b7e298cf2
* Delete things related to old translation systemUoti Urpala2010-03-101-1/+0
| | | | | Remove the help/ subdirectory, configure code to create toplevel help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
* Merge svn changes up to r30475Uoti Urpala2010-03-091-10/+25
|\
| * Add license header to all files missing it in the stream subdirectory.diego2010-01-301-10/+25
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30468 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Restore collapsed whitespace in output messagesUoti Urpala2010-03-071-2/+2
| | | | | | | | | | | | | | | | | | For some reason commit e306174952d42e1cd6cc5efc50ae6bb0410501bc, which replaced translation macro names with the corresponding English strings, also collapsed multiple consecutive space characters into one. Change most of these back. In a couple of cases the amount of whitespace is important for alignment, and for the rest it at least keeps the strings closer to the existing translations.
* | Merge svn changes up to r30301Uoti Urpala2010-01-251-1/+0
|\|
| * Add support for distinguishing between little- and big-endian SPDIF AC3reimar2010-01-111-1/+0
| | | | | | | | | | | | | | and converting between both. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30283 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29912Uoti Urpala2009-11-161-7/+18
|\|
| * Set demuxer->teletext to NULL when closing the TV interface,reimar2009-11-101-0/+1
| | | | | | | | | | | | | | since analog teletext can not (yet) work without the TV interface. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29873 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Separate teletext from tv support.cehoyos2009-11-071-6/+15
| | | | | | | | | | | | | | Path by Francesco Lavra, francescolavra interfree it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29848 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Move teletext specific code from stream into libmpcodecs.cehoyos2009-10-291-0/+1
| | | | | | | | | | | | | | Patch by Francesco Lavra, francescolavra interfree it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29801 b3059339-0415-0410-9bf9-f77b7e298cf2
| * cosmetics: Remove some pointless parentheses from return calls.diego2009-10-081-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29759 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-1/+1
| |
* | Translation system changes part 2: replace macros by stringsAmar Takhar2009-07-071-41/+48
| | | | | | | | | | Replace all MSGTR_ macros in the source by the corresponding English string.
* | Translation system changes part 1: wrap translated stringsAmar Takhar2009-07-071-41/+41
| | | | | | | | | | Replace mp_msg() calls which have a translated string as the format argument with mp_tmsg and add _() around all other translated strings.
* | Merge svn changes up to r29117Uoti Urpala2009-04-011-0/+6
|\|
| * Add TVI_CONTROL_VID_SET_WIDTH_HEIGHT to set width and height together for v4l2,reimar2009-03-161-0/+6
| | | | | | | | | | | | | | otherwise some drivers will always stay stuck in the lowest resolution. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28975 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Make various functions staticUoti Urpala2008-08-121-1/+1
|/
* Change a bunch of video/audio-output-specific preprocessor directives fromdiego2008-08-031-8/+8
| | | | | | | a HAVE_ prefix to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27402 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reorder some functions to avoid implicit declaration warnings.diego2008-06-191-27/+28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27099 b3059339-0415-0410-9bf9-f77b7e298cf2
* Ability for specifying TV standard individually for each TV channel.voroshil2008-06-141-6/+31
| | | | | | | | Slightly modified patch by Ildar devel at pop3 dot ru git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27057 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove useless parentheses from return statements.diego2008-05-161-13/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26788 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make all tvi_info_t constreimar2008-01-131-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25717 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make some tvi_functions_t pointers const that I forgot to change beforereimar2008-01-131-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25716 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless ifdefsreimar2008-01-131-8/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25715 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add type to extern declarationreimar2008-01-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25714 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing '\n' in tv scanner results output.voroshil2007-11-261-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25166 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix memory leak.voroshil2007-11-051-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24972 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix segmentation fault after audio initialization failure in tv driver.voroshil2007-11-051-2/+5
| | | | | | | | Error was caused by double call to driver's uninit() routine. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24971 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disable channel scanner when no tuner is present.voroshil2007-10-151-0/+8
| | | | | | | | | | TV channel scanner is useless without tuner and causes mplayer crash due to uninitialized chanlist_s variable (e.g when dummy driver and tvscan are used together). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24790 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary curly braces.voroshil2007-10-141-4/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24782 b3059339-0415-0410-9bf9-f77b7e298cf2
* 8 bytes buffer is not enough for at least SECAM-DK.voroshil2007-10-141-1/+1
| | | | | | | | Increase it to 20. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24781 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace duplicated code with call to routinevoroshil2007-10-141-7/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24780 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l: routine sets norm from parameter, but prints value of tv norm optionvoroshil2007-10-141-1/+1
| | | | | | | | (which can be not equal to parameter). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24779 b3059339-0415-0410-9bf9-f77b7e298cf2
* (cosmetics) indentation fix of my previous commit and small readabilityvoroshil2007-10-141-22/+25
| | | | | | | improvement. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24778 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove driver-dependent #ifdef from norm_from_string routine.voroshil2007-10-141-22/+14
| | | | | | | | | | It will use TVI_CONTROL_SPC_GET_NORMID if supported by driver and fallback to hardcoded norms otherwise. This will not change current behaviour because hardcoded norms were used with drivers which do not support above ioctl. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24777 b3059339-0415-0410-9bf9-f77b7e298cf2
* (cosmetics) remove trailing whitespacevoroshil2007-10-141-37/+37
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24776 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l fix compilation with v4l2iive2007-10-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24775 b3059339-0415-0410-9bf9-f77b7e298cf2
* DirectShow based tv:// driver for win32voroshil2007-10-131-4/+22
| | | | | | | | | | | 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
* Implement setting gain control for video devices (usually webcams)voroshil2007-09-181-0/+4
| | | | | | | in v4l2 tv:// driver. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24573 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix missing reset/initialization (with tv parameters) ofvoroshil2007-09-131-0/+2
| | | | | | | | vbi subsystem after tv initialization. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24450 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implementation of tv:// driver autodetection.voroshil2007-09-101-8/+18
| | | | | | | | | | | | If user did not specify driver directly, all available drivers will be probed (in order: v4l2,v4l1,bsdbt848,dummy). In most cases first probed driver will be successfully autodetected and used. Autodetection will be disabled if user specified driver directly (in command line or config). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24423 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move channels option parsing code into separate routine.voroshil2007-08-281-67/+72
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24266 b3059339-0415-0410-9bf9-f77b7e298cf2
* Automatic TV channels scanning ability for MPlayer.voroshil2007-08-231-0/+104
| | | | | | | Code is based on patch from Otvos Attila oattila at chello dot hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24125 b3059339-0415-0410-9bf9-f77b7e298cf2
* Teletext support.voroshil2007-07-291-0/+6
| | | | | | | Part 2/5: options/slaves/configure/definitions/etc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23920 b3059339-0415-0410-9bf9-f77b7e298cf2
* Removing global variables from tv://voroshil2007-07-291-42/+0
| | | | | | | | | Step 8 (last): removing old globals from tv.c, tv.h, fixing remaining references in cfg-common.h and mplayer.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23909 b3059339-0415-0410-9bf9-f77b7e298cf2
* Removing global variables from tv://voroshil2007-07-291-61/+61
| | | | | | | | Step 6: removing references to old globals from tv.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23907 b3059339-0415-0410-9bf9-f77b7e298cf2
* Removing global variables from tv://voroshil2007-07-291-6/+7
| | | | | | | Step 2: fixing tv subdrivers initialization. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23903 b3059339-0415-0410-9bf9-f77b7e298cf2
* Removing forward declarations of routines used only in tv.cvoroshil2007-07-291-4/+2
| | | | | | | | | Marking above routines as static Removing unfaithful comment git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23901 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics.voroshil2007-07-291-10/+10
| | | | | | | | 10l: forget to move up second routine git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23900 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: move two routines upvoroshil2007-07-291-34/+34
| | | | | | | to avoid requirement of forward declarations. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23899 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid code duplication and ugly config.h hack by using av_strlcat/av_strlcpyreimar2007-07-051-1/+2
|