summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
Commit message (Collapse)AuthorAgeFilesLines
* Extend -vf format to allow substituting the format for a compatible onereimar2010-06-051-2/+16
| | | | | | | (e.g. chaning rgb24 to bgr24). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31331 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix -vf format and -vf noformat to work with slices.reimar2010-06-052-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31330 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation after FFmpeg r23485.cehoyos2010-06-052-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31322 b3059339-0415-0410-9bf9-f77b7e298cf2
* Limit buffered PTS only when we actually got a frame from the decoder.reimar2010-06-031-14/+17
| | | | | | | | | | This avoids some issues with H.264 PAFF due to dropping PTS values too early because only every second packet actually produced output. Just keeping up to one additional pts value would have avoided this particular issue as well, but this is more generic. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31312 b3059339-0415-0410-9bf9-f77b7e298cf2
* ass_set_aspect_ratio() takes three arguments since 0x00907010.cehoyos2010-06-022-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31304 b3059339-0415-0410-9bf9-f77b7e298cf2
* avoid using swscale internals by copying in palette8torbg16 and its bgr variantsiretart2010-06-011-1/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31303 b3059339-0415-0410-9bf9-f77b7e298cf2
* deprecate palette8topacked32 in favor of public API functions ↵siretart2010-06-011-8/+9
| | | | | | | | | | | | sws_convertPalette8ToPacked32 and -24 additionallym deprecate palette8torgb16 and its bgr variant without replacement. These functions are not meant to be used by applications. Discussed at: http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/109340 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31301 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation after FFmpeg r23402.cehoyos2010-06-012-5/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31299 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove palette8torgb15 and palette8tobgr15siretart2010-06-011-10/+0
| | | | | | | | | They contain exactly the same code as their 16bit variants, so this is effectively code de-duplication. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31298 b3059339-0415-0410-9bf9-f77b7e298cf2
* Forgotten part of previous commit (extern declaration of drc_level).reimar2010-05-301-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31287 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use the -a52drc option also for the libavcodec decoder.reimar2010-05-303-6/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31286 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove some commented-out #includes, fix a comment grammar error.diego2010-05-291-4/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31260 b3059339-0415-0410-9bf9-f77b7e298cf2
* Directly mark jpeg_buf_src() as void instead of using some indirection marcro.diego2010-05-291-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31259 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use MSGT_DECVIDEO in a video decoder.cehoyos2010-05-281-3/+3
| | | | | | | Patch by Giorgio Vazzana, mywing81 gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31249 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Drop pointless _s suffix from 'struct ad_functions'.diego2010-05-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31231 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Drop pointless _s suffix from 'struct mp_image'.diego2010-05-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31230 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Drop _s suffix from 'struct vd_functions'.diego2010-05-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31229 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: K&R coding stylediego2010-05-271-259/+298
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31228 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: K&R coding stylediego2010-05-271-203/+236
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31227 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmeticsdiego2010-05-254-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31217 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid decoding of 0-size packets. This also fixes that the main loop believesreimar2010-05-231-0/+4
| | | | | | | | tehre is an infinite number of delayed frames, thus never finishing (happens with -demuxer lavf -vc theora). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31206 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: reformat ad_pcm.c in K&R stylediego2010-05-231-90/+93
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31193 b3059339-0415-0410-9bf9-f77b7e298cf2
* Ignore (but print out) offset with libtheora decoder.cehoyos2010-05-221-3/+4
| | | | | | | Patch by Giorgio Vazzana, mywing81 gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31191 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation broken by FFmpeg-r23201 that changed the api of error logging.iive2010-05-202-7/+11
| | | | | | | | | Also fix evaluation after FFmpeg-r23149 "change order of parameters". Let the filters fail if evaluation can't be done. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31187 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation after r31173.cehoyos2010-05-141-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31174 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove vf_yuy2, functionality is replaced by -vf format=yuv2siretart2010-05-141-100/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31173 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove internal liba52 copy.diego2010-05-091-16/+0
| | | | | | | Nowadays FFmpeg is faster than liba52 and external liba52 is well supported. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31147 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle Y8/Y800 formats more similar to other YUV formats.reimar2010-05-092-3/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31144 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for 12-bit color mode on framebuffer devices.cehoyos2010-05-068-3/+38
| | | | | | | Patch Janusz Krzysztofik, jkrzyszt A tis icnet pl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31139 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics/indentation fixes.reimar2010-04-201-4/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31052 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add workaround for aac-sbr-ffaac-slow.mkv playing to slow with FFmpegreimar2010-04-201-0/+5
| | | | | | | AAC decoder due to wrong sample rate in container. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31051 b3059339-0415-0410-9bf9-f77b7e298cf2
* Tell x264 that we aren't going to give it timestamps.lorenm2010-04-201-0/+1
| | | | | | | Fixes some warnings starting in x264-r1480. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31049 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace memalign(x) (x > 8) by av_malloc() to prevent crashes on systemszuxy2010-04-206-17/+21
| | | | | | | lacking memalign(), e.g. Win32. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31045 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move functions that really do not need to be inlined from the headerreimar2010-04-152-105/+108
| | | | | | | to the .c file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31038 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix build due to FFmpeg r22858 change (function rename).iive2010-04-121-1/+1
| | | | | | | Patch by ubitux on irc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31033 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix build after FFmpeg symbol rename:diego2010-04-122-2/+3
| | | | | | | | | ff_eval2 --> ff_parse_and_eval_expr ff_parse_eval --> ff_eval_expr patch by ubitux, ubitux gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31031 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix build due to FFmpeg r22833 change (typedef rename).iive2010-04-111-1/+1
| | | | | | | Found by ubitux on irc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31029 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Reorder some x86-related preprocessor conditionals.diego2010-04-061-2/+2
| | | | | | | | This fixes two of the following warnings on non-x86 machines: libmpcodecs/vf_gradfun.c:388:5: warning: "HAVE_EBX_AVAILABLE" is not defined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31025 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change ifdefs to make more sense: HAVE_SSSE3 should only be around SSSE3-code,reimar2010-04-051-6/+10
| | | | | | | not around MMX code etc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31018 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark vf_size_preset_fields m_option_t array as const.diego2010-04-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31001 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark encoder-related m_option_t struct arrays as const.diego2010-04-048-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30997 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a header for x264enc_set_param() instead of forward declaring it.diego2010-04-032-0/+27
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30991 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless #ifdef CONFIG_LIBAVCODEC preprocessor check.diego2010-04-031-2/+0
| | | | | | | The file is only compiled if that condition is true. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30990 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix crash with incomplete yuv2 frames.reimar2010-03-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30972 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert asm keyword to __asm__.diego2010-03-261-3/+3
| | | | | | | | | | | | | | Neither the asm() nor the __asm__() keyword is part of the C99 standard, but while GCC accepts the former in C89 syntax, it is not accepted in C99 unless GNU extensions are turned on (with -fasm). The latter form is accepted in any syntax as an extension (without requiring further command-line options). Sun Studio C99 compiler also does not accept asm() while accepting __asm__(), albeit reporting warnings that it's not valid C99 syntax. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30962 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix build due to codecs_path vs. codec_path typo.diego2010-03-232-8/+8
| | | | | | | patch by Erik Auerswald, auerswal unix-ag.uni-kl de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30950 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of pointless def_path variable; use codec_path directly instead.diego2010-03-233-9/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30949 b3059339-0415-0410-9bf9-f77b7e298cf2
* Real binary loader code should respect the binary codec path.diego2010-03-232-12/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30948 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename get_path.[ch] --> path.[ch].diego2010-03-201-1/+1
| | | | | | | These files now contain different functions related to path handling. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30943 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move SetCodecPath() from loader to get_path.c and make it unconditional.diego2010-03-201-2/+1
| | | | | | | | This fixes compilation with the Win32 loader disabled but other binary codec loaders enabled. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30942 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary size limits and a related define for hm12 decoder.reimar2010-03-191-7/+0
| | | | | | | Patch by Stephen Warren [swarren nvidia com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30940 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop support for XANIM_MOD_DIR environment variable.diego2010-03-181-3/+0
| | | | | | | | It is now possible to specify alternative codec paths on the comand line. Furthermore, XANIM_MOD_DIR was never properly documented. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30936 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse codec path variable used in the binary loader in the XAnim loader.diego2010-03-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30935 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: indentationaurel2010-03-181-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30933 b3059339-0415-0410-9bf9-f77b7e298cf2
* add support for lavf style extradata in vd_theoraaurel2010-03-181-0/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30932 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variable, fixes the warning:diego2010-03-161-1/+0
| | | | | | | libmpcodecs/vd_qtvideo.c:242: warning: unused variable 'result' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30912 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix libmpcodecs/vd_qtvideo.c compilation on OS X:sesse2010-03-161-6/+3
| | | | | | | | - Declare the "result" variable even for native QuickTime. - ExitMovies returns void; don't check its result value. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30911 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use the high-level QuickTime decoding APIs (DecompressSequenceFrameS andsesse2010-03-151-224/+87
| | | | | | | | | | | | | | | | | | | | | | | | friends) instead of the unsupported, internal ones (ImageCodecBeginBand etc.). This is a prerequisite for, among others, Apple ProRes 4:2:2 support, and simplifies the file by quite a bit. Tested on Linux with all existing QuickTime codecs I could get to work in the first place; qt261, qtavui, qtsvq3 have no change. qtcvid appears to not give bit-exact the same output as before, but it looks just the same in playback to me. qt3ivx stops crashing on exit (so works better than before). With some extra patches and a codecs.conf entry, ProRes 4:2:2 also works, including on Linux. Since codec initialization is now actually done on decoder init instead of on first frame, fallback should also work a bit better (although usually, qtvideo is last in the chain). Also made the decoder complain explicitly if the demuxer data is not there (ie., the user tried to run without -demuxer mov). This patch is a cleaned up version of what Andrew Wason (rectalogic A rectalogic D com) posted to mplayer-dev-eng in June. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30899 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace separate Win32, XAnim and Real codec directories by one global dir.diego2010-03-143-9/+9
| | | | | | | | | Nowadays MPlayer does not use the codecs from other installed programs. A runtime setting will soon take over the rare case that binary codecs should be searched for in non-standard directories. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30888 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support extradata format of the speex.acm windows codec formerly availablereimar2010-03-121-0/+24
| | | | | | | from openacm.org. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30884 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix crash if speex_packet_to_header fails.reimar2010-03-121-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30883 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix QuickTime emulated OSErr type.sesse2010-03-062-7/+7
| | | | | | | | | | | | The OSErr type on Mac OS X is int16_t, not int32_t (see http://developer.apple.com/mac/library/documentation/QuickTime/Reference/QTRef_DataTypes/Reference/reference.html). The upper 16 bits will typically be something random (they're entirely undefined). Change the type so it's right; a few places tried to compensate for this by masking out the upper bits, but a few places also missed them, which made for unpredictable behavior. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30854 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable ASS/SSA subtitle support in mencodergreg2010-03-052-0/+139
| | | | | | | | | | | Enable ASS/SSA rendering through libass in mencoder. This duplicates a bit of code (to parse font attachments, for example). Additionally, add a filter "fixpts" that generates PTS, simulating fixed fps. PTS generated by this filter are then used for subtitle timing. Original patch by Nicolas George. (nicolas.george normalesup.org) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30849 b3059339-0415-0410-9bf9-f77b7e298cf2
* Partially revert r30645, the final output format is determined byreimar2010-03-032-2/+6
| | | | | | | | | | mpcodecs_config_vo so we need to query it afterwards. Still try to set a more sensible, codec-dependant preferred format even though it is currently ignored. Fixes bug #1659, based on patch by Andrew Wason [rectalogic rectalogic com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30824 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse the keyframe flag from x264 instead of trying to derive it on our own.reimar2010-02-281-4/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30790 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use the KEYFRAME define instead of some magic number.reimar2010-02-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30789 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of many ugly casts.cehoyos2010-02-281-39/+38
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30786 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make close_toolame() static, only used in ae_toolame.c.cehoyos2010-02-281-1/+1
| |