platform/upstream/libav.git
14 years agoSSSE3 versions of width4 VP8 6-tap MC functions
Jason Garrett-Glaser [Fri, 2 Jul 2010 05:27:41 +0000 (05:27 +0000)]
SSSE3 versions of width4 VP8 6-tap MC functions
Also make some small changes to saturation order of 4-tap SSSE3 MC to fix a
non-bitexactness bug.

Patch mostly by Eli Friedman <eli.friedman AT gmail DOT com>.

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

14 years agoconfigure: improve GNU as checking
Måns Rullgård [Fri, 2 Jul 2010 02:03:20 +0000 (02:03 +0000)]
configure: improve GNU as checking

Check for GNU assembler only when asm is enabled.  Show a warning for
ppc/altivec only, and fail on ARM.

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

14 years agotablegen: the executable depends on tablegen headers as well
Diego Pettenò [Fri, 2 Jul 2010 00:30:27 +0000 (00:30 +0000)]
tablegen: the executable depends on tablegen headers as well

Make sure that the *_tablegen.h header is listed in the dependencies, but
filter it out in the compile line.

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

14 years agoPPC: fix build on OSX without gas-preprocessor
Måns Rullgård [Fri, 2 Jul 2010 00:20:26 +0000 (00:20 +0000)]
PPC: fix build on OSX without gas-preprocessor

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

14 years agoGrammar fixes
Måns Rullgård [Fri, 2 Jul 2010 00:03:48 +0000 (00:03 +0000)]
Grammar fixes

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

14 years agovorbisdec: remove variable-length arrays
Måns Rullgård [Thu, 1 Jul 2010 23:36:48 +0000 (23:36 +0000)]
vorbisdec: remove variable-length arrays

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

14 years agoPPC: Altivec IMDCT
Loren Merritt [Thu, 1 Jul 2010 23:21:49 +0000 (23:21 +0000)]
PPC: Altivec IMDCT

Patch by Loren Merritt

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

14 years agoIndent
Måns Rullgård [Thu, 1 Jul 2010 23:21:46 +0000 (23:21 +0000)]
Indent

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

14 years agoRemove vestiges of radix-2 FFT
Måns Rullgård [Thu, 1 Jul 2010 23:21:42 +0000 (23:21 +0000)]
Remove vestiges of radix-2 FFT

Patch (mostly) by Loren Merritt

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

14 years agoPPC: Altivec split-radix FFT
Måns Rullgård [Thu, 1 Jul 2010 23:21:39 +0000 (23:21 +0000)]
PPC: Altivec split-radix FFT

1.8x faster than altivec radix-2 on a G4
8% faster vorbis decoding

Patch (mostly) by Loren Merritt

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

14 years agoPPC: fix dcbzl detection on OSX
Måns Rullgård [Thu, 1 Jul 2010 23:21:36 +0000 (23:21 +0000)]
PPC: fix dcbzl detection on OSX

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

14 years agoAdd -force_cpusubtype_ALL to ASFLAGS on Darwin/PPC
Måns Rullgård [Thu, 1 Jul 2010 23:21:33 +0000 (23:21 +0000)]
Add -force_cpusubtype_ALL to ASFLAGS on Darwin/PPC

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

14 years agoCheck for GNU assembler, use gas-preprocessor on darwin
Måns Rullgård [Thu, 1 Jul 2010 23:21:30 +0000 (23:21 +0000)]
Check for GNU assembler, use gas-preprocessor on darwin

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

14 years agoCheck whether IBM or Apple PPC assembler syntax is used
Måns Rullgård [Thu, 1 Jul 2010 23:21:27 +0000 (23:21 +0000)]
Check whether IBM or Apple PPC assembler syntax is used

This checks which assembler syntax is supported and defines macros
for register names accordingly.

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

14 years agompegtsenc: allocate correct size for PID table
Måns Rullgård [Thu, 1 Jul 2010 23:21:23 +0000 (23:21 +0000)]
mpegtsenc: allocate correct size for PID table

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

14 years agompegaudio: move compute_antialias_float() to mpegaudiodec_float.c
Måns Rullgård [Thu, 1 Jul 2010 23:21:20 +0000 (23:21 +0000)]
mpegaudio: move compute_antialias_float() to mpegaudiodec_float.c

Also put compute_antialias_integer() under !CONFIG_FLOAT and change
forward declarations to declare only the relevant one of these.

Fixes warnings about unused functions and pointer type mismatches.

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

14 years agompegaudio: call ff_mpegaudiodec_init_mmx() only from float decoder
Måns Rullgård [Thu, 1 Jul 2010 23:21:17 +0000 (23:21 +0000)]
mpegaudio: call ff_mpegaudiodec_init_mmx() only from float decoder

The mmx code is floating-point only, and this function does not know
from which decoder it is called.  Without this change, the integer
decoder only "works" because the size of the context struct is smaller
in this case, and the mmx init function writes the function pointer
outside the allocated context.

Fixes issue 2054.

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

14 years agoIn mov demuxer, only set sar if not already set, patch by Andrew Wason,
Andrew Wason [Thu, 1 Jul 2010 23:18:27 +0000 (23:18 +0000)]
In mov demuxer, only set sar if not already set, patch by Andrew Wason,
rectalogic at rectalogic dot com
Fixes issue #1754

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

14 years agoUse ext sample from mpeg4audio config if set with AAC SBR
Baptiste Coudurier [Thu, 1 Jul 2010 22:31:31 +0000 (22:31 +0000)]
Use ext sample from mpeg4audio config if set with AAC SBR

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

14 years agoFix 100L in vp8dsp asm init
Jason Garrett-Glaser [Thu, 1 Jul 2010 22:09:22 +0000 (22:09 +0000)]
Fix 100L in vp8dsp asm init

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

14 years agompegaudio float decoders depend on dct
Aurelien Jacobs [Thu, 1 Jul 2010 21:09:17 +0000 (21:09 +0000)]
mpegaudio float decoders depend on dct

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

14 years agoadu and mp3on4 functions are also needed by their respective float decoders
Aurelien Jacobs [Thu, 1 Jul 2010 21:08:20 +0000 (21:08 +0000)]
adu and mp3on4 functions are also needed by their respective float decoders

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

14 years agoAltivec-optimized mp{1,2,3} windowing
Vitor Sessak [Thu, 1 Jul 2010 21:04:12 +0000 (21:04 +0000)]
Altivec-optimized mp{1,2,3} windowing

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

14 years agoPad the buffer in url_close_dyn_buf, for buffers opened with url_open_dyn_buf
Josh Allmann [Thu, 1 Jul 2010 20:15:49 +0000 (20:15 +0000)]
Pad the buffer in url_close_dyn_buf, for buffers opened with url_open_dyn_buf

Patch by Josh Allmann, joshua dot allmann at gmail

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

14 years agoAdd RTP depacketization of SVQ3
Josh Allmann [Thu, 1 Jul 2010 20:12:58 +0000 (20:12 +0000)]
Add RTP depacketization of SVQ3

Patch by Josh Allmann, joshua dot allmann at gmail

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

14 years agoMove colorspace.h from libavcodec to libavutil.
Stefano Sabatini [Thu, 1 Jul 2010 18:49:44 +0000 (18:49 +0000)]
Move colorspace.h from libavcodec to libavutil.
Avoid a compile-time dependency of the pad filter on libavcodec.

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

14 years agoChange all functions referenced in the mxf_metadata_read_table to use the same
Reimar Döffinger [Thu, 1 Jul 2010 17:10:31 +0000 (17:10 +0000)]
Change all functions referenced in the mxf_metadata_read_table to use the same
prototype and also always call them with exactly those arguments.
The previous way seems to have worked on all supported platforms, however
it was not strictly valid C and would crash e.g. with a compiler that
uses stdcall by default.
Also avoids warnings if -Wstrict-prototypes is used.

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

14 years agocosmetic: improve comment breaking at 80 cols
Aurelien Jacobs [Thu, 1 Jul 2010 16:28:38 +0000 (16:28 +0000)]
cosmetic: improve comment breaking at 80 cols

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

14 years agofix dependencies of vp5 and vp6 decoders after r23915
Aurelien Jacobs [Thu, 1 Jul 2010 16:09:38 +0000 (16:09 +0000)]
fix dependencies of vp5 and vp6 decoders after r23915
they now also depends on cabac.o for ff_h264_norm_shift

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

14 years agofix warning in ff_metadata_mux_compat()
Eli Friedman [Thu, 1 Jul 2010 15:03:21 +0000 (15:03 +0000)]
fix warning in ff_metadata_mux_compat()
warning: the address of 'number' will always evaluate as 'true'
patch by Eli Friedman   eli _dot_ friedman _at_ gmail _dot_ com

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

14 years agoAllow remuxing of explicitly signalled AAC files into ADTS.
Alex Converse [Thu, 1 Jul 2010 14:49:32 +0000 (14:49 +0000)]
Allow remuxing of explicitly signalled AAC files into ADTS.

The ADTS output files are not explicitly signaled because the format
does not support explicit signalling.

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

14 years agoFactorize get_duration() out of 4 places of the avi demuxer.
Michael Niedermayer [Thu, 1 Jul 2010 13:50:15 +0000 (13:50 +0000)]
Factorize get_duration() out of 4 places of the avi demuxer.

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

14 years agoMaybe fix threaded mpeg*video encoding
Måns Rullgård [Thu, 1 Jul 2010 11:51:01 +0000 (11:51 +0000)]
Maybe fix threaded mpeg*video encoding

This allocates per-thread copies of some MpegEncContext.ac_val which
is used concurrently from the encoding threads.

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

14 years agorandom_seed: simplify
Måns Rullgård [Thu, 1 Jul 2010 11:43:30 +0000 (11:43 +0000)]
random_seed: simplify

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

14 years agoReindent
Måns Rullgård [Thu, 1 Jul 2010 11:40:54 +0000 (11:40 +0000)]
Reindent

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

14 years agorandom_seed: allow to block on /dev/random
Måns Rullgård [Thu, 1 Jul 2010 11:40:50 +0000 (11:40 +0000)]
random_seed: allow to block on /dev/random

If both /dev/random and /dev/urandom failed to return data, an
uninitialised value might be returned.  Since most systems have a
non-blocking /dev/urandom or have /dev/random with similar properties,
the chance of blocking is minimal, and the alternative of returning
non-random data is worse.

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

14 years agoconfigure: replace unwarranted gcc bashing with a real explanation
Måns Rullgård [Thu, 1 Jul 2010 11:11:23 +0000 (11:11 +0000)]
configure: replace unwarranted gcc bashing with a real explanation

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

14 years agoUse new librtmp APIs instead of grubbing around in RTMP struct
Howard Chu [Thu, 1 Jul 2010 10:59:44 +0000 (10:59 +0000)]
Use new librtmp APIs instead of grubbing around in RTMP struct

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

14 years agoFix h264/vp8 intra pred on Athlon XP
Jason Garrett-Glaser [Thu, 1 Jul 2010 10:29:47 +0000 (10:29 +0000)]
Fix h264/vp8 intra pred on Athlon XP
Whose idea was it to have a CPU that didn't SIGILL on an invalid instruction?

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

14 years agompegaudioenc: Remove write-only variables from the context.
Rafaël Carré [Thu, 1 Jul 2010 05:17:02 +0000 (05:17 +0000)]
mpegaudioenc: Remove write-only variables from the context.

Patch by Rafaël Carré (rafael <dot> carre <at> gmail).

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

14 years agoPrevent infinite recursion of odml indexes.
Michael Niedermayer [Thu, 1 Jul 2010 00:09:08 +0000 (00:09 +0000)]
Prevent infinite recursion of odml indexes.
This fixes a stack overflow.

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

14 years agoEliminate another redundant instruction in vp56/8 arithcoder
Jason Garrett-Glaser [Wed, 30 Jun 2010 23:59:27 +0000 (23:59 +0000)]
Eliminate another redundant instruction in vp56/8 arithcoder
Necessary because of this GCC bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44474
To do this, convert some, but not all (!) of the variables in VP56RangeCoder
into local variables.
If we convert c->high into a local variable, gcc gets the stupids and refuses
to use a conditional move for the unpredictable main branch.

TODO: dispense with this bullshit and write an asm version.

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

14 years agoSet pad description with NULL_IF_CONFIG_SMALL(), consistent with the
Stefano Sabatini [Wed, 30 Jun 2010 23:52:28 +0000 (23:52 +0000)]
Set pad description with NULL_IF_CONFIG_SMALL(), consistent with the
other filters.

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

14 years agoImprove description for the pad filter.
Stefano Sabatini [Wed, 30 Jun 2010 23:52:26 +0000 (23:52 +0000)]
Improve description for the pad filter.

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

14 years agoCMOV-ify vp56 arithcoder
Jason Garrett-Glaser [Wed, 30 Jun 2010 23:18:47 +0000 (23:18 +0000)]
CMOV-ify vp56 arithcoder
This incantation causes gcc 4.3 to generate cmov on x86, a vastly better option
than a completely unpredictable branch.
Hopefully this carries over to newer versions and other CPUs with conditionals.
~5 cycles saved per call on a Core i7.

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

14 years agoOptimize vp56 arithmetic decoder
Jason Garrett-Glaser [Wed, 30 Jun 2010 23:15:25 +0000 (23:15 +0000)]
Optimize vp56 arithmetic decoder
Negate "bits" to eliminate a negate in cache refilling.

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

14 years agoMake "invalid dts/pts combination" a debug instead of a warning message.
XBMC [Wed, 30 Jun 2010 23:01:44 +0000 (23:01 +0000)]
Make "invalid dts/pts combination" a debug instead of a warning message.

Patch by XBMC

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

14 years agoAllow setting streamid when muxing mpegts.
Mike Scheutzow [Wed, 30 Jun 2010 22:39:13 +0000 (22:39 +0000)]
Allow setting streamid when muxing mpegts.

Patch by Mike Scheutzow, scheutzow alcatel-lucent com

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

14 years agoAdd new option "streamid" to set the value of an outfile streamid.
Mike Scheutzow [Wed, 30 Jun 2010 22:35:57 +0000 (22:35 +0000)]
Add new option "streamid" to set the value of an outfile streamid.

Patch by Mike Scheutzow, scheutzow alcatel-lucent com

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

14 years agoAdd more int packing macros, name them consistently
Måns Rullgård [Wed, 30 Jun 2010 22:33:38 +0000 (22:33 +0000)]
Add more int packing macros, name them consistently

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

14 years agorenormalize VP5/6/7/8 range coder without loop
Stefan Gehrer [Wed, 30 Jun 2010 22:05:29 +0000 (22:05 +0000)]
renormalize VP5/6/7/8 range coder without loop

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

14 years agoDo not skip one of three bits zero padding.
Daniel Kristjansson [Wed, 30 Jun 2010 21:46:03 +0000 (21:46 +0000)]
Do not skip one of three bits zero padding.

Patch by Daniel Kristjansson, danielk cuymedia net

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

14 years agoAdd missed file dct32.c
Måns Rullgård [Wed, 30 Jun 2010 21:45:51 +0000 (21:45 +0000)]
Add missed file dct32.c

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

14 years agoMore mp{1,2,3} 32-point DCT transform to our common DCT framework.
Vitor Sessak [Wed, 30 Jun 2010 20:11:27 +0000 (20:11 +0000)]
More mp{1,2,3} 32-point DCT transform to our common DCT framework.
Should allow for future SIMD optimizations.

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

14 years agoImprove FF_SYMVER documentation
Måns Rullgård [Wed, 30 Jun 2010 20:09:55 +0000 (20:09 +0000)]
Improve FF_SYMVER documentation

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

14 years agoImprove av_strerror() documentation
Måns Rullgård [Wed, 30 Jun 2010 20:09:52 +0000 (20:09 +0000)]
Improve av_strerror() documentation

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

14 years agoImprove GET_UTF{8,16} documentation
Måns Rullgård [Wed, 30 Jun 2010 20:09:48 +0000 (20:09 +0000)]
Improve GET_UTF{8,16} documentation

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

14 years agoaes: improve av_aes_crypt() documentation
Måns Rullgård [Wed, 30 Jun 2010 20:09:44 +0000 (20:09 +0000)]
aes: improve av_aes_crypt() documentation

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

14 years agoadler32: add API documentation
Måns Rullgård [Wed, 30 Jun 2010 20:09:40 +0000 (20:09 +0000)]
adler32: add API documentation

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

14 years agoImprove av_resample() documentation
Måns Rullgård [Wed, 30 Jun 2010 20:09:37 +0000 (20:09 +0000)]
Improve av_resample() documentation

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

14 years agobase64: improve documentation
Måns Rullgård [Wed, 30 Jun 2010 20:09:32 +0000 (20:09 +0000)]
base64: improve documentation

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

14 years agoFix grammar errors in documentation
Måns Rullgård [Wed, 30 Jun 2010 15:38:06 +0000 (15:38 +0000)]
Fix grammar errors in documentation

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

14 years agoMake av_get_random_seed() non-blocking
Måns Rullgård [Wed, 30 Jun 2010 10:38:04 +0000 (10:38 +0000)]
Make av_get_random_seed() non-blocking

Attempt to read from /dev/urandom and /dev/random with O_NONBLOCK set.
If neither succeeds, proceed with fallbacks.

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

14 years agoCheck for fcntl()
Måns Rullgård [Wed, 30 Jun 2010 10:38:01 +0000 (10:38 +0000)]
Check for fcntl()

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

14 years agoStep back as documentation maintainer.
Diego Biurrun [Wed, 30 Jun 2010 10:18:48 +0000 (10:18 +0000)]
Step back as documentation maintainer.

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

14 years agoapedec: add flush function
Måns Rullgård [Wed, 30 Jun 2010 09:33:59 +0000 (09:33 +0000)]
apedec: add flush function

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

14 years agoAdd a changelog entry for the RTSP tunneling, that was added a few weeks ago
Martin Storsjö [Wed, 30 Jun 2010 07:55:13 +0000 (07:55 +0000)]
Add a changelog entry for the RTSP tunneling, that was added a few weeks ago

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

14 years agomxfdec: Improve parsing of the PixelLayout item
Tomas Härdin [Wed, 30 Jun 2010 07:55:05 +0000 (07:55 +0000)]
mxfdec: Improve parsing of the PixelLayout item

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

14 years agoFix "initialization from incompatible pointer type" warning in rv34.
Eli Friedman [Wed, 30 Jun 2010 06:50:44 +0000 (06:50 +0000)]
Fix "initialization from incompatible pointer type" warning in rv34.
Patch by Eli Friedman (at gmail).

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

14 years agoChange AES code to be strict-aliasing-safe.
Reimar Döffinger [Wed, 30 Jun 2010 04:50:35 +0000 (04:50 +0000)]
Change AES code to be strict-aliasing-safe.
Makes it give correct results with e.g. gcc 4.4.
For unknown reasons the generate asm code also changes
on e.g. gcc 4.3, making the code a bit larger but also
a bit faster.

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

14 years agoSilense one warning:
Eli Friedman [Wed, 30 Jun 2010 01:57:05 +0000 (01:57 +0000)]
Silense one warning:
"passing argument 1 of ‘av_memcpy_backptr’ from incompatible pointer type"

Patch by Eli Friedman, eli D friedman A gmail

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

14 years agoFix strict-aliasing violations in MPV_motion_internal.
Eli Friedman [Wed, 30 Jun 2010 01:47:42 +0000 (01:47 +0000)]
Fix strict-aliasing violations in MPV_motion_internal.

Patch by Eli Friedman, eli D friedman A gmail

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

14 years agorv40: make rv40_adaptive_loop_filter() always_inline
Måns Rullgård [Tue, 29 Jun 2010 22:41:22 +0000 (22:41 +0000)]
rv40: make rv40_adaptive_loop_filter() always_inline

This function is called from the rv40_[hv]_loop_filter() wrappers
with some arguments constant, so it really needs to be inlined.

3% faster overall on Cortex-A8.

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

14 years agoffplay: remove VLA
Måns Rullgård [Tue, 29 Jun 2010 22:41:20 +0000 (22:41 +0000)]
ffplay: remove VLA

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

14 years agoUse add instead of lshift in mmxext vp8 idct
Jason Garrett-Glaser [Tue, 29 Jun 2010 17:23:17 +0000 (17:23 +0000)]
Use add instead of lshift in mmxext vp8 idct

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

14 years agoRemove unused macros (duplicates from the now-LGPL x86util.asm).
Ronald S. Bultje [Tue, 29 Jun 2010 17:04:29 +0000 (17:04 +0000)]
Remove unused macros (duplicates from the now-LGPL x86util.asm).

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

14 years agoAdd CRC check to the ALS decoder.
Thilo Borgmann [Tue, 29 Jun 2010 16:56:28 +0000 (16:56 +0000)]
Add CRC check to the ALS decoder.

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

14 years agoARM: add mov32 macro
Måns Rullgård [Tue, 29 Jun 2010 14:48:45 +0000 (14:48 +0000)]
ARM: add mov32 macro

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

14 years agoARM: (mostly) whitespace cosmetics
Måns Rullgård [Tue, 29 Jun 2010 14:48:41 +0000 (14:48 +0000)]
ARM: (mostly) whitespace cosmetics

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

14 years agoMMX idct_add for VP8.
Ronald S. Bultje [Tue, 29 Jun 2010 14:43:11 +0000 (14:43 +0000)]
MMX idct_add for VP8.

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

14 years agoAdd missing mm_support call toff_h264_pred_init_x86.
Jason Garrett-Glaser [Tue, 29 Jun 2010 12:28:06 +0000 (12:28 +0000)]
Add missing mm_support call toff_h264_pred_init_x86.
I'm not sure if this is supposed to be here, but it can't hurt.

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

14 years agoAltivec VP8 MC functions
David Conrad [Tue, 29 Jun 2010 06:42:17 +0000 (06:42 +0000)]
Altivec VP8 MC functions

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

14 years agoAltivec: Add helper function to load from a constant misalignment
David Conrad [Tue, 29 Jun 2010 06:42:12 +0000 (06:42 +0000)]
Altivec: Add helper function to load from a constant misalignment

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

14 years agovorbis: cosmetics, remove trailing comma for values that will never have
David Conrad [Tue, 29 Jun 2010 06:42:08 +0000 (06:42 +0000)]
vorbis: cosmetics, remove trailing comma for values that will never have
anything added

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

14 years agoFaster C VP8 normal inner loop filter
Jason Garrett-Glaser [Tue, 29 Jun 2010 04:34:04 +0000 (04:34 +0000)]
Faster C VP8 normal inner loop filter

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

14 years agoUse crop table in C implementations of VP8 DSP functions.
Jason Garrett-Glaser [Tue, 29 Jun 2010 03:34:24 +0000 (03:34 +0000)]
Use crop table in C implementations of VP8 DSP functions.
Much faster VP8 C DSP functions; ~5-10% faster overall with asm off.

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

14 years agoUpdate x264 presets. Patch by Lou Logan <lou@fakeoutdoorsman.com>
Lou Logan [Tue, 29 Jun 2010 03:17:11 +0000 (03:17 +0000)]
Update x264 presets.  Patch by Lou Logan <lou@fakeoutdoorsman.com>

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

14 years agoAdd mmxext version of VP8 DC Hadamard transform
Jason Garrett-Glaser [Tue, 29 Jun 2010 01:41:59 +0000 (01:41 +0000)]
Add mmxext version of VP8 DC Hadamard transform

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

14 years agoMake x86util.asm LGPL so we can use it in LGPL asm
Jason Garrett-Glaser [Tue, 29 Jun 2010 00:40:12 +0000 (00:40 +0000)]
Make x86util.asm LGPL so we can use it in LGPL asm
Strip out most x264-specific stuff (not used anywhere in ffmpeg).

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

14 years agoMMXEXT version of vp8 4x4 vertical pred
Jason Garrett-Glaser [Tue, 29 Jun 2010 00:23:52 +0000 (00:23 +0000)]
MMXEXT version of vp8 4x4 vertical pred

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

14 years agoAdd mmx/mmxext/ssse3 4x4 TM intra pred functions for vp8
Jason Garrett-Glaser [Mon, 28 Jun 2010 23:53:07 +0000 (23:53 +0000)]
Add mmx/mmxext/ssse3 4x4 TM intra pred functions for vp8

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

14 years agoAdd missing comment header for predict_4x4_dc_mmxext
Jason Garrett-Glaser [Mon, 28 Jun 2010 23:37:24 +0000 (23:37 +0000)]
Add missing comment header for predict_4x4_dc_mmxext

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

14 years agoFix some intra pred MMX functions that used MMXEXT instructions
Jason Garrett-Glaser [Mon, 28 Jun 2010 23:35:17 +0000 (23:35 +0000)]
Fix some intra pred MMX functions that used MMXEXT instructions
Also add predict_4x4_dc MMXEXT function for vp8/h264.

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

14 years agoFix VP8 bilinear mc on x86_64
Jason Garrett-Glaser [Mon, 28 Jun 2010 22:13:14 +0000 (22:13 +0000)]
Fix VP8 bilinear mc on x86_64

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

14 years agoaacenc: Start the lookahead pointer 1/4 of the way into the first short window.
Alex Converse [Mon, 28 Jun 2010 21:50:57 +0000 (21:50 +0000)]
aacenc: Start the lookahead pointer 1/4 of the way into the first short window.

Short windows are of length 256 and begin at sample 448.

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

14 years agoaacenc: Fix window decision logic.
Alex Converse [Mon, 28 Jun 2010 21:49:26 +0000 (21:49 +0000)]
aacenc: Fix window decision logic.

This keeps the encoder from switching away from an wight short sequence
prematurely when attacks are detected two frames in a row. It also allows for
the legal and useful LONG_STOP_SEQUENCE to LONG_START_SEQUENCE transition.

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

14 years agoaacenc: Fill in the estimated codebook for the final computed scalefactor in the...
Alex Converse [Mon, 28 Jun 2010 21:42:57 +0000 (21:42 +0000)]
aacenc: Fill in the estimated codebook for the final computed scalefactor in the TLS.

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

14 years ago10l: Revert r23867. It didn't make any sense.
Alex Converse [Mon, 28 Jun 2010 21:40:38 +0000 (21:40 +0000)]
10l: Revert r23867. It didn't make any sense.

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

14 years agoMake ff_psy_preprocess_end() act like av_freep().
Alex Converse [Mon, 28 Jun 2010 21:36:19 +0000 (21:36 +0000)]
Make ff_psy_preprocess_end() act like av_freep().

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

14 years agoaacenc: Properly pad extradata.
Alex Converse [Mon, 28 Jun 2010 21:34:57 +0000 (21:34 +0000)]
aacenc: Properly pad extradata.

This fixes a valgrind error when encoding to ADTS.

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