]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/log
frescor/ffmpeg.git
15 years agoUpdate Cygwin Ports URL.
victor [Tue, 23 Dec 2008 08:57:28 +0000 (08:57 +0000)]
Update Cygwin Ports URL.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16288 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoBring up to date the Cygwin docs.
victor [Tue, 23 Dec 2008 08:53:37 +0000 (08:53 +0000)]
Bring up to date the Cygwin docs.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16287 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16286 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years ago100l, I broke H.264 again, forgot one hunk.
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16285 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16284 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoThe diffutils package is also needed (for the 'cmp' command).
victor [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16283 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRevert r16257:
andoma [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16282 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix two identical warnings when compiling riff.c and nuv.c with icc:
cehoyos [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16281 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix a warning when compiling with icc:
cehoyos [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16280 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSimplify decode_cabac_mb_ref() a little bit, 2 cpu cycles faster on
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16279 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoIndent
michael [Mon, 22 Dec 2008 16:56:05 +0000 (16:56 +0000)]
Indent

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16278 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoinline decode_cabac_mb_type for I & P frames, 9 cycles faster on pentium dual.
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16277 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16276 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16275 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoNegate a few variables, this simplifies the code and makes it 5 cycles faster
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16274 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16273 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16272 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoInitialize s->opaque before calling url_resetbuf().
cehoyos [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16271 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRename libavcodec/i386/ --> libavcodec/x86/.
diego [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16270 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoOffer an option (disabled by default) to enable the copy of the frames before
benoit [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16269 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16268 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16267 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16266 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoCalculate line size variable correctly for lower bitdepths and use it for raw data...
kostya [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16265 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16264 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16263 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse ARCH_X86_32 instead of !ARCH_X86_64, it is more straightforward.
diego [Mon, 22 Dec 2008 00:03:30 +0000 (00:03 +0000)]
Use ARCH_X86_32 instead of !ARCH_X86_64, it is more straightforward.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16262 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix incorrectly constructed Dirac parse units that caused A/V sync loss.
diego [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16261 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16260 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoChange mpeg audio parser so it only sets frame_size, channels and bit_rate
michael [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16259 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSilence the following icc warnings:
cehoyos [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16258 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoInclude "libavutil/common.h" where we use llrint() in case ffmpeg's
andoma [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16257 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix PTS returned by the demuxers for mpeg4 without a decoder.
michael [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16256 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16255 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16254 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16253 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16252 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16251 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAAC: Fix AAC prediction when used in conjunction with the CPE
superdump [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)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16250 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAAC: Don't write an illegal sampling_index in a PCE to the MPEG4AudioConfig
superdump [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)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16249 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoOptimize get_dct8x8_allowed().
michael [Sat, 20 Dec 2008 23:11:30 +0000 (23:11 +0000)]
Optimize get_dct8x8_allowed().
30 cpu cycles faster in pentium dual.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16248 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRV30 decoder
kostya [Sat, 20 Dec 2008 18:06:01 +0000 (18:06 +0000)]
RV30 decoder

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16247 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16246 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16245 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoCosmetics by Kenan Gillet. Part 1 of 3 of his 'qcelp: silence handling'
reynaldo [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16244 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoPut under #if LIBAVCODEC_VERSION_MAJOR < 53 the deprecated functions
stefano [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16243 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16242 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16241 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoH.264 loopfilter speed tweaks
darkshikari [Fri, 19 Dec 2008 14:49:17 +0000 (14:49 +0000)]
H.264 loopfilter speed tweaks

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16240 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoPort x264 deblocking code to libavcodec. This includes SSE2 luma deblocking code...
darkshikari [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%.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16239 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16238 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16237 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix decoding with the plain C idcts of
michael [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16236 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16235 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd automatic prefix handling to yasm functions. Does nothing now, but will be usefu...
darkshikari [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16234 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReplace /2 by >>1 in decode_cabac_mb_dqp()
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16233 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16232 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16231 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoClear FF_INPUT_BUFFER_PADDING_SIZE bytes at the end of NALs in rbsp_buffer.
astrange [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16230 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16229 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMove filter_luma_intra into dsputil for later addition of asm.
darkshikari [Fri, 19 Dec 2008 00:44:51 +0000 (00:44 +0000)]
Move filter_luma_intra into dsputil for later addition of asm.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16228 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSimplify chroma AC in CABAC residual decoding.
darkshikari [Fri, 19 Dec 2008 00:43:30 +0000 (00:43 +0000)]
Simplify chroma AC in CABAC residual decoding.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16227 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoOptimize ctx calculation in decode_cabac_mb_mvd(), code by dark shikari.
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16226 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16225 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16224 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16223 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoindent
michael [Thu, 18 Dec 2008 18:14:38 +0000 (18:14 +0000)]
indent

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16222 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReorder ifs in chroma hl_decode_mb to avoid a duplicate transform_bypass
michael [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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16221 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16220 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFaster CAVLC decoding of trailing_ones. Based on a patch by dark shikari.
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16219 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReplace i by trailing_ones, part of a patch by dark shikari.
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16218 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16217 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16216 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16215 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16214 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16213 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16212 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16211 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16210 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16209 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoindent
michael [Thu, 18 Dec 2008 02:56:44 +0000 (02:56 +0000)]
indent

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16208 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse the new idct functions (except chroma as it was slower in benchmarks)
michael [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)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16207 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoH.264 idct functions that include the chroma, inter luma and intra16 luma loops
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16206 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake asf_get_packet() and asf_parse_packet() public for use in RTSP-MS and
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16205 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd a ByteIOContext argument to ASF functions that will be shared with the
rbultje [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16204 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSkip non intra luma code when there is no coded luma.
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16203 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16202 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSkip chroma handling when there is no coded chroma.
michael [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16201 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16200 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoImplement size autodetection if one of the width and height
stefano [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16199 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReokace the width and height fields in VideoData with the struct
stefano [Wed, 17 Dec 2008 23:51:19 +0000 (23:51 +0000)]
Reokace the width and height fields in VideoData with the struct
video_window video_win field.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16198 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReplace frame_rate and frame_rate_base fields in VideoData with an
stefano [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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16197 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix opt_default(), making it exit immediately in case of an invalid
stefano [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()".

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16196 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16195 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16194 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoARM: make FASTDIV() an inline function
mru [Wed, 17 Dec 2008 20:04:39 +0000 (20:04 +0000)]
ARM: make FASTDIV() an inline function

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16193 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMerge deblocking pattern with CBP for RV30/40 loop filtering
kostya [Wed, 17 Dec 2008 20:00:48 +0000 (20:00 +0000)]
Merge deblocking pattern with CBP for RV30/40 loop filtering

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16192 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoGenerate correct deblock pattern for RV30
kostya [Wed, 17 Dec 2008 19:39:56 +0000 (19:39 +0000)]
Generate correct deblock pattern for RV30

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16191 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUnfortunately RV30 luma thirdpel MC functions cannot be substituted with
kostya [Wed, 17 Dec 2008 19:37:45 +0000 (19:37 +0000)]
Unfortunately RV30 luma thirdpel MC functions cannot be substituted with
applying two separate filtering passes, so implement them explicitly.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16190 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years ago4l: TIFF stores short strings inside tag, do not interpret it is as an offset
kostya [Wed, 17 Dec 2008 17:39:35 +0000 (17:39 +0000)]
4l: TIFF stores short strings inside tag, do not interpret it is as an offset

Fixes issue 753
-This line, and those below, will be ignored--

M    libavcodec/tiff.c

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16189 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b