summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
Commit message (Collapse)AuthorAgeFilesLines
* Move teletext specific code from stream into libmpcodecs.cehoyos2009-10-292-0/+1987
| | | | | | | Patch by Francesco Lavra, francescolavra interfree it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29801 b3059339-0415-0410-9bf9-f77b7e298cf2
* sync to x264-r1296lorenm2009-10-191-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29787 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing '#include "config.h"', the header uses HAVE_BIGENDIAN.diego2009-10-191-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29783 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark some functions that do not need external visibility as static.diego2009-09-302-2/+2
| | | | | | | patch by Alexander Neumann, alexander bumpern de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29744 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reduce console output verbosity: Move colorspace information to verbose mode.diego2009-09-301-2/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29742 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change type to avoid void * arithmetic.reimar2009-09-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29716 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set codec_type and codec_id in codec context for lavc encoders.reimar2009-09-252-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29715 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure avctx->codec_type and codec_id are set, since libavcodecreimar2009-09-232-0/+3
| | | | | | | | | currently requires that. That probably is an unintended API change and should be fixed/reverted in lavc but it hurts little to workaround here. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29709 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use x264_encoder_delayed_frames instead of the current hack to flush delayedreimar2009-09-231-4/+2
| | | | | | | frames in VFCTRL_FLUSH_FRAMES. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29705 b3059339-0415-0410-9bf9-f77b7e298cf2
* sync to x264-r1260 (which changed api)lorenm2009-09-231-33/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29704 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add several HAVE_EBX_AVAILABLE conditions where necessaryreimar2009-09-143-2/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29681 b3059339-0415-0410-9bf9-f77b7e298cf2
* %lf is not a valid printf format specifier, use just %f instead.reimar2009-09-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29680 b3059339-0415-0410-9bf9-f77b7e298cf2
* Always keep a backup of the expand values from the command-line, so valuesreimar2009-09-101-8/+19
| | | | | | | | will be recalculated correctly e.g. after aspect change and -vf expand=aspect=4/3 command line. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29666 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindentreimar2009-08-261-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29554 b3059339-0415-0410-9bf9-f77b7e298cf2
* Retry deciding to get audio parameters several times on errors, this avoidsreimar2009-08-261-0/+3
| | | | | | | failing to init the decoder completely just because the first packet is broken. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29553 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix incorrect channel ordering for lavc audio codecs (specifically ffac3,tack2009-08-182-15/+7
| | | | | | | | | ffdca, ffflac, ffaac, fftruehd). In the process, adds support for 32-bit samples. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29533 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, fix compilation again and make codec-cfg.c use the predefined constantsreimar2009-08-121-1/+1
| | | | | | | instead of reimplementing the IMGFMT_RGB|bit_depth logic. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29500 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000l, RGB48BE does _not_ use 49 bit/pixel, probably fixes 48 bit PNG decoding.reimar2009-08-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29499 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add IMGFMT_RGB48LE and IMGFMT_RGB48BE.cehoyos2009-08-113-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29486 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a giant hack to the x264 encoder module to ensure all delayed frames arereimar2009-08-071-1/+3
| | | | | | | | written on FLUSH_FRAMES, this is necessary since using multiple threads adds an additional delay beyond the B-frame delay. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29480 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace macro: MAX -> FFMAXben2009-08-061-6/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29479 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix stupid, off-by-one, mistakes in assert() expressions.eugeni2009-07-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29448 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code.diego2009-07-265-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29443 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure clip coordinates are inside the screen area.eugeni2009-07-181-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29425 b3059339-0415-0410-9bf9-f77b7e298cf2
* 20% faster hqdn3d on x86_64lorenm2009-07-071-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29414 b3059339-0415-0410-9bf9-f77b7e298cf2
* new debanding filterlorenm2009-07-072-0/+409
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29413 b3059339-0415-0410-9bf9-f77b7e298cf2
* replace "g" asm constraint by "erm" since "g" allows 64bit immediates whilegpoirier2009-06-071-2/+2
| | | | | | | | | | | the operator (cmp) using the "g"-constrained operand doesn't support 64bit immediates. Original thread: date: Tue, Jun 2, 2009 at 11:31 AM subject: [PATCH] Fix MPlayer to compile on Darwin/x86_86 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29352 b3059339-0415-0410-9bf9-f77b7e298cf2
* Switch to avcodec_decode_video2 to allow a hack that makes PNG decode correctlyreimar2009-06-011-2/+7
| | | | | | | again instead of in CorePNG delta mode. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29340 b3059339-0415-0410-9bf9-f77b7e298cf2
* Initialize local variable, avoids a possible crash due to using anreimar2009-06-011-2/+2
| | | | | | | uninitialized variable as array index for mono files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29339 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Remove all trailing whitespace.diego2009-05-13128-1289/+1289
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* MPV_common_init balks if s->avctx->pix_fmt == PIX_FMT_NONE, so we set it ↵rik2009-05-091-0/+2
| | | | | | correctly git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29286 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing 'void' to parameterless function declarations.diego2009-05-042-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29254 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace glibc-specific __WORDSIZE preprocessor check with HAVE_FAST_64BIT.diego2009-04-251-2/+2
| | | | | | | The latter is properly set by configure. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29237 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove reference to outdated documentation file.diego2009-04-202-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29209 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add algorithm flag (SWS_POINT) to sws_getContext call to avoid a crash.diego2009-04-201-1/+1
| | | | | | | patch by Alexander Strange, astrange ithinksw com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29205 b3059339-0415-0410-9bf9-f77b7e298cf2
* follow renaming of pbBufPtr() to put_bits_ptr() by stefanorik2009-04-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29178 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix E-AC-3 channel ordering. E-AC-3 needs to use the same ordering as AC-3,diego2009-04-121-1/+2
| | | | | | | | not the standard ordering. patch by Andrew de Quincey, adq_dvb lidskialf net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29173 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary malloc.h #includes and related #ifdeffery.diego2009-04-0218-96/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29126 b3059339-0415-0410-9bf9-f77b7e298cf2
* Consistently use MP_MAX_PLANES as size for plane pointer/stride arrays in ↵reimar2009-03-294-22/+18
| | | | | | | | | | libmpcodecs. This might avoid some issues since sws_scale in some cases assumes these have at least 4 valid entries. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29103 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use MP_MAX_PLANES as size of arrays passed to mpcodecs_draw_slice.reimar2009-03-292-6/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29098 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use x86_reg instead of long in several video filters to fix compilation on ↵reimar2009-03-274-11/+11
| | | | | | MinGW64. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29077 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow to use vdpau temporal deinterlacers with hardware accelerated decoding.cehoyos2009-03-183-5/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28991 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support FFmpeg codecs that decode to other formats than S16.reimar2009-03-181-1/+10
| | | | | | | Double format is currently not supported. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28990 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid ridiculously small decode_buffer_size (e.g. 4 with acodec=pcm_s16le)reimar2009-03-151-0/+1
| | | | | | | that can make -oac lavc unusable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28963 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove file names from file header, it only causes trouble.diego2009-03-154-7/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28959 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check for HAVE_EBX_AVAILABLE before enabling MMX code that needs the EBX ↵reimar2009-03-132-4/+4
| | | | | | | | | register. Makes things a bit simpler for everyone who insists on compiling MPlayer as PIE-code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28942 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use the same code as in vf_decimate to select diff_MMXreimar2009-03-131-3/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28941 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing ecx clobber in diff_MMX code (yes, that function is duplicated).reimar2009-03-132-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28940 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of nuppelvideo.h and its ugly packed struct and instead write thereimar2009-03-091-18/+17
| | | | | | | frame header directly in nuv encoder. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28914 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix type of zlen, fixes crashes on 64 bit systems.reimar2009-03-091-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28912 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not calculate the same value twicereimar2009-03-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28911 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allocate buffer for lzo compression correctly also for large frame sizes.reimar2009-03-091-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28910 b3059339-0415-0410-9bf9-f77b7e298cf2
* nuv encoder 64 bit fix: avoid using long/sizeof(long)reimar2009-03-091-5/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28909 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove internal NuppelVideo decoder, the code in libavcodec can decodereimar2009-03-085-1552/+0
| | | | | | | those files and some more and is far more maintainable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28888 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of pointless debugging codereimar2009-03-081-18/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28887 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove the grayscale and 4:2:2 RTjpeg code, it is neither used nor is therereimar2009-03-081-257/+0
| | | | | | | anything special about to to justify preserving it for documentation purposes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28886 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove colourspace-conversion stuff from rtjpeg, we have functions to do thatreimar2009-03-081-384/+0
| | | | | | | better and it doesn't belong in that file anyway. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28885 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark everything not used outside the file as "static"reimar2009-03-081-36/+36
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28884 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove functions not used by MPlayer from headerreimar2009-03-081-15/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28883 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless "extern" in function declarations.reimar2009-03-081-22/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28882 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add some "const" to mpcodecs_vd_driversreimar2009-03-062-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28861 b3059339-0415-0410-9bf9-f77b7e298cf2
* Swap order of VFCTRL_DRAW_EOSD and VFCTRL_DRAW_OSD so that the EOSD is drawnreimar2009-03-061-1/+4
| | | | | | | | below the OSD and document possible issues when this is changed. Patch by Uoti (though originally intended for a different issue) with extra comment by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28841 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add another hack to work-around the currently completely inconsistent way inreimar2009-03-031-1/+5
| | | | | | | which libavcodec sets AVCodecContext::pix_fmt. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28801 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l, replace a tab that slipped in.reimar2009-03-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28767 b3059339-0415-0410-9bf9-f77b7e298cf2
* Create a set_format_params function that sets all the special options neededreimar2009-03-011-19/+23
| | | | | | | | | for XvMC/VDPAU acceleration in a single place. This should get closer to working with selecting acceleration via pix_fmt instead of via a special codec for each method. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28766 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set time_base to 1/samplerate, like FFmpeg does, instead of leaving it at thediego2009-02-211-0/+2
| | | | | | | | default 0/1. This is not required by a lot of codecs, but at least by libvorbis. patch by Nicolas George, nicolas.george normalesup org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28695 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused and unreachable code hunk that was surrounded by a misspelleddiego2009-02-191-4/+0
| | | | | | | preprocessor condition. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28663 b3059339-0415-0410-9bf9-f77b7e298cf2
* Return PIX_FMT_NONE if the video system refuses all other formats.iive2009-02-191-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28662 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add VOCAP_NOSLICES and use it to allow vo_vdpau to not support slices forreimar2009-02-182-0/+4
| | | | | | | | YV12 - since VDPAU only has functions to upload the full frame at once there is no sense in supporting draw_slice for that. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28646 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle mpcodecs_get_image returning NULL, FFmpeg most of the time handlesreimar2009-02-181-0/+1
| | | | | | | it correctly (VDPAU and probably H.264 currently don't, MPEG1/2 does etc.). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28643 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make it possible for mpcodecs_get_image to return NULL as thereimar2009-02-171-1/+1
| | | | | | | documentation says it should instead of crashing. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28638 b3059339-0415-0410-9bf9-f77b7e298cf2
* Print an error and return NULL in vf_get_image if we try to allocatereimar2009-02-171-1/+6
| | | | | | | | a format with bpp == 0, since this can not work. This way at least we crash earlier and print an error message. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28637 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set avctx->opaque already at init instead of decode so it can be used inreimar2009-02-171-1/+1
| | | | | | | | get_format and get_buffer would not crash if called during avcodec_open. Patch by Gwenole Beauchesne [gbeauchesne splitted-desktop com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28636 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove stray empty lines.diego2009-02-171-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28630 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert HAVE_MALLOC_H into a 0/1 de