]> git.sesse.net Git - ffmpeg/log
ffmpeg
14 years agoRevert commits 21227, 21441, and 21442. None of this is necessary now that we
Ramiro Polla [Fri, 29 Jan 2010 19:50:58 +0000 (19:50 +0000)]
Revert commits 21227, 21441, and 21442. None of this is necessary now that we
load the getaddrinfo family of functions through GetProcAddress. Also, there
is currently no feature that gets fixed in Win98 through the use of KernelEx.

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

14 years agoMake VP5 and VP6 decoders output a qscale table to allow for more automatic
Reimar Döffinger [Fri, 29 Jan 2010 19:11:47 +0000 (19:11 +0000)]
Make VP5 and VP6 decoders output a qscale table to allow for more automatic
post-processing, and add a new FF_QSCALE_TYPE_VP56 for this.

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

14 years agoAdd no_repeat_mask option, so that single-pulse vectors can also be
Ronald S. Bultje [Fri, 29 Jan 2010 16:49:06 +0000 (16:49 +0000)]
Add no_repeat_mask option, so that single-pulse vectors can also be
expressed in a AMRFixed structure and handled by ff_set_fixed_vector().

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

14 years agoAdd support for vorbis 6.1 and 7.1 channel configurations as per the new spec
Robert Swain [Fri, 29 Jan 2010 13:51:25 +0000 (13:51 +0000)]
Add support for vorbis 6.1 and 7.1 channel configurations as per the new spec

http://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-800004.3.9

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

14 years agoRemove MAX_STREAMS usage in ogg and mxf muxers
Baptiste Coudurier [Fri, 29 Jan 2010 06:38:00 +0000 (06:38 +0000)]
Remove MAX_STREAMS usage in ogg and mxf muxers

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

14 years agoSet target_path to $(PWD) by default
Måns Rullgård [Fri, 29 Jan 2010 04:13:29 +0000 (04:13 +0000)]
Set target_path to $(PWD) by default

This simplifies configuring for the most common remote testing
setup.

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

14 years agoAdd AV_COPY32
Måns Rullgård [Fri, 29 Jan 2010 03:26:17 +0000 (03:26 +0000)]
Add AV_COPY32

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

14 years agoDefine av_alias if supported by compiler
Måns Rullgård [Fri, 29 Jan 2010 03:26:14 +0000 (03:26 +0000)]
Define av_alias if supported by compiler

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

14 years agoCheck for may_alias gcc attribute support
Måns Rullgård [Fri, 29 Jan 2010 03:26:12 +0000 (03:26 +0000)]
Check for may_alias gcc attribute support

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

14 years agovp56: check buffer size to fix a potential segfault
Laurent Aimar [Thu, 28 Jan 2010 23:49:46 +0000 (23:49 +0000)]
vp56: check buffer size to fix a potential segfault
patch by Laurent Aimar  fenrir _at_ videolan _dot_ org

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

14 years agoMove ECFLAGS so it doesn't get added multiple times
Måns Rullgård [Thu, 28 Jan 2010 23:30:24 +0000 (23:30 +0000)]
Move ECFLAGS so it doesn't get added multiple times

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

14 years agoSimplify error handling by processing header errors separate from CRC and
Justin Ruggles [Thu, 28 Jan 2010 23:19:33 +0000 (23:19 +0000)]
Simplify error handling by processing header errors separate from CRC and
buffer size vs. frame size errors.

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

14 years agoMove variable declaration to block where it is used and simplify code.
Reimar Döffinger [Thu, 28 Jan 2010 21:01:50 +0000 (21:01 +0000)]
Move variable declaration to block where it is used and simplify code.
Avoids a (incorrect) "possibly used uninitialized" warning, no measurable
speed difference.

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

14 years agoExport H264 profile and level in AVCodecContext.
Rafaël Carré [Thu, 28 Jan 2010 20:57:29 +0000 (20:57 +0000)]
Export H264 profile and level in AVCodecContext.

Patch by Rafaël Carré, rafael D carre A gmail

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

14 years agoExtract duplicated code into a separate function.
Reimar Döffinger [Thu, 28 Jan 2010 20:15:19 +0000 (20:15 +0000)]
Extract duplicated code into a separate function.
5% faster on Intel Atom with gcc 4.4.1 (performance is unchanged
if using av_always_inline).

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

14 years agoAppend ECFLAGS to CFLAGS
Måns Rullgård [Thu, 28 Jan 2010 20:13:46 +0000 (20:13 +0000)]
Append ECFLAGS to CFLAGS

This makes it easy to supply extra flags on the make command line
for testing purposes.

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

14 years agofactorize first filter call out, this makes the code somewhat
Michael Niedermayer [Thu, 28 Jan 2010 19:44:13 +0000 (19:44 +0000)]
factorize first filter call out, this makes the code somewhat
smaller without any speed loss.

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

14 years agoffmpeg.c : Don't set AVFormatParameters::[audio|video]_codec_id
Jai Menon [Thu, 28 Jan 2010 16:17:52 +0000 (16:17 +0000)]
ffmpeg.c : Don't set AVFormatParameters::[audio|video]_codec_id
since it is no longer required.

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

14 years agoAdd RTP/H.263 depacketizer by Martin Storsjö <$firstname () $firstname st>.
Ronald S. Bultje [Thu, 28 Jan 2010 16:08:13 +0000 (16:08 +0000)]
Add RTP/H.263 depacketizer by Martin Storsjö <$firstname () $firstname st>.

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

14 years agoAvoid using deprecated AVFormatParameters::[audio|video]_codec_id field.
Jai Menon [Thu, 28 Jan 2010 15:45:21 +0000 (15:45 +0000)]
Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field.

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

14 years agoSimplify. See "[PATCH] simplify ff_set_fixed_vector()" thread on mailinglist.
Ronald S. Bultje [Thu, 28 Jan 2010 14:29:53 +0000 (14:29 +0000)]
Simplify. See "[PATCH] simplify ff_set_fixed_vector()" thread on mailinglist.

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

14 years agoAdd --malloc-prefix to apply a prefix to malloc, free etc
Måns Rullgård [Thu, 28 Jan 2010 13:06:31 +0000 (13:06 +0000)]
Add --malloc-prefix to apply a prefix to malloc, free etc

This makes it easy to use a replacement allocator instead of the
system default one.

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

14 years agoInitialize thread_context[0] with h264 parser context.
Rafaël Carré [Thu, 28 Jan 2010 13:04:25 +0000 (13:04 +0000)]
Initialize thread_context[0] with h264 parser context.
This allows freeing the parser memory in the thread_context freeing loop.

Patch by Rafaël Carré gmailify(rafael, carre)

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

14 years agoChange wraper functions to always inline, they are faster now that way.
Michael Niedermayer [Thu, 28 Jan 2010 11:37:35 +0000 (11:37 +0000)]
Change wraper functions to always inline, they are faster now that way.
1% faster MBAFF decoding overall, maybe ~0.1% faster for the cathedral sample.

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

14 years agoindent
Michael Niedermayer [Thu, 28 Jan 2010 11:18:06 +0000 (11:18 +0000)]
indent

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

14 years agoRestructure check_mv()
Michael Niedermayer [Thu, 28 Jan 2010 11:12:46 +0000 (11:12 +0000)]
Restructure check_mv()
~20 cpu cycles faster loopfilter

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

14 years agoRestructure if() in check_mv()
Michael Niedermayer [Thu, 28 Jan 2010 10:38:43 +0000 (10:38 +0000)]
Restructure if() in check_mv()
quite a bit faster

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

14 years agoUnroll loops in check_mv()
Michael Niedermayer [Thu, 28 Jan 2010 10:34:06 +0000 (10:34 +0000)]
Unroll loops in check_mv()
~6% faster (slow path) loopfilter (should be ~2% overall)

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

14 years agoFactor mv/ref compare code out.
Michael Niedermayer [Thu, 28 Jan 2010 10:10:02 +0000 (10:10 +0000)]
Factor mv/ref compare code out.
This is a hair slower (0.15% maybe) but i really dont want to have the
identical code duplicated 3 times because gcc adds odd threaded jumps with
register reshuffling and register safe/restore.

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

14 years agoUse av_mallocz in url_open_protocol for URLContext.
Daniel Kristjansson [Thu, 28 Jan 2010 09:11:26 +0000 (09:11 +0000)]
Use av_mallocz in url_open_protocol for URLContext.
Patch by Daniel Kristjansson: danielk cuymedia net

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

14 years agoRemove last MAX_STREAMS from avienc.c
Michael Niedermayer [Thu, 28 Jan 2010 03:37:22 +0000 (03:37 +0000)]
Remove last MAX_STREAMS from avienc.c

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

14 years agoconfigure: consolidate compiler-specific optimisation settings
Måns Rullgård [Thu, 28 Jan 2010 02:50:36 +0000 (02:50 +0000)]
configure: consolidate compiler-specific optimisation settings

In the main per-compiler section, set speed_cflags and size_cflags
with suitable values.  Later one or the other is added to CFLAGS.

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

14 years agoIntroduce AVIStream struct and move stream based variables to it.
Michael Niedermayer [Thu, 28 Jan 2010 02:45:17 +0000 (02:45 +0000)]
Introduce AVIStream struct and move stream based variables to it.
This removes all but one MAX_STREAM from avienc.c.

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

14 years agoSimplify first edge filter condition.
Michael Niedermayer [Thu, 28 Jan 2010 02:41:52 +0000 (02:41 +0000)]
Simplify first edge filter condition.

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

14 years agoCosmetics, mostly indention, 2 or so new fixme comments that i was to lazy
Michael Niedermayer [Thu, 28 Jan 2010 02:20:31 +0000 (02:20 +0000)]
Cosmetics, mostly indention, 2 or so new fixme comments that i was to lazy
to split out

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

14 years agoMake the fast loop filter path work with unavailable left MBs.
Michael Niedermayer [Thu, 28 Jan 2010 02:15:25 +0000 (02:15 +0000)]
Make the fast loop filter path work with unavailable left MBs.
This prevents the issue with having to switch between slow and
fast code paths in each row.
0.5% faster loopfilter for cathedral

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

14 years agoget rid of the start variable.
Michael Niedermayer [Thu, 28 Jan 2010 01:31:06 +0000 (01:31 +0000)]
get rid of the start variable.
a few cycles faster

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

14 years agoUnroll main loop so the edge==0 case is seperate.
Michael Niedermayer [Thu, 28 Jan 2010 01:24:25 +0000 (01:24 +0000)]
Unroll main loop so the edge==0 case is seperate.
This allows many things to be simplified away.
h264 decoder is overall 1% faster with a mbaff sample and
0.1% slower with the cathedral sample, probably because the slow loop
filter code must be loaded into the code cache for each first MB of each
row but isnt used for the following MBs.

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

14 years agoDeclare variable "version" in the PRINT_LIB_VERSION() macro if block,
Stefano Sabatini [Wed, 27 Jan 2010 23:08:43 +0000 (23:08 +0000)]
Declare variable "version" in the PRINT_LIB_VERSION() macro if block,
slightly simpler and more robust.

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

14 years agoSupport demuxing Blu-ray subtitles in matroska files.
Carl Eugen Hoyos [Wed, 27 Jan 2010 22:39:18 +0000 (22:39 +0000)]
Support demuxing Blu-ray subtitles in matroska files.

Patch sent to mailing list by Taylor Ralph, taylor D ralph A gmail

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

14 years agoFix BSD compile (PF_UNSPEC is not a standard define, AF_UNSPEC is).
Ronald S. Bultje [Wed, 27 Jan 2010 22:31:13 +0000 (22:31 +0000)]
Fix BSD compile (PF_UNSPEC is not a standard define, AF_UNSPEC is).

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

14 years agoFix svq3_* function declarations.
Rafaël Carré [Wed, 27 Jan 2010 22:22:01 +0000 (22:22 +0000)]
Fix svq3_* function declarations.

Patch by Rafaël Carré, rafael D carre A gmail

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

14 years agoSVQ1: 4-byte-align codebook tables
Måns Rullgård [Wed, 27 Jan 2010 21:31:19 +0000 (21:31 +0000)]
SVQ1: 4-byte-align codebook tables

These tables are accessed as uint32 so they must be suitably aligned.

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

14 years agoFix possible crashes in mlp parser, it tries to go back 7 bytes after
Reimar Döffinger [Wed, 27 Jan 2010 20:04:19 +0000 (20:04 +0000)]
Fix possible crashes in mlp parser, it tries to go back 7 bytes after
finding the 4-byte signature.
Add a check that ignores the signature if we do not have enough previous
data to go back at least 7 bytes.

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

14 years agoReduce log level of "Extracting .. channel downmix" to AV_LOG_DEBUG, the
Reimar Döffinger [Wed, 27 Jan 2010 20:02:18 +0000 (20:02 +0000)]
Reduce log level of "Extracting .. channel downmix" to AV_LOG_DEBUG, the
message is pointless to ordinary users and is printed once per frame.

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

14 years agoFix duration calculation in the presence of a single wraping of the timeline.
Michael Niedermayer [Wed, 27 Jan 2010 19:37:52 +0000 (19:37 +0000)]
Fix duration calculation in the presence of a single wraping of the timeline.
Fixes issue1714.

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

14 years agoSchedule an increase in the maximum number of streams
Jai Menon [Wed, 27 Jan 2010 19:13:35 +0000 (19:13 +0000)]
Schedule an increase in the maximum number of streams
at next libavformat major version bump.

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

14 years agoffmpeg.c : Increase static limit on the maximum number of
Jai Menon [Wed, 27 Jan 2010 19:11:31 +0000 (19:11 +0000)]
ffmpeg.c : Increase static limit on the maximum number of
input files.

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

14 years agoAdd macro AV_JOIN() for joining two tokens into one
Måns Rullgård [Wed, 27 Jan 2010 17:38:53 +0000 (17:38 +0000)]
Add macro AV_JOIN() for joining two tokens into one

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

14 years agoRevert Revision: 21362
Michael Niedermayer [Wed, 27 Jan 2010 13:30:05 +0000 (13:30 +0000)]
Revert  Revision: 21362
Log:
Set CODEC_CAP_SUBFRAMES for adpcm decoders

This makes ffmpeg stop printing millions of
  Multiple frames in a packet from stream 0
when decoding adpcm.
Reason: adpcm has no subframes, the flag does not belong there

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

14 years agoPrint "Multiple frames in a packet" warning independant of CODEC_CAP_SUBFRAMES
Michael Niedermayer [Wed, 27 Jan 2010 13:27:18 +0000 (13:27 +0000)]
Print "Multiple frames in a packet" warning independant of CODEC_CAP_SUBFRAMES
because CODEC_CAP_SUBFRAMES is primarely misused to hide this warning otherwise
which renders the flag completely useless.

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

14 years agoUpdate comment.
Michael Niedermayer [Wed, 27 Jan 2010 13:18:08 +0000 (13:18 +0000)]
Update comment.

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

14 years agoRevert Revision: 21473
Michael Niedermayer [Wed, 27 Jan 2010 13:03:53 +0000 (13:03 +0000)]
Revert  Revision: 21473
Log:
Fix misc typos, patch by
Fabian Greffrath base64_decode(PGZhYmlhbkBncmVmZnJhdGguY29tPg==).
This violates the spec.

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

14 years agoPrettify PRINT_LIB_VERSION macro
Måns Rullgård [Wed, 27 Jan 2010 12:58:26 +0000 (12:58 +0000)]
Prettify PRINT_LIB_VERSION macro

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

14 years agoGet rid of ifdeffery for printing library versions and configurations
Måns Rullgård [Wed, 27 Jan 2010 12:58:22 +0000 (12:58 +0000)]
Get rid of ifdeffery for printing library versions and configurations

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

14 years agoEmit CONFIG_AVUTIL for completeness
Måns Rullgård [Wed, 27 Jan 2010 12:58:19 +0000 (12:58 +0000)]
Emit CONFIG_AVUTIL for completeness

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

14 years agoUse table to speedup access to non_zero_count in MBAFF with differing interlacing.
Michael Niedermayer [Wed, 27 Jan 2010 11:14:29 +0000 (11:14 +0000)]
Use table to speedup access to non_zero_count in MBAFF with differing interlacing.
~4 cpu cycles speedup

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

14 years agoFix misc typos, patch by
Stefano Sabatini [Wed, 27 Jan 2010 00:31:52 +0000 (00:31 +0000)]
Fix misc typos, patch by
Fabian Greffrath base64_decode(PGZhYmlhbkBncmVmZnJhdGguY29tPg==).

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

14 years ago10l: fix linking
Måns Rullgård [Wed, 27 Jan 2010 00:26:41 +0000 (00:26 +0000)]
10l: fix linking

Alphabetical order isn't always a good idea.

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

14 years agoRename swscale-example to swscale-test, to better reflect the intended
Stefano Sabatini [Wed, 27 Jan 2010 00:25:23 +0000 (00:25 +0000)]
Rename swscale-example to swscale-test, to better reflect the intended
use of the program.

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

14 years agoDocument av_register_protocol(), not that it really needs to be
Stefano Sabatini [Wed, 27 Jan 2010 00:21:28 +0000 (00:21 +0000)]
Document av_register_protocol(), not that it really needs to be
documented but it's nice to have everything documented.

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

14 years agoSimplify left_xy init
Michael Niedermayer [Wed, 27 Jan 2010 00:15:55 +0000 (00:15 +0000)]
Simplify left_xy init

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

14 years agoSplit fill_caches() between loopfilter & decode, the 2 no longer where common
Michael Niedermayer [Tue, 26 Jan 2010 23:54:11 +0000 (23:54 +0000)]
Split fill_caches() between loopfilter & decode, the 2 no longer where common
enough to justify the messy interleaving.

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

14 years agoAllow disabling of lavc, lavf, lavd, and lsws
Måns Rullgård [Tue, 26 Jan 2010 23:13:01 +0000 (23:13 +0000)]
Allow disabling of lavc, lavf, lavd, and lsws

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

14 years agoOptimize loop filtering of the left edge in MBAFF.
Michael Niedermayer [Tue, 26 Jan 2010 22:59:19 +0000 (22:59 +0000)]
Optimize loop filtering of the left edge in MBAFF.
60 cpu cycles speedup

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

14 years agoRevert r21226, it was a joke:
Ramiro Polla [Tue, 26 Jan 2010 22:23:12 +0000 (22:23 +0000)]
Revert r21226, it was a joke:
Get one step closer to world domination.
Remove "make uninstall".

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

14 years agouse left_xy[1] in mbaff QP loop filter check, this improves the amount that can
Michael Niedermayer [Tue, 26 Jan 2010 20:28:58 +0000 (20:28 +0000)]
use left_xy[1] in mbaff QP loop filter check, this improves the amount that can
be skiped.

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

14 years agoOptimize mv/ref cache init for left MB.
Michael Niedermayer [Tue, 26 Jan 2010 20:25:14 +0000 (20:25 +0000)]
Optimize mv/ref cache init for left MB.

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

14 years agoAdd UMULH()
Måns Rullgård [Tue, 26 Jan 2010 18:05:55 +0000 (18:05 +0000)]
Add UMULH()

This function/macro returns the high half of the unsigned 64-bit
product of two unsigned 32-bit operands.

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

14 years agooptimize h264_loop_filter_strength_mmx2
Loren Merritt [Tue, 26 Jan 2010 17:17:48 +0000 (17:17 +0000)]
optimize h264_loop_filter_strength_mmx2
244->160 cycles on core2

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

14 years agoDon't use tcp_fd if we're not using TCP-based connections (e.g. when
Jeremy Morton [Tue, 26 Jan 2010 15:51:54 +0000 (15:51 +0000)]
Don't use tcp_fd if we're not using TCP-based connections (e.g. when
reading direct SDP files to set up UDP-based RTP-streams). Fixes
issue 1713. Patch by Jeremy Morton <ffmpeg game-point net>.

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

14 years agoremove unneeded check
Michael Niedermayer [Tue, 26 Jan 2010 15:34:21 +0000 (15:34 +0000)]
remove unneeded check

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

14 years agoUse left_mb_xy from fill_caches instead of recalculating it.
Michael Niedermayer [Tue, 26 Jan 2010 14:57:53 +0000 (14:57 +0000)]
Use left_mb_xy from fill_caches instead of recalculating it.

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

14 years agoSimplify left_xy content for the loop filter, this also makes it closer to
Michael Niedermayer [Tue, 26 Jan 2010 14:55:19 +0000 (14:55 +0000)]
Simplify left_xy content for the loop filter, this also makes it closer to
what is needed and its faster too.

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

14 years agoSimplify loop filter a little by using top/left_type.
Michael Niedermayer [Tue, 26 Jan 2010 13:39:26 +0000 (13:39 +0000)]
Simplify loop filter a little by using top/left_type.

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

14 years agoSet top & left types for deblock in fill_caches().
Michael Niedermayer [Tue, 26 Jan 2010 13:38:18 +0000 (13:38 +0000)]
Set top & left types for deblock in fill_caches().

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

14 years ago100l typo fix, mixed up +-1 forcing the loop filter skip to never skip.
Michael Niedermayer [Tue, 26 Jan 2010 13:30:33 +0000 (13:30 +0000)]
100l typo fix, mixed up +-1 forcing the loop filter skip to never skip.

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

14 years agocosmetic
Michael Niedermayer [Tue, 26 Jan 2010 13:28:55 +0000 (13:28 +0000)]
cosmetic

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

14 years agoFix qp_thres loop filter check for MBAFF.
Michael Niedermayer [Tue, 26 Jan 2010 13:27:22 +0000 (13:27 +0000)]
Fix qp_thres loop filter check for MBAFF.

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

14 years agoOptimize mb neighbor initialization for MBAFF in fill_caches().
Michael Niedermayer [Tue, 26 Jan 2010 10:35:36 +0000 (10:35 +0000)]
Optimize mb neighbor initialization for MBAFF in fill_caches().
~10 cpu cycles speedup.

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

14 years agoMetasoft MJPEG codec has Cb and Cr swapped, fixes issue 1611.
Carl Eugen Hoyos [Tue, 26 Jan 2010 10:30:24 +0000 (10:30 +0000)]
Metasoft MJPEG codec has Cb and Cr swapped, fixes issue 1611.

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

14 years agoUse isAnyRGB() where possible
Michael Niedermayer [Tue, 26 Jan 2010 08:03:28 +0000 (08:03 +0000)]
Use isAnyRGB() where possible

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

14 years agoAdd 3 more RGB makros that allow specifying RGB in bytes and any rgb/bgr.
Michael Niedermayer [Tue, 26 Jan 2010 08:01:50 +0000 (08:01 +0000)]
Add 3 more RGB makros that allow specifying RGB in bytes and any rgb/bgr.

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

14 years agoRename isRGB() and isBGR() as their meaning is confusing.
Michael Niedermayer [Tue, 26 Jan 2010 07:40:14 +0000 (07:40 +0000)]
Rename isRGB() and isBGR() as their meaning is confusing.

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

14 years agoMerge two "if (flags & SWS_PRINT_INFO) { ... }" blocks, slightly
Stefano Sabatini [Mon, 25 Jan 2010 22:46:09 +0000 (22:46 +0000)]
Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks, slightly
simplify code.

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

14 years agoFix heap overflow due to lack of nb_components check.
Michael Niedermayer [Mon, 25 Jan 2010 13:26:10 +0000 (13:26 +0000)]
Fix heap overflow due to lack of nb_components check.

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

14 years agoRelease buffer when decoding is finished.
Carl Eugen Hoyos [Mon, 25 Jan 2010 10:46:32 +0000 (10:46 +0000)]
Release buffer when decoding is finished.

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

14 years agoPrint config of each lib if different from that of ffmpeg/ffplay/ffserver
Måns Rullgård [Mon, 25 Jan 2010 03:48:15 +0000 (03:48 +0000)]
Print config of each lib if different from that of ffmpeg/ffplay/ffserver

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

14 years agoOptimize decode_cabac_field_decoding_flag().
Michael Niedermayer [Mon, 25 Jan 2010 02:44:34 +0000 (02:44 +0000)]
Optimize decode_cabac_field_decoding_flag().
~4 cpu cycles faster

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

14 years agoconfigure: fix --cpu=nocona
Måns Rullgård [Mon, 25 Jan 2010 02:03:10 +0000 (02:03 +0000)]
configure: fix --cpu=nocona

Use x86_64_suggest instead of _select as otherwise fast_cmov being
disabled (as it should be for nocona) also disables x86_64 breaking
the build.

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

14 years ago100l, correct wrong H.264+adaptive MBAFF decoding
Alexander Strange [Mon, 25 Jan 2010 01:56:13 +0000 (01:56 +0000)]
100l, correct wrong H.264+adaptive MBAFF decoding

Fixes several FATE tests.

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

14 years agoCheck if dxva2api.h is recent enough to compile vc1_dxva2_hwaccel.
Ramiro Polla [Mon, 25 Jan 2010 01:34:48 +0000 (01:34 +0000)]
Check if dxva2api.h is recent enough to compile vc1_dxva2_hwaccel.

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

14 years agoLoad the proper getaddrinfo functions from ws2_32.dll, if they're present.
Martin Storsjö [Mon, 25 Jan 2010 01:28:01 +0000 (01:28 +0000)]
Load the proper getaddrinfo functions from ws2_32.dll, if they're present.

Patch by Martin Storsjö <martin at martin dot st>.

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

14 years agoCheck for getaddrinfo in the winsock headers.
Martin Storsjö [Mon, 25 Jan 2010 01:26:54 +0000 (01:26 +0000)]
Check for getaddrinfo in the winsock headers.

This makes us link directly to getaddrinfo if it is available, making
binaries incompatible with anything prior to windows XP. If compatibility
is desired, compile with --target-os=mingw32-prexp.

Patch by Martin Storsjö <martin at martin dot st>.

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

14 years agoOnly define _WIN32_WINNT=0x0501 if $target_os = "mingw32".
Martin Storsjö [Mon, 25 Jan 2010 01:25:59 +0000 (01:25 +0000)]
Only define _WIN32_WINNT=0x0501 if $target_os = "mingw32".
If compatibility with pre-XP versions is desired, use
--target-os=mingw32-prexp
Patch by Martin Storsjö <martin at martin dot st>.

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

14 years agoH.264: Use 64-/128-bit write-combining macros for copies
Alexander Strange [Mon, 25 Jan 2010 00:30:44 +0000 (00:30 +0000)]
H.264: Use 64-/128-bit write-combining macros for copies

2-3% faster decode on x86-32 core2.

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

14 years agoOnly check frame size if the header is valid.
Justin Ruggles [Sun, 24 Jan 2010 23:55:33 +0000 (23:55 +0000)]
Only check frame size if the header is valid.

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

14 years agoFix decoding ATI VCR2 codec, sample in
Carl Eugen Hoyos [Sun, 24 Jan 2010 22:47:50 +0000 (22:47 +0000)]
Fix decoding ATI VCR2 codec, sample in
samples/V-codecs/ATI-VCR12/ATI/VCR2test.avi
Software decoding was broken since r8865, when two new context variables
were added, but not initialized in vcr2_init_sequence().
Another such context variable was added in r18381.

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

14 years agoDoxument url_open().
Stefano Sabatini [Sun, 24 Jan 2010 22:07:32 +0000 (22:07 +0000)]
Doxument url_open().

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

14 years agoForce codec_tag I420 for Quicktime Planar Y'CbCr 8-bit 4:2:0 raw codec,
Carl Eugen Hoyos [Sun, 24 Jan 2010 21:37:35 +0000 (21:37 +0000)]
Force codec_tag I420 for Quicktime Planar Y'CbCr 8-bit 4:2:0 raw codec,
because YV12 triggers an UV swap in rawdec.c, fixes issue 1687.

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