ffmpeg.git
12 years agoIndent
Michael Niedermayer [Tue, 23 Dec 2008 17:50:36 +0000 (17:50 +0000)]
Indent

Originally committed as revision 16292 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agounified CAVLC level decoding LUT.
Michael Niedermayer [Tue, 23 Dec 2008 17:49:38 +0000 (17:49 +0000)]
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

12 years agoComplete the list of external libraries.
Víctor Paesa [Tue, 23 Dec 2008 10:29:32 +0000 (10:29 +0000)]
Complete the list of external libraries.

Originally committed as revision 16290 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoAdvice on compiler versions
Víctor Paesa [Tue, 23 Dec 2008 09:09:21 +0000 (09:09 +0000)]
Advice on compiler versions

Originally committed as revision 16289 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoUpdate Cygwin Ports URL.
Víctor Paesa [Tue, 23 Dec 2008 08:57:28 +0000 (08:57 +0000)]
Update Cygwin Ports URL.

Originally committed as revision 16288 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoBring up to date the Cygwin docs.
Víctor Paesa [Tue, 23 Dec 2008 08:53:37 +0000 (08:53 +0000)]
Bring up to date the Cygwin docs.

Originally committed as revision 16287 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoMake h264 parser 50% faster.
Michael Niedermayer [Tue, 23 Dec 2008 02:34:58 +0000 (02:34 +0000)]
Make h264 parser 50% faster.

Originally committed as revision 16286 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years ago100l, I broke H.264 again, forgot one hunk.
Michael Niedermayer [Tue, 23 Dec 2008 01:11:56 +0000 (01:11 +0000)]
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

12 years agoOptimize 0 0 0-3 search, 45% faster on pentium dual.
Michael Niedermayer [Tue, 23 Dec 2008 00:38:45 +0000 (00:38 +0000)]
Optimize 0 0 0-3 search, 45% faster on pentium dual.

Originally committed as revision 16284 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoThe diffutils package is also needed (for the 'cmp' command).
Víctor Paesa [Mon, 22 Dec 2008 23:30:33 +0000 (23:30 +0000)]
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

12 years agoRevert r16257:
Andreas Öman [Mon, 22 Dec 2008 22:39:55 +0000 (22:39 +0000)]
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

12 years agoFix two identical warnings when compiling riff.c and nuv.c with icc:
Carl Eugen Hoyos [Mon, 22 Dec 2008 22:12:44 +0000 (22:12 +0000)]
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

12 years agoFix a warning when compiling with icc:
Carl Eugen Hoyos [Mon, 22 Dec 2008 22:10:07 +0000 (22:10 +0000)]
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

12 years agoSimplify decode_cabac_mb_ref() a little bit, 2 cpu cycles faster on
Michael Niedermayer [Mon, 22 Dec 2008 17:14:13 +0000 (17:14 +0000)]
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

12 years agoIndent
Michael Niedermayer [Mon, 22 Dec 2008 16:56:05 +0000 (16:56 +0000)]
Indent

Originally committed as revision 16278 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoinline decode_cabac_mb_type for I & P frames, 9 cycles faster on pentium dual.
Michael Niedermayer [Mon, 22 Dec 2008 16:46:17 +0000 (16:46 +0000)]
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

12 years agoNegate 2 more variables, 1 cpu cycle faster on pentium dual.
Michael Niedermayer [Mon, 22 Dec 2008 16:20:13 +0000 (16:20 +0000)]
Negate 2 more variables, 1 cpu cycle faster on pentium dual.

Originally committed as revision 16276 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoSimplify if/else, no speed change
Michael Niedermayer [Mon, 22 Dec 2008 16:14:06 +0000 (16:14 +0000)]
Simplify if/else, no speed change

Originally committed as revision 16275 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoNegate a few variables, this simplifies the code and makes it 5 cycles faster
Michael Niedermayer [Mon, 22 Dec 2008 16:10:35 +0000 (16:10 +0000)]
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

12 years agoSimplify ifs(), 8 cpu cycles faster on pentium dual
Michael Niedermayer [Mon, 22 Dec 2008 15:54:27 +0000 (15:54 +0000)]
Simplify ifs(), 8 cpu cycles faster on pentium dual

Originally committed as revision 16273 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoSimplify if(), 3 cpu cycles faster in pentium dual.
Michael Niedermayer [Mon, 22 Dec 2008 15:53:00 +0000 (15:53 +0000)]
Simplify if(), 3 cpu cycles faster in pentium dual.

Originally committed as revision 16272 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoInitialize s->opaque before calling url_resetbuf().
Aurelien Jacobs [Mon, 22 Dec 2008 11:23:00 +0000 (11:23 +0000)]
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

12 years agoRename libavcodec/i386/ --> libavcodec/x86/.
Diego Biurrun [Mon, 22 Dec 2008 09:12:42 +0000 (09:12 +0000)]
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

12 years agoOffer an option (disabled by default) to enable the copy of the frames before
Wolfram Gloger [Mon, 22 Dec 2008 08:22:22 +0000 (08:22 +0000)]
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

12 years agoDecode TIFF image only after all tags have been decoded
Kostya Shishkov [Mon, 22 Dec 2008 06:50:18 +0000 (06:50 +0000)]
Decode TIFF image only after all tags have been decoded

Originally committed as revision 16268 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoSome TIFFs declare -1 for the single strip height
Kostya Shishkov [Mon, 22 Dec 2008 06:47:51 +0000 (06:47 +0000)]
Some TIFFs declare -1 for the single strip height

Originally committed as revision 16267 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoAdd monochrome TIFF support
Kostya Shishkov [Mon, 22 Dec 2008 06:43:14 +0000 (06:43 +0000)]
Add monochrome TIFF support

Originally committed as revision 16266 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoCalculate line size variable correctly for lower bitdepths and use it for raw data...
Kostya Shishkov [Mon, 22 Dec 2008 06:39:31 +0000 (06:39 +0000)]
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

12 years agoRegister TIFF tags for CCITT Group 3 and 4 compression options
Kostya Shishkov [Mon, 22 Dec 2008 06:36:10 +0000 (06:36 +0000)]
Register TIFF tags for CCITT Group 3 and 4 compression options

Originally committed as revision 16264 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRemove a bunch of unused variables.
Diego Biurrun [Mon, 22 Dec 2008 00:10:36 +0000 (00:10 +0000)]
Remove a bunch of unused variables.

Originally committed as revision 16263 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoUse ARCH_X86_32 instead of !ARCH_X86_64, it is more straightforward.
Diego Biurrun [Mon, 22 Dec 2008 00:03:30 +0000 (00:03 +0000)]
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

12 years agoFix incorrectly constructed Dirac parse units that caused A/V sync loss.
Anuradha Suraparaju [Mon, 22 Dec 2008 00:01:39 +0000 (00:01 +0000)]
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

12 years agoDo not use full include path for headers in the same directory.
Diego Biurrun [Sun, 21 Dec 2008 23:56:55 +0000 (23:56 +0000)]
Do not use full include path for headers in the same directory.

Originally committed as revision 16260 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoChange mpeg audio parser so it only sets frame_size, channels and bit_rate
Michael Niedermayer [Sun, 21 Dec 2008 23:50:16 +0000 (23:50 +0000)]
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

12 years agoSilence the following icc warnings:
Carl Eugen Hoyos [Sun, 21 Dec 2008 22:51:33 +0000 (22:51 +0000)]
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

12 years agoInclude "libavutil/common.h" where we use llrint() in case ffmpeg's
Andreas Öman [Sun, 21 Dec 2008 21:53:42 +0000 (21:53 +0000)]
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

12 years agoFix PTS returned by the demuxers for mpeg4 without a decoder.
Michael Niedermayer [Sun, 21 Dec 2008 21:47:29 +0000 (21:47 +0000)]
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

12 years agoMove CODEC_FLAG_LOW_DELAY into ff_mpeg4_decode_picture_header().
Michael Niedermayer [Sun, 21 Dec 2008 21:30:36 +0000 (21:30 +0000)]
Move CODEC_FLAG_LOW_DELAY into ff_mpeg4_decode_picture_header().

Originally committed as revision 16255 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoFix detection of audio codec in K70707-ARIA229.flv.
Michael Niedermayer [Sun, 21 Dec 2008 20:56:30 +0000 (20:56 +0000)]
Fix detection of audio codec in K70707-ARIA229.flv.
Fixes issue760.

Originally committed as revision 16254 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRemove useless code.
Michael Niedermayer [Sun, 21 Dec 2008 17:49:40 +0000 (17:49 +0000)]
Remove useless code.

Originally committed as revision 16253 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoOnly execute clear_blocks() when needed.
Michael Niedermayer [Sun, 21 Dec 2008 15:58:42 +0000 (15:58 +0000)]
Only execute clear_blocks() when needed.
+0.3% speedup for both aladin & cathedral.

Originally committed as revision 16252 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoAAC: Reindent after last commit
Robert Swain [Sun, 21 Dec 2008 05:32:55 +0000 (05:32 +0000)]
AAC: Reindent after last commit

Originally committed as revision 16251 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoAAC: Fix AAC prediction when used in conjunction with the CPE
Alex Converse [Sun, 21 Dec 2008 05:28:14 +0000 (05:28 +0000)]
AAC: Fix AAC prediction when used in conjunction with the CPE

Patch by Alex Converse (alex converse gmail com)

Originally committed as revision 16250 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoAAC: Don't write an illegal sampling_index in a PCE to the MPEG4AudioConfig
Alex Converse [Sun, 21 Dec 2008 05:08:32 +0000 (05:08 +0000)]
AAC: Don't write an illegal sampling_index in a PCE to the MPEG4AudioConfig
member

Patch by Alex Converse (alex converse gmail com)

Originally committed as revision 16249 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoOptimize get_dct8x8_allowed().
Michael Niedermayer [Sat, 20 Dec 2008 23:11:30 +0000 (23:11 +0000)]
Optimize get_dct8x8_allowed().
30 cpu cycles faster on pentium dual.

Originally committed as revision 16248 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRV30 decoder
Kostya Shishkov [Sat, 20 Dec 2008 18:06:01 +0000 (18:06 +0000)]
RV30 decoder

Originally committed as revision 16247 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoUse AV_GCC_VERSION_AT_LEAST() to simplify gcc version checks.
Carl Eugen Hoyos [Sat, 20 Dec 2008 17:33:35 +0000 (17:33 +0000)]
Use AV_GCC_VERSION_AT_LEAST() to simplify gcc version checks.

Originally committed as revision 16246 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRV30 loop filter
Kostya Shishkov [Sat, 20 Dec 2008 06:09:54 +0000 (06:09 +0000)]
RV30 loop filter

Originally committed as revision 16245 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoCosmetics by Kenan Gillet. Part 1 of 3 of his 'qcelp: silence handling'
Reynaldo H. Verdejo Pinochet [Sat, 20 Dec 2008 02:38:34 +0000 (02:38 +0000)]
Cosmetics by Kenan Gillet. Part 1 of 3 of his 'qcelp: silence handling'
changeset.

Originally committed as revision 16244 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoPut under #if LIBAVCODEC_VERSION_MAJOR < 53 the deprecated functions
Stefano Sabatini [Fri, 19 Dec 2008 22:37:56 +0000 (22:37 +0000)]
Put under #if LIBAVCODEC_VERSION_MAJOR < 53 the deprecated functions
av_set_string() and av_set_string2(), they will be dropped at the next
major bump.

Originally committed as revision 16243 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoCosmetics, change variable name "o2" to "o" in ffserver_opt_default().
Stefano Sabatini [Fri, 19 Dec 2008 22:33:15 +0000 (22:33 +0000)]
Cosmetics, change variable name "o2" to "o" in ffserver_opt_default().

Originally committed as revision 16242 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRemove calls to deprecated av_set_string2() with calls to
Stefano Sabatini [Fri, 19 Dec 2008 22:29:30 +0000 (22:29 +0000)]
Remove calls to deprecated av_set_string2() with calls to
av_set_string3().

Originally committed as revision 16241 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoH.264 loopfilter speed tweaks
Jason Garrett-Glaser [Fri, 19 Dec 2008 14:49:17 +0000 (14:49 +0000)]
H.264 loopfilter speed tweaks

Originally committed as revision 16240 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoPort x264 deblocking code to libavcodec.
Jason Garrett-Glaser [Fri, 19 Dec 2008 13:45:13 +0000 (13:45 +0000)]
Port x264 deblocking code to libavcodec.
This includes SSE2 luma deblocking code and both MMXEXT and SSE2 luma
intra deblocking code for H.264 decoding. This assembly is available
under --enable-gpl and speeds decoding of Cathedral by 7%.

Originally committed as revision 16239 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRemove pointless malloc.h #include.
Diego Biurrun [Fri, 19 Dec 2008 09:59:59 +0000 (09:59 +0000)]
Remove pointless malloc.h #include.

Originally committed as revision 28164 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

12 years agoRemove pointless malloc.h #include.
Diego Biurrun [Fri, 19 Dec 2008 09:59:18 +0000 (09:59 +0000)]
Remove pointless malloc.h #include.

Originally committed as revision 16238 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoDocument new idct requirements.
Michael Niedermayer [Fri, 19 Dec 2008 09:34:18 +0000 (09:34 +0000)]
Document new idct requirements.

Originally committed as revision 16237 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoFix decoding with the plain C idcts of
Michael Niedermayer [Fri, 19 Dec 2008 09:21:54 +0000 (09:21 +0000)]
Fix decoding with the plain C idcts of
FRExt/HPCAMOLQ_BRCM_B
FRExt/HPCAQ2LQ_BRCM_B
FRExt/HPCVMOLQ_BRCM_B

Originally committed as revision 16236 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoa table for upcoming RV30 loop filtering
Kostya Shishkov [Fri, 19 Dec 2008 06:29:35 +0000 (06:29 +0000)]
a table for upcoming RV30 loop filtering

Originally committed as revision 16235 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoAdd automatic prefix handling to yasm functions. Does nothing now, but will
Jason Garrett-Glaser [Fri, 19 Dec 2008 03:01:08 +0000 (03:01 +0000)]
Add automatic prefix handling to yasm functions.  Does nothing now, but will
be useful for porting x264 asm in the future.

Originally committed as revision 16234 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoReplace /2 by >>1 in decode_cabac_mb_dqp()
Michael Niedermayer [Fri, 19 Dec 2008 02:28:51 +0000 (02:28 +0000)]
Replace /2 by >>1 in decode_cabac_mb_dqp()
3 cpu cycles speed up on pentium dual.

Originally committed as revision 16233 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoSimplify ctx update in decode_cabac_mb_dqp().
Michael Niedermayer [Fri, 19 Dec 2008 02:00:33 +0000 (02:00 +0000)]
Simplify ctx update in decode_cabac_mb_dqp().
no speed change

Originally committed as revision 16232 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoSimplify ctx calculation in decode_cabac_mb_dqp()
Michael Niedermayer [Fri, 19 Dec 2008 01:50:20 +0000 (01:50 +0000)]
Simplify ctx calculation in decode_cabac_mb_dqp()
no speed change

Originally committed as revision 16231 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoClear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of NALs in rbsp_buffer.
Alexander Strange [Fri, 19 Dec 2008 01:11:52 +0000 (01:11 +0000)]
Clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of NALs in rbsp_buffer.

Fixes valgrind uninitialized value warnings at the end of decoding H.264
frames.

Originally committed as revision 16230 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoAllocate and clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of mkv
Alexander Strange [Fri, 19 Dec 2008 01:00:44 +0000 (01:00 +0000)]
Allocate and clear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of mkv
extradata.

Fixes valgrind invalid read warnings during H.264 extradata parsing.

Originally committed as revision 16229 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoMove filter_luma_intra into dsputil for later addition of asm.
Jason Garrett-Glaser [Fri, 19 Dec 2008 00:44:51 +0000 (00:44 +0000)]
Move filter_luma_intra into dsputil for later addition of asm.

Originally committed as revision 16228 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoSimplify chroma AC in CABAC residual decoding.
Jason Garrett-Glaser [Fri, 19 Dec 2008 00:43:30 +0000 (00:43 +0000)]
Simplify chroma AC in CABAC residual decoding.

Originally committed as revision 16227 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoOptimize ctx calculation in decode_cabac_mb_mvd(), code by dark shikari.
Michael Niedermayer [Fri, 19 Dec 2008 00:05:39 +0000 (00:05 +0000)]
Optimize ctx calculation in decode_cabac_mb_mvd(), code by dark shikari.
The case for 16x16 blocks becomes 10 cpu cycles faster on pentium dual,
i could not find a speed difference in the case of subblocks though.

Originally committed as revision 16226 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRemove unacceptable NULL pointer hack from mc code.
Michael Niedermayer [Thu, 18 Dec 2008 23:52:32 +0000 (23:52 +0000)]
Remove unacceptable NULL pointer hack from mc code.

Originally committed as revision 16225 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoCheck ref values in CABAC H.264 for validity.
Michael Niedermayer [Thu, 18 Dec 2008 23:31:10 +0000 (23:31 +0000)]
Check ref values in CABAC H.264 for validity.

Originally committed as revision 16224 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoMove idct_(dc)add closer to where it is needed.
Michael Niedermayer [Thu, 18 Dec 2008 18:25:11 +0000 (18:25 +0000)]
Move idct_(dc)add closer to where it is needed.

Originally committed as revision 16223 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoindent
Michael Niedermayer [Thu, 18 Dec 2008 18:14:38 +0000 (18:14 +0000)]
indent

Originally committed as revision 16222 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoReorder ifs in chroma hl_decode_mb to avoid a duplicate transform_bypass
Michael Niedermayer [Thu, 18 Dec 2008 18:12:59 +0000 (18:12 +0000)]
Reorder ifs in chroma hl_decode_mb to avoid a duplicate transform_bypass
check.
14 cpu cycles speedup on Pentium Dual

Originally committed as revision 16221 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agos/h->cbp_table[mb_xy]/h->cbp/
Michael Niedermayer [Thu, 18 Dec 2008 17:42:44 +0000 (17:42 +0000)]
s/h->cbp_table[mb_xy]/h->cbp/

Originally committed as revision 16220 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoFaster CAVLC decoding of trailing_ones. Based on a patch by dark shikari.
Michael Niedermayer [Thu, 18 Dec 2008 16:11:19 +0000 (16:11 +0000)]
Faster CAVLC decoding of trailing_ones. Based on a patch by dark shikari.
decode_residual is about 3.3% faster.

Originally committed as revision 16219 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoReplace i by trailing_ones, part of a patch by dark shikari.
Jason Garrett-Glaser [Thu, 18 Dec 2008 15:51:32 +0000 (15:51 +0000)]
Replace i by trailing_ones, part of a patch by dark shikari.
No speed change meassureable with START/STOP_TIMER, but this is needed
for future optimizations.

Originally committed as revision 16218 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRemove if() surrounding decode_cabac_mb_type() that can never be true.
Michael Niedermayer [Thu, 18 Dec 2008 15:32:07 +0000 (15:32 +0000)]
Remove if() surrounding decode_cabac_mb_type() that can never be true.

Originally committed as revision 16217 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRemove unreachable else clause, found by dark shikari.
Michael Niedermayer [Thu, 18 Dec 2008 15:21:15 +0000 (15:21 +0000)]
Remove unreachable else clause, found by dark shikari.

Originally committed as revision 16216 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRemove useless IS_8x8DCT check i forgot, spotted by dark shikari.
Michael Niedermayer [Thu, 18 Dec 2008 11:17:12 +0000 (11:17 +0000)]
Remove useless IS_8x8DCT check i forgot, spotted by dark shikari.

Originally committed as revision 16215 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years ago10l, svq3 didnt set h->cbp, this broke decoding a little.
Michael Niedermayer [Thu, 18 Dec 2008 11:01:38 +0000 (11:01 +0000)]
10l, svq3 didnt set h->cbp, this broke decoding a little.

Originally committed as revision 16214 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agocosmetics, remove useless parenthesis and whitespaces
Baptiste Coudurier [Thu, 18 Dec 2008 09:18:43 +0000 (09:18 +0000)]
cosmetics, remove useless parenthesis and whitespaces

Originally committed as revision 16213 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoset alac channels from extradata, fix alac mono in m4a
Baptiste Coudurier [Thu, 18 Dec 2008 09:17:19 +0000 (09:17 +0000)]
set alac channels from extradata, fix alac mono in m4a

Originally committed as revision 16212 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agocosmetics: remove one unneeded space
Kostya Shishkov [Thu, 18 Dec 2008 06:00:12 +0000 (06:00 +0000)]
cosmetics: remove one unneeded space

Originally committed as revision 16211 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoDo not calculate idct_dc_add/idct_add when the variables are unused.
Michael Niedermayer [Thu, 18 Dec 2008 04:13:02 +0000 (04:13 +0000)]
Do not calculate idct_dc_add/idct_add when the variables are unused.

Originally committed as revision 16210 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoRemove redundant nnz variable.
Michael Niedermayer [Thu, 18 Dec 2008 03:04:53 +0000 (03:04 +0000)]
Remove redundant nnz variable.

Originally committed as revision 16209 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoindent
Michael Niedermayer [Thu, 18 Dec 2008 02:56:44 +0000 (02:56 +0000)]
indent

Originally committed as revision 16208 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoUse the new idct functions (except chroma as it was slower in benchmarks)
Michael Niedermayer [Thu, 18 Dec 2008 02:53:18 +0000 (02:53 +0000)]
Use the new idct functions (except chroma as it was slower in benchmarks)
cathedral +0.5% speed
aladin +0.6% speed [note aladin has been cat-ed 10 times to reduce the influence
of init time]
Speedup also verified via START/STOP_TIMER (difference was very significant
for the changed parts)

Originally committed as revision 16207 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoH.264 idct functions that include the chroma, inter luma and intra16 luma loops
Michael Niedermayer [Thu, 18 Dec 2008 02:36:48 +0000 (02:36 +0000)]
H.264 idct functions that include the chroma, inter luma and intra16 luma loops
thus avoiding the calling overhead.
New functions are not yet used.

Originally committed as revision 16206 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoMake asf_get_packet() and asf_parse_packet() public for use in RTSP-MS and
Ronald S. Bultje [Thu, 18 Dec 2008 01:28:29 +0000 (01:28 +0000)]
Make asf_get_packet() and asf_parse_packet() public for use in RTSP-MS and
give them a ff_ prefix. See "[PATCH] asf.c: make functions of interest for
MS-RTSP public" thread on ML.

Originally committed as revision 16205 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoAdd a ByteIOContext argument to ASF functions that will be shared with the
Ronald S. Bultje [Thu, 18 Dec 2008 01:25:43 +0000 (01:25 +0000)]
Add a ByteIOContext argument to ASF functions that will be shared with the
RTSP stack for RTSP-MS support. This way, they can read input from any given
input source. See discussion in "[PATCH] add gb argument to ASF functions of
interest to MS-RTSP" ML thread.

Originally committed as revision 16204 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoSkip non intra luma code when there is no coded luma.
Michael Niedermayer [Thu, 18 Dec 2008 01:10:51 +0000 (01:10 +0000)]
Skip non intra luma code when there is no coded luma.
0.7% speedup for the cathedral sample.

Originally committed as revision 16203 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years ago1.6x faster pred*_vertical_add_c
Loren Merritt [Thu, 18 Dec 2008 01:05:06 +0000 (01:05 +0000)]
1.6x faster pred*_vertical_add_c

Originally committed as revision 16202 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoSkip chroma handling when there is no coded chroma.
Michael Niedermayer [Thu, 18 Dec 2008 00:46:54 +0000 (00:46 +0000)]
Skip chroma handling when there is no coded chroma.
0.5% overall speedup for the cathedral sample.

Originally committed as revision 16201 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoFix weird indent.
Stefano Sabatini [Thu, 18 Dec 2008 00:13:19 +0000 (00:13 +0000)]
Fix weird indent.

Originally committed as revision 16200 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoImplement size autodetection if one of the width and height
Stefano Sabatini [Wed, 17 Dec 2008 23:58:28 +0000 (23:58 +0000)]
Implement size autodetection if one of the width and height
AVFormatParameters for grab_read_header() is non-positive.

Originally committed as revision 16199 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoReplace the width and height fields in VideoData with a struct
Stefano Sabatini [Wed, 17 Dec 2008 23:51:19 +0000 (23:51 +0000)]
Replace the width and height fields in VideoData with a struct
video_window video_win field.

Originally committed as revision 16198 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoReplace frame_rate and frame_rate_base fields in VideoData with an
Stefano Sabatini [Wed, 17 Dec 2008 23:43:56 +0000 (23:43 +0000)]
Replace frame_rate and frame_rate_base fields in VideoData with an
AVRational time_base field.

Originally committed as revision 16197 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoFix opt_default(), making it exit immediately in case of an invalid
Stefano Sabatini [Wed, 17 Dec 2008 23:21:33 +0000 (23:21 +0000)]
Fix opt_default(), making it exit immediately in case of an invalid
argument.
See the thread: "[PATCH] Fix opt_default()".

Originally committed as revision 16196 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agoadd const qualifier to some pointers for input data
Kostya Shishkov [Wed, 17 Dec 2008 20:17:07 +0000 (20:17 +0000)]
add const qualifier to some pointers for input data

Originally committed as revision 16195 to svn://svn.ffmpeg.org/ffmpeg/trunk

12 years agouse precalculated mb_pos where available
Kostya Shishkov [Wed, 17 Dec 2008 20:10:15 +0000 (20:10 +0000)]
use precalculated mb_pos where available

Originally committed as revision 16194 to svn://svn.ffmpeg.org/ffmpeg/trunk