aboutsummaryrefslogtreecommitdiffhomepage
path: root/spudec.c
Commit message (Collapse)AuthorAge
* Replace MIN with FFMINGravatar reimar2007-03-01
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22396 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix build with shared libavutil. Approved by Diego.Gravatar rathann2006-12-31
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21794 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use PIX_FMT_* instead of IMGFMT_* when calling sws_getContext()Gravatar lucabe2006-09-17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19876 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move postproc ---> libswscaleGravatar lucabe2006-06-30
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18866 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix some subtitles that didn't show.Gravatar reimar2005-06-19
| | | | | | | Sample: http://mplayerhq.hu/MPlayer/samples/sub/starwarssub2.vob git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15762 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix black line on right of subtitle with -spuaa 4 by setting alpha ofGravatar reimar2005-01-08
| | | | | | | border pixels to 0 after scaling, not before. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14433 b3059339-0415-0410-9bf9-f77b7e298cf2
* passing an array or double precission parameters for the scaling function, ↵Gravatar michael2004-09-18
| | | | | | | | | instead of missusing a few bits of the flags fixing the naming of the scaling functions a little git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13374 b3059339-0415-0410-9bf9-f77b7e298cf2
* many small typo and grammar fixesGravatar gabucino2003-10-04
| | | | | | | Based on Bernard Leak's mail <bernard 4t brenda-arkle.demon.co.uk> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11001 b3059339-0415-0410-9bf9-f77b7e298cf2
* Forced subtitles patch by Arne Driescher <driescher@mpi-magdeburg.mpg.de>Gravatar attila2003-09-21
| | | | | | | | | | | | | | | | | | | | | For a given subtitle language you can now chose to display only the forced subtitles. Defaut is set to "show all subtitles" so that current mplayer behaviour is not changed. For DVD: Use -forced_subs_only additionally to e.g. -slang en if you are only interested in the forced subtitles. For VobSub: The idx file is now parsed for the "forced subs: ON/OFF" tag and used according to its settings. Key: You can toggle the display of forced subtitles by pressing "F" (upper case letter). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10918 b3059339-0415-0410-9bf9-f77b7e298cf2
* sws_ prefix, more seperation between internal & external swscaler APIGravatar michael2003-02-23
| | | | | | | sws_scale() returns the number of outputed lines git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9495 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improved subtitle queueing, parameters (start_pts, end_pts, palette, alpha)Gravatar ranma2003-02-16
| | | | | | | are now also queued. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9449 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix "invalid fragment" handling.Gravatar ranma2003-02-16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9443 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improvements to spudec (DVD/VobSub) subtitle code:Gravatar rfelker2003-01-24
| | | | | | | | | - runtime selectable positioning, like with text subs - runtime selectable scaling/antialiasing algorithm - gaussian blur scaler (finally dvd/vobsub doesn't look like shit!) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9078 b3059339-0415-0410-9bf9-f77b7e298cf2
* I have seen problems where DVD subtitles don't displayGravatar arpi2003-01-08
| | | | | | | | | | | | | | | | | | | | at the right time and sometimes they don't appear at all. The problem stems from the fact that subtitle command packets are being applied as soon as they are read and assembled from the input stream. Sometimes, a fully assembled subtitle packet arrives at the spudec_assemble function before the previous subtitle appears onscreen and thus the viewer only sees the second subtitle. So I created a patch that queues assembled subtitle packets and applies them at the appropriate time within the heartbeat function. The reset function clears the packet queue when seeking through the video. Tomasz Farkas <tomasz_farkas@yahoo.co.uk> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8844 b3059339-0415-0410-9bf9-f77b7e298cf2
* All right: The patch adresses two issues which I found, when I analyzedGravatar arpi2002-10-15
| | | | | | | | | | | | | | | | | | | | | the input from some DVDs with known subtitle-dropouts: 1. The packet-size at the beginning of the packet, which is used to check, whether we got all fragments, is sometimes one byte too long. It seems to be always padded to an even number, while the actual size can be odd. 2. The original algorythm used to assemble the fragments relies on the timestamps to check, whether a new packet begins. This has proven to be unrelieable on some disks. So instead, I use the timestamp only to check, whether it's been too long (defined as 0,01sec) since the last fragment, which is probably indicating a broken packet, and normaly starting a new packet when the last one has been finished. patch by Christof Buergi <christof@buergi.lugs.ch> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7744 b3059339-0415-0410-9bf9-f77b7e298cf2
* Put all spudec_new stuff in a single function,Gravatar kmkaplan2002-08-06
| | | | | | | | | spudec_new_scaled_vobsub. Original frame width is always either 720x576 or 720x480. See dvd-subtitle-problem.txt and dvd-subtitle-problem.txt.vob. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6939 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make spudec_assemble more resistent in the face of incomplete packets.Gravatar kmkaplan2002-07-24
| | | | | | | Put the global spu_changed into spudec_handle_t. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6779 b3059339-0415-0410-9bf9-f77b7e298cf2
* Suppress garbage at the end of some subtitles.Gravatar kmkaplan2002-06-17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6460 b3059339-0415-0410-9bf9-f77b7e298cf2
* - hardened a bit the new bilinear algo (missing checks)Gravatar pl2002-05-29
| | | | | | | | | - warning fix (include, int -> void) - avoids messing with 0 byte allocation (result not reliable) (Fredrik Kuivinen <freku045@student.liu.se> noticed it) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6226 b3059339-0415-0410-9bf9-f77b7e298cf2
* avoids malloc()ing a negative number (== very big size_t)Gravatar pl2002-05-29
| | | | | | | | some vobsub's trigger this case and cause a: "MPlayer interrupted by signal 2 in module: decode_video" git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6224 b3059339-0415-0410-9bf9-f77b7e298cf2
* spu/vobsub speedup patch, new all better bilinear scaler similiar to win ↵Gravatar atmos42002-05-28
| | | | | | vobsub ones. ptyh by Hephooey. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6216 b3059339-0415-0410-9bf9-f77b7e298cf2
* Bounding box and partial update patch for vob/dvdsub by Hephooey.Gravatar atmos42002-05-25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6191 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improvment for spu subtitles.Gravatar albeu2002-05-17
| | | | | | | | | | | | Removed the integreted spudec in vobsub. Various cleanup/bugfix in vobsub (no more auto palette when a true one is here) HW spu rendering moved in spudec because we first need to reassable the packet before sending them to the hw. Spudec is now created only if nedded. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6111 b3059339-0415-0410-9bf9-f77b7e298cf2
* Suggested fix byGravatar atmos42002-04-30
| | | | | | | Arne Driescher <driescher at mpi-magdeburg.mpg.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5918 b3059339-0415-0410-9bf9-f77b7e298cf2
* guessing palette - patch by salvador <salvador@inti.gov.ar>Gravatar arpi2002-04-29
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5909 b3059339-0415-0410-9bf9-f77b7e298cf2
* VobSub updates, custom palette support and other stuff, can't write the name ↵Gravatar atmos42002-04-25
| | | | | | of the chinese(?) patch supplier. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5834 b3059339-0415-0410-9bf9-f77b7e298cf2
* new osd code, use osd objs to follow changes and do minimal updatesGravatar arpi2002-04-15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5639 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed SPU pts, it's 1024/90000 based instead of 1/100Gravatar arpi2002-04-04
| | | | | | | | spudec code doesn't requires dvdread - removed some #ifdefs - from dvdnav patch by Kees Cook <mplayer@outflux.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5489 b3059339-0415-0410-9bf9-f77b7e298cf2
* spudec_update_palette() added - dvdnav patch by Kees Cook <mplayer@outflux.net>Gravatar arpi2002-04-03
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5475 b3059339-0415-0410-9bf9-f77b7e298cf2
* * New command line switch for mplayer & mencoder:Gravatar kmkaplan2002-03-29
| | | | | | | | | | | | | | | | | | | | | | | | | | -ifo <ifo file> Indicate the file that will be used to load palette and frame size for MPEG subtitles. * mencoder.c: Fix cropping when decoding MPEG2. * spudec.c: If scaling is needed only do it once. Change WITH_NO_ANTIALIASING to ANTIALIASING_ALGORITHM. * vobsub.c: Support reading info regarding size and palette from IDX file instead of IFO file. Support streams containing audio or video. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5389 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l accidently commited an already customized version with different default ↵Gravatar atmos42002-02-22
| | | | | | scaling algo. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4811 b3059339-0415-0410-9bf9-f77b7e298cf2
* Forgot to commit with vo_sdl osd patch.Gravatar atmos42002-02-22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4810 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a third scaling algorithm wich should be faster. Select byGravatar kmkaplan2002-01-15
| | | | | | | defining ANTIALIASING_ALGORITHM for now. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4181 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix brightness of subtitlesGravatar kmkaplan2002-01-12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4123 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add spudec_new_scaled and spudec_draw_scaled for vobsub support.Gravatar kmkaplan2002-01-10
| | | | | | | | | | | | | | | | Change what is passed to spudec_new for vobsub support. Suppress conditional on USE_DVDREAD. Correct a bug where some subtitles with no Stop display control code would not display long enough. Be more strict with bogus packets. Transform everything that should into unsigned. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4079 b3059339-0415-0410-9bf9-f77b7e298cf2
* dvdsub pts fix, based on patch by Kim Minh KaplanGravatar arpi2001-12-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3843 b3059339-0415-0410-9bf9-f77b7e298cf2
* printf->mp_msgGravatar arpi2001-12-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3823 b3059339-0415-0410-9bf9-f77b7e298cf2
* more stable and reliable spudec packet reassemblerGravatar arpi2001-12-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3821 b3059339-0415-0410-9bf9-f77b7e298cf2
* dvd seeking -> subtitle disappearing bugs fixedGravatar arpi2001-12-25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3745 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixes warningsGravatar pl2001-12-25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3726 b3059339-0415-0410-9bf9-f77b7e298cf2
* Patch by Kim Minh Kaplan <kmkaplan@selfoffice.com>:Gravatar pl2001-12-09
| | | | | | | | - removes garbage on the right hand side of DVD subtitles - improves the handling of unknown SPU control codes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3403 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix spudec compile with libdvdread enabled.Gravatar atmos42001-11-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3184 b3059339-0415-0410-9bf9-f77b7e298cf2
* spudec_new has a dvd_priv_t as an argument, which is defined inGravatar pl2001-11-28
| | | | | | | libmpdemux/stream.h only if USE_DVDREAD is defined. (Arpi) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3181 b3059339-0415-0410-9bf9-f77b7e298cf2
* unistd.h required at least by FreeBSDGravatar nexus2001-11-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3176 b3059339-0415-0410-9bf9-f77b7e298cf2
* Palette support for SPU decoder.Gravatar atmos42001-11-27
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3167 b3059339-0415-0410-9bf9-f77b7e298cf2
* subtitles looked bad here (inverted colors sometimes)Gravatar pl2001-11-20
| | | | | | | | looked like values wrapped around the byte (not sure of the side effects but subtitles look good now) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3039 b3059339-0415-0410-9bf9-f77b7e298cf2
* DVD sub patch by Kim Minh Kaplan <kmkaplan@selfoffice.com>Gravatar arpi2001-11-20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3035 b3059339-0415-0410-9bf9-f77b7e298cf2
* (C) fixedGravatar arpi_esp2001-04-30
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@674 b3059339-0415-0410-9bf9-f77b7e298cf2
* spudec_decode() moved from mplayer.c to spudec.cGravatar arpi_esp2001-04-21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@562 b3059339-0415-0410-9bf9-f77b7e298cf2
* Separated dvdsub code to be able to work with it easierGravatar lgb2001-04-21
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@561 b3059339-0415-0410-9bf9-f77b7e298cf2