summaryrefslogtreecommitdiffstats
path: root/libmpdemux/tv.c
Commit message (Collapse)AuthorAgeFilesLines
* introduce new 'stream' directory for all stream layer related components and ↵ben2006-07-311-919/+0
| | | | | | split them from libmpdemux git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19277 b3059339-0415-0410-9bf9-f77b7e298cf2
* Introduce general V4L variable/define.diego2006-07-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19194 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename *v4l variable to *v4l1.diego2006-07-271-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19192 b3059339-0415-0410-9bf9-f77b7e298cf2
* drops casts from void * on malloc/calloc from libmpdemux codereynaldo2006-07-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19067 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move conditional compilation into the build system.diego2006-07-061-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18927 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix a buffer overflow causing a segfaultaurel2006-06-201-1/+2
| | | | | | | (original patch by Vladimir Voroshilov < voroshil _at_ univer.omsk.su >) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18764 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100000l to the fools who don't know Crfelker2006-05-011-1/+1
| | | | | | | | | These were all found while auditing for malloc(A*B) type bugs. Removing them makes it easier to find real incorrect usage and makes the code more readable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18367 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement tv_get_color_options() and make tv_set_color_options() returnalbeu2006-04-211-9/+26
| | | | | | | mainfull values. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18173 b3059339-0415-0410-9bf9-f77b7e298cf2
* make failures during e.g. setting the TV norm non-fatal.reimar2006-04-111-2/+0
| | | | | | | Makes some (crappy *g*) USB cameras work with MPlayer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18074 b3059339-0415-0410-9bf9-f77b7e298cf2
* Try several formats instead of only YV12 if no format was explicitlyalbeu2006-03-141-1/+22
| | | | | | | | requested. Patch from Benjamin Zores <ben -at- geexbox -dot- org> with a few whitespace changes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17863 b3059339-0415-0410-9bf9-f77b7e298cf2
* make demuxer seek and close functions return void, patch by Dominik Mierzejewskiwanderer2005-12-111-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17175 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include path handling, -I.. is in CFLAGS.diego2005-11-181-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
* implement norm switching, which was already documented??reimar2005-11-101-0/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16962 b3059339-0415-0410-9bf9-f77b7e298cf2
* cycle through tv channels (patch by Andrew Calkin < calkina at geexbox.org >)aurel2005-09-121-6/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16470 b3059339-0415-0410-9bf9-f77b7e298cf2
* Demuxer modularizationrtognimp2005-08-051-8/+24
| | | | | | | Demuxer selection by name with -demuxer command (bakward compatible) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16176 b3059339-0415-0410-9bf9-f77b7e298cf2
* BGR formats are ok, toohenry2005-05-121-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15420 b3059339-0415-0410-9bf9-f77b7e298cf2
* several sets of headers declare global variables in them, which causes ↵iive2005-01-291-0/+3
| | | | | | | | | multiple definition errors with gcc 4.x patch by Alexander Strange <astrange ithinksw.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14608 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, buf etc. in af_fmt2str call are already pointers...reimar2004-12-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14256 b3059339-0415-0410-9bf9-f77b7e298cf2
* removing AFMT_ dependancyalex2004-12-271-16/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14246 b3059339-0415-0410-9bf9-f77b7e298cf2
* setting the norm using text ID instead of numerichenry2004-11-191-12/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13979 b3059339-0415-0410-9bf9-f77b7e298cf2
* Raw audio and video are always keyframesranma2004-03-171-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12035 b3059339-0415-0410-9bf9-f77b7e298cf2
* dont mess up v4l volumesattila2004-02-221-1/+1
| | | | | | | patch by Oswald Buddenhagen <ossi@kde.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11987 b3059339-0415-0410-9bf9-f77b7e298cf2
* ALSA 1.x audio out driverhenry2004-01-111-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11776 b3059339-0415-0410-9bf9-f77b7e298cf2
* audio id setting support for bsdbt848 by Nikolay Nikolaev ↵alex2003-09-061-1/+1
| | | | | | <nicknickolaev@yahoo.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10823 b3059339-0415-0410-9bf9-f77b7e298cf2
* spelling fixesdiego2003-09-011-14/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10772 b3059339-0415-0410-9bf9-f77b7e298cf2
* Settled to CONF_TYPE_IMGFMT which simplified lot of things. Now there's no ↵alex2003-08-131-23/+19
| | | | | | need to add new img formats to the source, instead you can try it out by providing it in hexa format, and if it isn't supported by the card, you get a nice error message. That's all. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10599 b3059339-0415-0410-9bf9-f77b7e298cf2
* From: Kir Kostuchenko <kir@users.sourceforge.net>gabucino2003-08-121-8/+7
| | | | | | | | | | | Hi, I found that command line options brightness, hue, contrast and saturation does not works, becouse mplayer apply it, before open tv (kernel says invalid ioctl). Here are simple fix. Please apply. This is the correct patch, sorry for the confusion. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10582 b3059339-0415-0410-9bf9-f77b7e298cf2
* v4l2 supporthenry2003-08-071-2/+23
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10538 b3059339-0415-0410-9bf9-f77b7e298cf2
* I'd like to change tv tuner frequency in the slave mode. So this patchgabucino2003-08-041-21/+35
| | | | | | | | | helps me. Patch by Kir Kostuchenko <kir@users.sourceforge.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10522 b3059339-0415-0410-9bf9-f77b7e298cf2
* removing my (nonworking) email addressalex2003-07-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10369 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fixes by Dominikalex2003-06-031-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10243 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000000000lrfelker2003-04-291-1/+1
| | | | | | | | | | | default fps has been broken on ntsc for a LONG time because of this nonsense! (29.00?!?) no idea why no one caught it, i just have fps=29.97 in my config file... i hope the bsd code works; i can't test it. btw, the (int)*(void **)arg stuff is total nonsense, no idea how that even works... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10020 b3059339-0415-0410-9bf9-f77b7e298cf2
* abilty to set tv channel by name on commandline, patch by Ivan Szanto ↵alex2003-04-281-1/+21
| | | | | | <szivan@duticai.TWI.TUDelft.NL> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10012 b3059339-0415-0410-9bf9-f77b7e298cf2
* mingw fixfaust32003-04-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9928 b3059339-0415-0410-9bf9-f77b7e298cf2
* channel finetuning cmdline support, patch by Ivan Szanto ↵alex2003-04-091-0/+11
| | | | | | <szivan@duticai.TWI.TUDelft.NL> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9890 b3059339-0415-0410-9bf9-f77b7e298cf2
* color equalizer for tv inputhenry2003-03-231-0/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9664 b3059339-0415-0410-9bf9-f77b7e298cf2
* hardware mjpeg encoding using v4l by Iván Szántó <szivan@freemail.hu>henry2003-03-191-0/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9621 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10L never blowup an option pointer !!!!albeu2003-03-031-2/+3
| | | | | | | That fix Gub's bug (sorry for the delay ;) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9520 b3059339-0415-0410-9bf9-f77b7e298cf2
* make tv non-seekablehenry2003-02-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9502 b3059339-0415-0410-9bf9-f77b7e298cf2
* sanity checks - patch by Fabian Franz <FabianFranz@gmx.de>arpi2003-01-141-6/+9
| | | | | | | cache results of strchr() calls git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8956 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l? :)arpi2003-01-061-1/+1
| | | | | | | patch by Stephane Jourdois <mplayer-dev-eng@rubis.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8821 b3059339-0415-0410-9bf9-f77b7e298cf2
* -nosound fixhenry2003-01-051-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8800 b3059339-0415-0410-9bf9-f77b7e298cf2
* user friendly channel tuning + 10L fix in tvi_v4l (by Stephane Jourdois)henry2002-12-281-7/+152
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8628 b3059339-0415-0410-9bf9-f77b7e298cf2
* add a TV_SET_CNANNEL commandhenry2002-12-191-0/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8495 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000L for messing up cvshenry2002-12-161-0/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8488 b3059339-0415-0410-9bf9-f77b7e298cf2
* handle bogus norm parameter; check for errors when setting normhenry2002-12-161-9/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8487 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for exotic normshenry2002-12-161-0/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8478 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning patch by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)michael2002-11-231-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8255 b3059339-0415-0410-9bf9-f77b7e298cf2
* *HUGE* set of compiler warning fixes, unused variables removalarpi2002-11-061-0/+4
| | | | | | | based on patch by Dominik Mierzejewski <dominik@rangers.eu.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8124 b3059339-0415-0410-9bf9-f77b7e298cf2
* added an option for specifying the size of capture bufferhenry2002-10-251-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7906 b3059339-0415-0410-9bf9-f77b7e298cf2
* add an option to force audio recording when a tv card reports no audio sourceshenry2002-10-221-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7836 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed the messalex2002-10-191-56/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7808 b3059339-0415-0410-9bf9-f77b7e298cf2
* set position in channel list on startup. note: hope one day we will get ↵alex2002-10-191-2/+30
| | | | | | cleaned the int->float->int sutff ;) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7807 b3059339-0415-0410-9bf9-f77b7e298cf2
* tons of warning fixes, also some 10l bugfixes, including Dominik's PVA bugarpi2002-09-221-6/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7473 b3059339-0415-0410-9bf9-f77b7e298cf2
* stream layer cleanup part 2arpi2002-09-151-6/+15
| | | | | | | STREAMTYPE_TV removed, use STREAMTYPE_DUMMY instead. tv init moved to demux_open git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7409 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed messy global 'tv_handle', use stream->priv for that purposearpi2002-09-081-4/+12
| | | | | | | | note: i couldn't test it (only compile test) may be broken :( we're going to an unified demuxer API - required for modularization git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7330 b3059339-0415-0410-9bf9-f77b7e298cf2
* changed message leveles (too many non-sense info messages)alex2002-09-081-9/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7319 b3059339-0415-0410-9bf9-f77b7e298cf2
* v4l audio fixes by Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>alex2002-08-301-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7164 b3059339-0415-0410-9bf9-f77b7e298cf2
* new v4l capture patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>:arpi2002-08-211-20/+32
| | | | | | | | | | | | | - multithreaded audio/video buffering (I know mplayer crew hates threads but it seems to me as the only way of doing reliable a/v capture) - a/v timebase synchronization (sample count vs. gettimeofday) - "immediate" mode support for mplayer - fixed colorspace stuff - RGB?? and YUY2 modes now work as expected - native ALSA audio capture - separated audio input layer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7059 b3059339-0415-0410-9bf9-f77b7e298cf2
* applied 64bit patch from Ulrich Hecht <uli at suse dot de>alex2002-05-231-4/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6162 b3059339-0415-0410-9bf9-f77b7e298cf2
* patch by Jürgen Appel <jappel@linux01.gwdg.de>:pl2002-05-011-2/+2
| | | | | | | | "There is a typo in libmpdemux/tv.c causing channel switching to behave strange." git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5924 b3059339-0415-0410-9bf9-f77b7e298cf2
* BSD-BT848 TV update patch by Charles Henrich <henrich@sigbus.com>arpi2002-04-121-59/+45
| | | | | | | | | | | - tvi interface changes, grab_audio/video now returns timestamp! - tv demuxer gets 'ds' hint too - some verbose skip/dup counters to mencoder - tvi_bsdbt848.c updates - aviwrite/mencoder size types int->off_t git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5573 b3059339-0415-0410-9bf9-f77b7e298cf2
* audio support and pts based packet handling by Charles Henrichalex2002-03-151-42/+104
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5088 b3059339-0415-0410-9bf9-f77b7e298cf2
* yuy2 reported as workingalex2002-01-261-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4351 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed channel changing with frequencies.calex2002-01-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4243 b3059339-0415-0410-9bf9-f77b7e298cf2
* updatedalex2001-12-271-9/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3816 b3059339-0415-0410-9bf9-f77b7e298cf2
* As nobody fixed this yet:pl2001-12-251-1/+1
| | | | | | | | | | | "tv.c: In function stream_open_tv': tv.c:107: warning: return' with no value, in function returning non-void" According to libmpdemux/open.c 0 is an error so I guess it should return 0 if it fails :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3729 b3059339-0415-0410-9bf9-f77b7e298cf2
* i420 supportalex2001-12-241-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3704 b3059339-0415-0410-9bf9-f77b7e298cf2
* x = malloc(strlen(s) + c) ... strcpy(x, s)pl2001-12-191-2/+1
| | | | | | | | | | | replaced by x = strdup(s) Note: sometimes c was 0 and that was a bug Note2: code still has to be added to check the returned value of these funcs git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3613 b3059339-0415-0410-9bf9-f77b7e298cf2
* give the IMGFMT_ for sh_video->format not 0x0alex2001-12-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3399 b3059339-0415-0410-9bf9-f77b7e298cf2
* add tv fps supportalex2001-12-031-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3286 b3059339-0415-0410-9bf9-f77b7e298cf2
* update (audio support is coming:)alex2001-12-031-22/+36
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3285 b3059339-0415-0410-9bf9-f77b7e298cf2
* init_v4l only present if HAVE_TV_V4Lalex2001-12-011-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3250 b3059339-0415-0410-9bf9-f77b7e298cf2
* added support for norm=,chanlist=,channel= and also on-the-fly channel ↵alex2001-11-171-0/+104
| | | | | | chaning with keys git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2942 b3059339-0415-0410-9bf9-f77b7e298cf2
* added support for setting color valuesalex2001-11-161-0/+82
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2938 b3059339-0415-0410-9bf9-f77b7e298cf2
* splitted demux_open_tv into two parts: stream_open_tv and demux_open_tv to ↵alex2001-11-161-67/+66
| | | | | | support caching git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2933 b3059339-0415-0410-9bf9-f77b7e298cf2
*