Commit Graph

16969 Commits

Author SHA1 Message Date
Michael Niedermayer 53d55e9ea3 Allow decoders to set AVCodecContext.refs.
Originally committed as revision 16305 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-24 17:38:27 +00:00
Michael Niedermayer 62ea19c061 Optimize pred_pskip_motion()
7 cpu cycles faster on pentium dual.

Originally committed as revision 16304 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-24 03:23:38 +00:00
Ben Littler c26436ec46 add amr in avi riff tags
Originally committed as revision 16303 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-24 02:20:07 +00:00
Michael Niedermayer ebfb0449d3 Indent
Originally committed as revision 16302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 22:06:16 +00:00
Michael Niedermayer 05d3fd44d7 Integrate get_te0_golomb() calls into the code, this allows some checks
to be avoided and the function is pretty small.
3% speedup, though this is probably due to changed inlining and not directly
this change.

Originally committed as revision 16301 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 22:04:34 +00:00
Michael Niedermayer 9963b332d1 Use get_ue_golomb_31() where possible, almost all are just in headers
though.

Originally committed as revision 16300 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 21:12:19 +00:00
Michael Niedermayer 0be514625a Update golomb decoding tables so that get_*_golomb_31() return some
larger values for too large values.

Originally committed as revision 16299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 21:07:36 +00:00
Michael Niedermayer 0e921e97c1 Add get_ue_golomb_31()
Originally committed as revision 16298 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 21:05:47 +00:00
Víctor Paesa be8497b0ac Update again Cygwin Ports URL after my sloppy previous commit.
Originally committed as revision 16297 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 20:44:06 +00:00
Michael Niedermayer 2f2893ce9b indent
Originally committed as revision 16296 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 19:12:50 +00:00
Michael Niedermayer d42fc4a8ca Use the new VLC table for the first non trailing coeff too.
Sadly only 5 cycles faster here on pentium dual. So maybe the
complexity is not worth it and this should be reverted ...

Originally committed as revision 16295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 19:10:46 +00:00
Michael Niedermayer 593af7cdda Optimize esc removal code.
Originally committed as revision 16294 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 18:31:44 +00:00
Kostya Shishkov ffedb5c19a 352l: correct calculating number of bits for storing macroblock offset in RV3/4
Originally committed as revision 16293 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 18:27:06 +00:00
Michael Niedermayer 2d76bf391a Indent
Originally committed as revision 16292 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 17:50:36 +00:00
Michael Niedermayer 8140955d39 unified CAVLC level decoding LUT.
Quite a bit faster (HPCVMOLQ_BRCM_B.264 was 3% faster here)

Originally committed as revision 16291 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 17:49:38 +00:00
Víctor Paesa 5dd9799de8 Complete the list of external libraries.
Originally committed as revision 16290 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 10:29:32 +00:00
Víctor Paesa 666a1b348f Advice on compiler versions
Originally committed as revision 16289 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 09:09:21 +00:00
Víctor Paesa 9f6bfe8034 Update Cygwin Ports URL.
Originally committed as revision 16288 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 08:57:28 +00:00
Víctor Paesa 8484503e87 Bring up to date the Cygwin docs.
Originally committed as revision 16287 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 08:53:37 +00:00
Michael Niedermayer 5cb5023c78 Make h264 parser 50% faster.
Originally committed as revision 16286 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 02:34:58 +00:00
Michael Niedermayer abb27cfb24 100l, I broke H.264 again, forgot one hunk.
Thanks to FATE for finding it.

Originally committed as revision 16285 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 01:11:56 +00:00
Michael Niedermayer e08715d391 Optimize 0 0 0-3 search, 45% faster on pentium dual.
Originally committed as revision 16284 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-23 00:38:45 +00:00
Víctor Paesa f496ab12e4 The diffutils package is also needed (for the 'cmp' command).
Spotted by Ramiro Polla.

Originally committed as revision 16283 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 23:30:33 +00:00
Andreas Öman 11c23b64ac Revert r16257:
Include "libavutil/common.h" where we use llrint() in case ffmpeg's
own llrint() is to be used.

Originally committed as revision 16282 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 22:39:55 +00:00
Carl Eugen Hoyos 9f2ace74ef Fix two identical warnings when compiling riff.c and nuv.c with icc:
warning #188: enumerated type mixed with another type

Originally committed as revision 16281 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 22:12:44 +00:00
Carl Eugen Hoyos 1c53290b67 Fix a warning when compiling with icc:
warning #188: enumerated type mixed with another type

Originally committed as revision 16280 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 22:10:07 +00:00
Michael Niedermayer ec3686e889 Simplify decode_cabac_mb_ref() a little bit, 2 cpu cycles faster on
pentium dual.

Originally committed as revision 16279 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 17:14:13 +00:00
Michael Niedermayer 26695973c7 Indent
Originally committed as revision 16278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 16:56:05 +00:00
Michael Niedermayer b68a455313 inline decode_cabac_mb_type for I & P frames, 9 cycles faster on pentium dual.
Originally committed as revision 16277 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 16:46:17 +00:00
Michael Niedermayer 1952ac3713 Negate 2 more variables, 1 cpu cycle faster on pentium dual.
Originally committed as revision 16276 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 16:20:13 +00:00
Michael Niedermayer 03a035e059 Simplify if/else, no speed change
Originally committed as revision 16275 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 16:14:06 +00:00
Michael Niedermayer 6f3c50f2f9 Negate a few variables, this simplifies the code and makes it 5 cycles faster
on pentium dual.

Originally committed as revision 16274 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 16:10:35 +00:00
Michael Niedermayer 60c6ba7aea Simplify ifs(), 8 cpu cycles faster on pentium dual
Originally committed as revision 16273 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 15:54:27 +00:00
Michael Niedermayer 127a20e3b8 Simplify if(), 3 cpu cycles faster in pentium dual.
Originally committed as revision 16272 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 15:53:00 +00:00
Aurelien Jacobs 9daa4ceaa3 Initialize s->opaque before calling url_resetbuf().
Fixes a regression test crash for icc 10.1 64 bit.

Patch by Aurelien.

Originally committed as revision 16271 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 11:23:00 +00:00
Diego Biurrun a6493a8fbd Rename libavcodec/i386/ --> libavcodec/x86/.
It contains optimizations that are not specific to i386 and
libavutil uses this naming scheme already.

Originally committed as revision 16270 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 09:12:42 +00:00
Wolfram Gloger 50e3477f0f Offer an option (disabled by default) to enable the copy of the frames before
the first key frame in a stream.
Patch by Wolfram Gloger wmglo /!\ dent med uni (minus) muenchen de

Originally committed as revision 16269 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 08:22:22 +00:00
Kostya Shishkov 108c96d5e7 Decode TIFF image only after all tags have been decoded
Originally committed as revision 16268 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 06:50:18 +00:00
Kostya Shishkov 8eedffde31 Some TIFFs declare -1 for the single strip height
Originally committed as revision 16267 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 06:47:51 +00:00
Kostya Shishkov 89b4ec5c33 Add monochrome TIFF support
Originally committed as revision 16266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 06:43:14 +00:00
Kostya Shishkov 4386ed6922 Calculate line size variable correctly for lower bitdepths and use it for raw data copying
Originally committed as revision 16265 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 06:39:31 +00:00
Kostya Shishkov 4a2f51de34 Register TIFF tags for CCITT Group 3 and 4 compression options
Originally committed as revision 16264 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 06:36:10 +00:00
Diego Biurrun bef05f05e4 Remove a bunch of unused variables.
Originally committed as revision 16263 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 00:10:36 +00:00
Diego Biurrun ebb160a0b0 Use ARCH_X86_32 instead of !ARCH_X86_64, it is more straightforward.
Originally committed as revision 16262 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 00:03:30 +00:00
Anuradha Suraparaju 64bfc5845b Fix incorrectly constructed Dirac parse units that caused A/V sync loss.
Fixes issue 694.
patch by Anuradha Suraparaju, anuradha rd.bbc.co uk

Originally committed as revision 16261 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-22 00:01:39 +00:00
Diego Biurrun c4ff7c53e0 Do not use full include path for headers in the same directory.
Originally committed as revision 16260 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 23:56:55 +00:00
Michael Niedermayer c96bd21227 Change mpeg audio parser so it only sets frame_size, channels and bit_rate
after it has a few valid frames.
Fixes issue762

Originally committed as revision 16259 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 23:50:16 +00:00
Carl Eugen Hoyos af4c0bcb6e Silence the following icc warnings:
warning #1292: attribute "force_align_arg_pointer" ignored
warning #1292: attribute "alloc_size" ignored
warning #1292: attribute "cold" ignored

Originally committed as revision 16258 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 22:51:33 +00:00
Andreas Öman 1af34f094e Include "libavutil/common.h" where we use llrint() in case ffmpeg's
own llrint() is to be used.

Originally committed as revision 16257 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 21:53:42 +00:00
Michael Niedermayer ed4c638a07 Fix PTS returned by the demuxers for mpeg4 without a decoder.
More precissely fix has_b_frames.
Fixes issue757

Originally committed as revision 16256 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-12-21 21:47:29 +00:00