ffmpeg.git
11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 years agoFix mis-computation of the needsDither variable erroneously introduced
Stefano Sabatini [Sun, 24 Jan 2010 21:28:17 +0000 (21:28 +0000)]
Fix mis-computation of the needsDither variable erroneously introduced
in r30419, which was causing a swscale-example regression.

Also increase my liter count by 20.0 units.

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

11 years agoBranchless setting of MB_TYPE_8x8DCT.
Michael Niedermayer [Sun, 24 Jan 2010 20:54:09 +0000 (20:54 +0000)]
Branchless setting of MB_TYPE_8x8DCT.
Not benchmarked as i failed to find a sample that uses this one. But it should be faster.

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

11 years agoRemove cruft.
Michael Niedermayer [Sun, 24 Jan 2010 20:52:49 +0000 (20:52 +0000)]
Remove cruft.

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

11 years agoMark index as unsigend so gcc knows it doesnt need a sign extension on x86_64.
Michael Niedermayer [Sun, 24 Jan 2010 19:19:09 +0000 (19:19 +0000)]
Mark index as unsigend so gcc knows it doesnt need a sign extension on x86_64.
Any tips on how i can convince gcc that it doesnt need a
mov     %eax, %eax
in every get_bits() ?

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

11 years agoa[b-1] -> (a-1)[b].
Michael Niedermayer [Sun, 24 Jan 2010 18:42:22 +0000 (18:42 +0000)]
a[b-1] -> (a-1)[b].
Helps gcc not to add seperate -1 instructions.

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

11 years agoOptimize suffix_length computation, 1 cpu cycle speedup.
Michael Niedermayer [Sun, 24 Jan 2010 18:23:46 +0000 (18:23 +0000)]
Optimize suffix_length computation, 1 cpu cycle speedup.

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

11 years agoSimplify suffix_length computation, same speed.
Michael Niedermayer [Sun, 24 Jan 2010 18:18:08 +0000 (18:18 +0000)]
Simplify suffix_length computation, same speed.

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

11 years agoFavor the term "URL" over "filename", as the API deals with URLs
Stefano Sabatini [Sun, 24 Jan 2010 18:18:03 +0000 (18:18 +0000)]
Favor the term "URL" over "filename", as the API deals with URLs
rather than with simple filenames.

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

11 years agoOptimize level_code computation, 6cpu cycles speedup.
Michael Niedermayer [Sun, 24 Jan 2010 18:17:01 +0000 (18:17 +0000)]
Optimize level_code computation, 6cpu cycles speedup.

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

11 years agoMake url_read_complete handle EAGAIN more intelligently.
Reimar Döffinger [Sun, 24 Jan 2010 18:09:46 +0000 (18:09 +0000)]
Make url_read_complete handle EAGAIN more intelligently.
Only retry 2 - 5 times in quick succession and afterwards sleep a bit
to avoid creating high CPU load without any progress.

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

11 years agoFix crash in MLP decoder due to integer overflow.
Reimar Döffinger [Sun, 24 Jan 2010 18:07:29 +0000 (18:07 +0000)]
Fix crash in MLP decoder due to integer overflow.
Probably only DoS, init_get_bits sets buffer to NULL, thus causing a
NULL-dereference directly after.

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

11 years ago1 cpu cycle faster suffix_length calculation.
Michael Niedermayer [Sun, 24 Jan 2010 18:05:02 +0000 (18:05 +0000)]
1 cpu cycle faster suffix_length calculation.

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

11 years agoMerge two "if (flags & SWS_PRINT_INFO) { ... }" blocks.
Stefano Sabatini [Sun, 24 Jan 2010 17:44:43 +0000 (17:44 +0000)]
Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks.

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

11 years agoVC-1/WMV3 DXVA2 implementation
Laurent Aimar [Sun, 24 Jan 2010 17:27:00 +0000 (17:27 +0000)]
VC-1/WMV3 DXVA2 implementation

 It allows VLD VC-1/WMV3 decoding using DXVA2 (GPU assisted decoding API under
VISTA and Windows 7).
 It is implemented by using AVHWAccel API.

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

11 years agoRemove is_complex from loop_filter() its useless there in its current form.
Michael Niedermayer [Sun, 24 Jan 2010 17:02:44 +0000 (17:02 +0000)]
Remove is_complex from loop_filter() its useless there in its current form.

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

11 years agoAdded a few missing consts in dxva_h264.
Laurent Aimar [Sun, 24 Jan 2010 16:40:58 +0000 (16:40 +0000)]
Added a few missing consts in dxva_h264.

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

11 years agoAdded a missing const to ff_h264_get_slice_type().
Laurent Aimar [Sun, 24 Jan 2010 16:37:12 +0000 (16:37 +0000)]
Added a missing const to ff_h264_get_slice_type().

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

11 years agoDoxument url_close().
Stefano Sabatini [Sun, 24 Jan 2010 16:33:56 +0000 (16:33 +0000)]
Doxument url_close().

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

11 years agoAdded missing const to get_bits_count().
Laurent Aimar [Sun, 24 Jan 2010 16:22:09 +0000 (16:22 +0000)]
Added missing const to get_bits_count().

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

11 years agoPrefer cbp over cbp_table.
Michael Niedermayer [Sun, 24 Jan 2010 13:43:26 +0000 (13:43 +0000)]
Prefer cbp over cbp_table.

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

11 years agoDoxument url_open_protocol().
Stefano Sabatini [Sun, 24 Jan 2010 13:31:25 +0000 (13:31 +0000)]
Doxument url_open_protocol().

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

11 years agoRemove all uses of slice_type* from the loop filter, also remove its
Michael Niedermayer [Sun, 24 Jan 2010 13:20:17 +0000 (13:20 +0000)]
Remove all uses of slice_type* from the loop filter, also remove its
initialization befre the loop filter.

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

11 years agoDoxument url_read().
Stefano Sabatini [Sun, 24 Jan 2010 13:07:54 +0000 (13:07 +0000)]
Doxument url_read().

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

11 years agoUse av_get_bits_per_pixel() for computing the bits per pixel of the
Stefano Sabatini [Sun, 24 Jan 2010 12:55:05 +0000 (12:55 +0000)]
Use av_get_bits_per_pixel() for computing the bits per pixel of the
source and destination format, cache those values in the newly added
SwsContext:srcFormatBpp and SwsContext:dstFormatBpp fields, and remove
the fmt_depth() function.

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

11 years agoIndent.
Ramiro Polla [Sun, 24 Jan 2010 03:02:40 +0000 (03:02 +0000)]
Indent.

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

11 years agoDon't redefine M_PI. It is already defined from libavutil/mathematics.h.
Ramiro Polla [Sun, 24 Jan 2010 02:16:26 +0000 (02:16 +0000)]
Don't redefine M_PI. It is already defined from libavutil/mathematics.h.

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

11 years agoSplit swscale.c into scaler code (swscale.c) and utility code (utils.c).
Ramiro Polla [Sun, 24 Jan 2010 02:08:22 +0000 (02:08 +0000)]
Split swscale.c into scaler code (swscale.c) and utility code (utils.c).

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

11 years agoRemove unneeded reset of non_zero_count_cache for deblock.
Michael Niedermayer [Sat, 23 Jan 2010 22:11:46 +0000 (22:11 +0000)]
Remove unneeded reset of non_zero_count_cache for deblock.

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

11 years agoRemove useless things from the deblock side of fill_caches().
Michael Niedermayer [Sat, 23 Jan 2010 21:57:36 +0000 (21:57 +0000)]
Remove useless things from the deblock side of fill_caches().

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

11 years agomake mv_cache init 64bit where possible.
Michael Niedermayer [Sat, 23 Jan 2010 21:45:12 +0000 (21:45 +0000)]
make mv_cache init 64bit where possible.

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

11 years agovfwcap: Include windows.h before vfw.h since the latter requires defines
kemuri [Sat, 23 Jan 2010 20:58:29 +0000 (20:58 +0000)]
vfwcap: Include windows.h before vfw.h since the latter requires defines
from the former.
Patch by kemuri <kemuri9 at gmail dot com>

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

11 years agoReplace every usage of -lvfw32 with what is particularly necessary for
kemuri [Sat, 23 Jan 2010 20:42:00 +0000 (20:42 +0000)]
Replace every usage of -lvfw32 with what is particularly necessary for
that case:
Avisynth -> -lavifil32
VFW Cap -> -lavicap32
Patch by kemuri <kemuri9 at gmail dot com>

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

11 years agoUse $vfwcap_indev_extralibs variable instead of duplicating "-lvfw32" in
Ramiro Polla [Sat, 23 Jan 2010 20:38:17 +0000 (20:38 +0000)]
Use $vfwcap_indev_extralibs variable instead of duplicating "-lvfw32" in
capCreateCaptureWindow() check.
Based on patch by kemuri <kemuri9 at gmail dot com>

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

11 years agoIndent.
Ramiro Polla [Sat, 23 Jan 2010 20:18:38 +0000 (20:18 +0000)]
Indent.

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

11 years agoMoved reusable functions from dxva2_h264.c to dxva2.c
Laurent Aimar [Sat, 23 Jan 2010 18:17:57 +0000 (18:17 +0000)]
Moved reusable functions from dxva2_h264.c to dxva2.c

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