platform/upstream/libav.git
13 years agox11grab: add show_region AVOption.
Yu-Jie Lin [Sat, 30 Jul 2011 11:13:43 +0000 (19:13 +0800)]
x11grab: add show_region AVOption.

Draw the current grabbing region for indication.

Signed-off-by: Yu-Jie Lin <livibetter@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agox11grab: add follow_mouse AVOption.
Yu-Jie Lin [Sat, 30 Jul 2011 10:46:36 +0000 (18:46 +0800)]
x11grab: add follow_mouse AVOption.

-follow_mouse centered|PIXELS
  move grabbing region to where mouse pointer at the center; or
  only move when pointer reaches within PIXELS to the edge.

Signed-off-by: Yu-Jie Lin <livibetter@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agoDo not convert RGB buffer at once when stride does not fit exact samples.
Kostya Shishkov [Fri, 29 Jul 2011 10:55:01 +0000 (12:55 +0200)]
Do not convert RGB buffer at once when stride does not fit exact samples.

When converting RGB format to RGB format with the same bits per sample,
unscaled path performs conversion on the whole buffer at once. For
non-multiple-of-16 BGR24 to RGB24 conversion it means that padding at the
end of line will be converted too. Since it may be of arbitrary length
(e.g. 8 bytes), operating on the whole buffer produces obviously wrong
results.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agobuild: make examples build normally
Luca Barbato [Sat, 30 Jul 2011 09:01:17 +0000 (11:01 +0200)]
build: make examples build normally

The link target was missing $(EXAMPLES)

13 years agomxfdec: Include FF_INPUT_BUFFER_PADDING_SIZE when allocating extradata.
Alex Converse [Fri, 29 Jul 2011 22:27:36 +0000 (15:27 -0700)]
mxfdec: Include FF_INPUT_BUFFER_PADDING_SIZE when allocating extradata.

This prevents out of bounds reads when extradata is being decoded.

13 years agoH.264: tweak some other x86 asm for Atom
Jason Garrett-Glaser [Thu, 28 Jul 2011 01:09:49 +0000 (18:09 -0700)]
H.264: tweak some other x86 asm for Atom

13 years agoprobe: Fix insane flow control.
Alex Converse [Fri, 29 Jul 2011 01:53:19 +0000 (18:53 -0700)]
probe: Fix insane flow control.

A loop control variable was shadowed inside the loop and never updated.

13 years agompegts: remove invalid error check
Mike Williams [Thu, 14 Jul 2011 20:49:21 +0000 (16:49 -0400)]
mpegts: remove invalid error check

mpegts_read_header is used by both mpegts and mpegtsraw, so this
erro check is no longer valid.

Signed-off-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agos302m: use nondeprecated audio sample format API
Dustin Brody [Fri, 29 Jul 2011 06:36:11 +0000 (02:36 -0400)]
s302m: use nondeprecated audio sample format API

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavc: use designated initialisers for all codecs.
Anton Khirnov [Sun, 17 Jul 2011 10:54:31 +0000 (12:54 +0200)]
lavc: use designated initialisers for all codecs.

It's more readable and less prone to breakage.

13 years agox86: cabac: add operand size suffixes missing from 6c32576
Mans Rullgard [Fri, 29 Jul 2011 00:55:58 +0000 (01:55 +0100)]
x86: cabac: add operand size suffixes missing from 6c32576

This fixes build with clang.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoh263dec: Propagate AV_LOG_ERRORs from slice decoding through frame decoding with...
Dustin Brody [Wed, 27 Jul 2011 23:09:45 +0000 (19:09 -0400)]
h263dec: Propagate AV_LOG_ERRORs from slice decoding through frame decoding with sufficient error recognition

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agox86: cabac: don't load/store context values in asm
Mans Rullgard [Thu, 28 Jul 2011 19:21:33 +0000 (20:21 +0100)]
x86: cabac: don't load/store context values in asm

Inspection of compiled code shows gcc handles these fine on its own.
Benchmarking also shows no measurable speed difference.

Removing the remaining cases in get_cabac_bypass_sign_x86() does
cause more substantial changes to the compiled code with uncertain
impact.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoH.264: optimize CABAC x86 asm for Atom
Jason Garrett-Glaser [Wed, 27 Jul 2011 02:08:05 +0000 (19:08 -0700)]
H.264: optimize CABAC x86 asm for Atom

13 years agovp3/theora: flush after seek.
Ronald S. Bultje [Tue, 26 Jul 2011 17:58:29 +0000 (10:58 -0700)]
vp3/theora: flush after seek.

13 years agodoc/fftools-common-opts: wording fixes missing from the previous commit.
Anton Khirnov [Thu, 28 Jul 2011 15:43:24 +0000 (17:43 +0200)]
doc/fftools-common-opts: wording fixes missing from the previous commit.

13 years agodoc: document using AVOptions in fftools.
Anton Khirnov [Sun, 17 Jul 2011 12:54:20 +0000 (14:54 +0200)]
doc: document using AVOptions in fftools.

13 years agocmdutils: add codec_opts parameter to setup_find_stream_info_opts()
Stefano Sabatini [Sun, 17 Jul 2011 14:19:28 +0000 (16:19 +0200)]
cmdutils: add codec_opts parameter to setup_find_stream_info_opts()

Avoid brittle and obfuscating reference to a global.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agocmdutils: clarify documentation for filter_codec_opts()
Stefano Sabatini [Sat, 16 Jul 2011 23:20:50 +0000 (01:20 +0200)]
cmdutils: clarify documentation for filter_codec_opts()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agocmdutils: clarify documentation for setup_find_stream_info_opts()
Stefano Sabatini [Sat, 16 Jul 2011 23:30:43 +0000 (01:30 +0200)]
cmdutils: clarify documentation for setup_find_stream_info_opts()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years agolavf: add forgotten attribute_deprecated to av_find_stream_info()
Anton Khirnov [Sun, 17 Jul 2011 11:59:04 +0000 (13:59 +0200)]
lavf: add forgotten attribute_deprecated to av_find_stream_info()

13 years agoppc: remove redundant setting of Altivec IDCT
Mans Rullgard [Mon, 25 Jul 2011 15:18:17 +0000 (16:18 +0100)]
ppc: remove redundant setting of Altivec IDCT

This is already set by dsputil_init_ppc() and is best done in only
one place.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agompegvideo: initialise DSPContext in ff_dct_common_init()
Mans Rullgard [Mon, 25 Jul 2011 14:51:36 +0000 (15:51 +0100)]
mpegvideo: initialise DSPContext in ff_dct_common_init()

The functions and tables initialised in this function rely on an
initialised DSPContext.  Make sure they always have one.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agocosmetics: reindent
Justin Ruggles [Mon, 25 Jul 2011 16:54:25 +0000 (12:54 -0400)]
cosmetics: reindent

13 years agoeac3enc: support writing of basic mixing and info metadata
Justin Ruggles [Sun, 29 May 2011 23:16:46 +0000 (19:16 -0400)]
eac3enc: support writing of basic mixing and info metadata

13 years agodnxhdenc: fix declarations in for loops
Mans Rullgard [Wed, 27 Jul 2011 15:14:33 +0000 (16:14 +0100)]
dnxhdenc: fix declarations in for loops

Apparently the gcc warning doesn't trigger on these.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodsputil: remove stale bink prototypes and comments
Mans Rullgard [Wed, 27 Jul 2011 14:49:03 +0000 (15:49 +0100)]
dsputil: remove stale bink prototypes and comments

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodsputil: move a bink-only function to binkdsp
Mans Rullgard [Wed, 27 Jul 2011 14:47:02 +0000 (15:47 +0100)]
dsputil: move a bink-only function to binkdsp

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodsputil: remove some unused functions
Mans Rullgard [Wed, 27 Jul 2011 13:47:56 +0000 (14:47 +0100)]
dsputil: remove some unused functions

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agobink: make IDCT take 32-bit input
Kostya Shishkov [Sat, 23 Jul 2011 13:46:35 +0000 (15:46 +0200)]
bink: make IDCT take 32-bit input

Since IDCT transforming 32-bit input to 8-bit output is unusual and unpractical
for most codecs, move Bink IDCT into separate context. Get rid of an additional
permutation table while at it since SIMD support for Bink IDCT is unlikely to
be implemented in foreseeable future.
Quantisation tables also have to change type to signed for proper
dequantisation of DCT coefficients.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoconfigure: spelling cosmetics
Diego Biurrun [Wed, 13 Jul 2011 16:12:43 +0000 (18:12 +0200)]
configure: spelling cosmetics

13 years agodctref: make sure function declarations match between .c and .h file
Diego Biurrun [Wed, 13 Jul 2011 22:00:43 +0000 (00:00 +0200)]
dctref: make sure function declarations match between .c and .h file

13 years agox86: fix build with gcc 4.7
Mans Rullgard [Tue, 26 Jul 2011 11:23:43 +0000 (12:23 +0100)]
x86: fix build with gcc 4.7

The upcoming gcc 4.7 has more advanced constant propagation
resulting some inline asm operands becoming constants and thus
emitted as literals, sometimes in contexts where this results
in invalid instructions.

This patch changes the constraints of the relevant operands
to "rm" thus forcing a valid type.  While obviously suboptimal,
this is what older gcc versions already did, and there is no
change to the code generated with these.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoape: adjust some printf format strings to correctly match argument types
Diego Biurrun [Wed, 1 Jun 2011 13:06:08 +0000 (15:06 +0200)]
ape: adjust some printf format strings to correctly match argument types

13 years agojpegdec: actually search for and parse RSTn
Michael Niedermayer [Thu, 9 Jun 2011 01:35:50 +0000 (03:35 +0200)]
jpegdec: actually search for and parse RSTn

Fixes decoding of MJPEG files produced by some UVC Logitec web cameras,
such as "Notebook Pro" and "HD C910".

References:
http://trac.videolan.org/vlc/ticket/4215
http://ffmpeg.org/trac/ffmpeg/ticket/267

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Reviewed-by: Kostya <kostya.shishkov@gmail.com>
(cherry picked from commit 7b8ed831eb8432d202dad16dedc1758b018bb1fa)

13 years agodnxhddec: avoid a branch in 10-bit decode_dct_block()
Mans Rullgard [Thu, 21 Jul 2011 23:13:27 +0000 (00:13 +0100)]
dnxhddec: avoid a branch in 10-bit decode_dct_block()

The minimum weight value is 32 so this test can be skipped for the
10-bit case.  Overall speedup 3-4%.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoH.264: Add optimizations to predict x86 assembly.
Daniel Kang [Fri, 22 Jul 2011 01:15:58 +0000 (21:15 -0400)]
H.264: Add optimizations to predict x86 assembly.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoriff: Add mpgv MPEG-2 fourcc
Alex Converse [Fri, 22 Jul 2011 17:13:22 +0000 (10:13 -0700)]
riff: Add mpgv MPEG-2 fourcc

Supported by mplayer and seen in the wild.

13 years agoadd Flash Screen Video 2 decoder
Kostya Shishkov [Sat, 16 Jul 2011 10:02:55 +0000 (12:02 +0200)]
add Flash Screen Video 2 decoder

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agodnxhddec: optimise dnxhd_decode_dct_block()
Mans Rullgard [Thu, 21 Jul 2011 18:04:37 +0000 (19:04 +0100)]
dnxhddec: optimise dnxhd_decode_dct_block()

Template the function for 8/10-bit and use lowlevel bitstream
macros.

6% faster overall on i7 gcc 4.5.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agortp: remove disabled code
Diego Biurrun [Sun, 17 Jul 2011 11:27:46 +0000 (13:27 +0200)]
rtp: remove disabled code

13 years agoeac3enc: use different numbers of blocks per frame to allow higher bitrates
Justin Ruggles [Thu, 14 Jul 2011 17:02:45 +0000 (13:02 -0400)]
eac3enc: use different numbers of blocks per frame to allow higher bitrates

13 years agodnxhd: add regression test for 10-bit
Mans Rullgard [Wed, 20 Jul 2011 23:55:24 +0000 (00:55 +0100)]
dnxhd: add regression test for 10-bit

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodnxhd: 10-bit support
Joseph Artsimovich [Wed, 20 Jul 2011 17:58:27 +0000 (18:58 +0100)]
dnxhd: 10-bit support

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodsputil: update per-arch init funcs for non-h264 high bit depth
Mans Rullgard [Thu, 21 Jul 2011 09:05:15 +0000 (10:05 +0100)]
dsputil: update per-arch init funcs for non-h264 high bit depth

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodsputil: template get_pixels() for different bit depths
Mans Rullgard [Thu, 21 Jul 2011 01:31:57 +0000 (02:31 +0100)]
dsputil: template get_pixels() for different bit depths

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodsputil: create 16/32-bit dctcoef versions of some functions
Mans Rullgard [Thu, 21 Jul 2011 11:39:41 +0000 (12:39 +0100)]
dsputil: create 16/32-bit dctcoef versions of some functions

High bitdepth H.264 needs 32-bit transform coefficients, whereas
dnxhd does not.  This creates a conflict with the templated
functions operating on DCTELEM data.  This patch adds a field
allowing the caller to choose the element size in dsputil_init()
and adds the required functions.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agojfdctint: add 10-bit version
Mans Rullgard [Wed, 20 Jul 2011 19:01:56 +0000 (20:01 +0100)]
jfdctint: add 10-bit version

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agomov: add clcp type track as Subtitle stream.
Thierry Foucu [Thu, 21 Jul 2011 03:33:25 +0000 (20:33 -0700)]
mov: add clcp type track as Subtitle stream.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agompeg4: add Mpeg4 Profiles names.
Thierry Foucu [Thu, 21 Jul 2011 03:33:24 +0000 (20:33 -0700)]
mpeg4: add Mpeg4 Profiles names.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agompeg4: decode Level Profile for MPEG4 Part 2.
Thierry Foucu [Thu, 21 Jul 2011 03:33:23 +0000 (20:33 -0700)]
mpeg4: decode Level Profile for MPEG4 Part 2.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoffprobe: display bitstream level.
Thierry Foucu [Thu, 21 Jul 2011 03:33:22 +0000 (20:33 -0700)]
ffprobe: display bitstream level.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agoimgconvert: remove unused glue and xglue macros
Stefano Sabatini [Tue, 19 Jul 2011 12:23:47 +0000 (14:23 +0200)]
imgconvert: remove unused glue and xglue macros

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agorv30: return AVERROR(EINVAL) instead of EINVAL
Diego Biurrun [Thu, 21 Jul 2011 12:25:01 +0000 (14:25 +0200)]
rv30: return AVERROR(EINVAL) instead of EINVAL

On some platforms EINVAL could be positive, ensure we return negative values.

13 years agobuild: add -L flags before existing LDFLAGS
Mans Rullgard [Wed, 13 Jul 2011 17:17:54 +0000 (18:17 +0100)]
build: add -L flags before existing LDFLAGS

This ensures the linker picks the just built libraries even
if LDFLAGS for some reason contains -L flags pointing at
other directories containing libav libraries.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agosimple_idct: whitespace cosmetics
Mans Rullgard [Thu, 21 Jul 2011 08:49:17 +0000 (09:49 +0100)]
simple_idct: whitespace cosmetics

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agosimple_idct: make repeated code a macro
Mans Rullgard [Thu, 21 Jul 2011 08:48:29 +0000 (09:48 +0100)]
simple_idct: make repeated code a macro

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodsputil: remove huge #if 0 block
Mans Rullgard [Thu, 21 Jul 2011 09:58:56 +0000 (10:58 +0100)]
dsputil: remove huge #if 0 block

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agosimple_idct: change 10-bit add/put stride from pixels to bytes
Mans Rullgard [Thu, 21 Jul 2011 02:56:44 +0000 (03:56 +0100)]
simple_idct: change 10-bit add/put stride from pixels to bytes

This matches other dsputil functions and simplifies calls.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodsputil: allow 9/10-bit functions for non-h264 codecs
Mans Rullgard [Thu, 21 Jul 2011 01:21:14 +0000 (02:21 +0100)]
dsputil: allow 9/10-bit functions for non-h264 codecs

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodnxhd: rename some data tables
Joseph Artsimovich [Mon, 18 Jul 2011 10:21:33 +0000 (11:21 +0100)]
dnxhd: rename some data tables

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodnxhdenc: remove inline from function only called through pointer
Mans Rullgard [Wed, 20 Jul 2011 17:41:37 +0000 (18:41 +0100)]
dnxhdenc: remove inline from function only called through pointer

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agodnxhdenc: whitespace cosmetics
Mans Rullgard [Wed, 20 Jul 2011 17:38:37 +0000 (18:38 +0100)]
dnxhdenc: whitespace cosmetics

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoswscale: mark YUV422P10(LE,BE) as supported for output
Joseph Artsimovich [Mon, 18 Jul 2011 10:22:15 +0000 (11:22 +0100)]
swscale: mark YUV422P10(LE,BE) as supported for output

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoconfigure: add -xc99 to LDFLAGS for Sun CC
Sean McGovern [Wed, 20 Jul 2011 21:25:41 +0000 (17:25 -0400)]
configure: add -xc99 to LDFLAGS for Sun CC

Using Sun's compiler on Solaris, -xc99 is as much a linker flag as a
compiler flag, so add it to LDFLAGS.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agoRemove unused and non-compiling vestigial g729 decoder
Diego Biurrun [Fri, 15 Jul 2011 00:37:33 +0000 (02:37 +0200)]
Remove unused and non-compiling vestigial g729 decoder

13 years agoRemove unused code under G729_BITEXACT #ifdef.
Diego Biurrun [Wed, 20 Jul 2011 16:37:15 +0000 (18:37 +0200)]
Remove unused code under G729_BITEXACT #ifdef.

G729_BITEXACT is never set, so the code is all dead code.

13 years agompegvideo: fix invalid picture unreferencing.
Ronald S. Bultje [Wed, 20 Jul 2011 16:24:07 +0000 (09:24 -0700)]
mpegvideo: fix invalid picture unreferencing.

Mpegvideo would free frames as soon as they're not the next or prev
picture. This is fine for a single-threading model, but fails miserably
in a system where pictures can be referenced (as e.g. last/prev pic)
in other threads. Keeping track of ownership of pictures keeps image
references (e.g. motion vectors, or the reference of a motion vector)
alive as long as the picture data itself is alive.

This also happens to fix make THREADS=[3-16] fate-vsynth[12]-error.

13 years agodsputil: Remove extra blank line at end.
Alex Converse [Tue, 19 Jul 2011 00:49:23 +0000 (17:49 -0700)]
dsputil: Remove extra blank line at end.

13 years agodsputil: Replace a LONG_MAX check with HAVE_FAST_64BIT.
Alex Converse [Tue, 19 Jul 2011 00:48:45 +0000 (17:48 -0700)]
dsputil: Replace a LONG_MAX check with HAVE_FAST_64BIT.

13 years agosimple_idct: add 10-bit version
Mans Rullgard [Wed, 20 Jul 2011 15:05:05 +0000 (16:05 +0100)]
simple_idct: add 10-bit version

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoRemove h264_lowres_idct_put/add functions
Mans Rullgard [Wed, 20 Jul 2011 08:46:18 +0000 (09:46 +0100)]
Remove h264_lowres_idct_put/add functions

Use of these has been broken ever since the h264 idct was changed
to always use transposed inputs.  Furthermore, they were only
ever used if some *other* non-default idct was requested.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoRemove snow/dwt test program
Mans Rullgard [Sun, 17 Jul 2011 19:43:15 +0000 (20:43 +0100)]
Remove snow/dwt test program

This test program so full of programming errors it is impossible
to make sense of it.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoh264: remove some disabled code
Diego Biurrun [Sun, 17 Jul 2011 11:09:04 +0000 (13:09 +0200)]
h264: remove some disabled code

13 years agoFix incorrect max_lowres values
Mans Rullgard [Wed, 20 Jul 2011 08:55:48 +0000 (09:55 +0100)]
Fix incorrect max_lowres values

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agomatroskadec: fix integer underflow if header length < probe length.
Chris Evans [Wed, 20 Jul 2011 00:51:48 +0000 (17:51 -0700)]
matroskadec: fix integer underflow if header length < probe length.

This fixes a crash with specifically crafted files.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years agocosmetics: indentation
Justin Ruggles [Wed, 13 Jul 2011 16:49:15 +0000 (12:49 -0400)]
cosmetics: indentation

13 years agoeac3enc: use frame exponent strategy when applicable.
Justin Ruggles [Wed, 13 Jul 2011 16:20:29 +0000 (12:20 -0400)]
eac3enc: use frame exponent strategy when applicable.

This checks if the set of selected exponent strategies for all blocks in a
channel are in the frame exponent strategy table, and if so, writes the
table index instead of each strategy. This saves up to 7 bits per channel per
frame, so the overall effect on quality is small.

13 years agocosmetics: rename eac3dec_data.c/h to eac3_data.c/h since the tables will also
Justin Ruggles [Tue, 12 Jul 2011 20:44:22 +0000 (16:44 -0400)]
cosmetics: rename eac3dec_data.c/h to eac3_data.c/h since the tables will also
be used in the E-AC-3 encoder.

13 years agodsputil: fix ff_check_alignment()
Mans Rullgard [Tue, 19 Jul 2011 09:20:56 +0000 (10:20 +0100)]
dsputil: fix ff_check_alignment()

The change to LOCAL_ALIGNED means the declared object must be an
array and the subsequent test should not use the & operator.

Noticed by Uoti Urpala.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agosimple_idct: simplify some ifdeffery
Mans Rullgard [Mon, 18 Jul 2011 15:04:25 +0000 (16:04 +0100)]
simple_idct: simplify some ifdeffery

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agosimple_idct: remove code for DCTELEM != int16
Mans Rullgard [Mon, 18 Jul 2011 14:23:22 +0000 (15:23 +0100)]
simple_idct: remove code for DCTELEM != int16

DCTELEM can never be changed to anything else, too much code
depends on it.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoRemove VLAs in ff_amrwb_lsp2lpc()
Mans Rullgard [Sun, 17 Jul 2011 10:24:34 +0000 (11:24 +0100)]
Remove VLAs in ff_amrwb_lsp2lpc()

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agofate: make vsynth tests depend on only the relevant vref
Mans Rullgard [Sun, 17 Jul 2011 18:47:58 +0000 (19:47 +0100)]
fate: make vsynth tests depend on only the relevant vref

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agortsp: remove disabled code
Diego Biurrun [Sun, 17 Jul 2011 11:27:27 +0000 (13:27 +0200)]
rtsp: remove disabled code

13 years agodsputil: restore mistakenly removed hunk of disabled code
Diego Biurrun [Mon, 18 Jul 2011 16:03:28 +0000 (18:03 +0200)]
dsputil: restore mistakenly removed hunk of disabled code

This particular part serves to document the optimized code variant.

13 years agovf_libopencv: replace opencv/cxtypes.h #include by opencv/cxcore.h
Stefano Sabatini [Fri, 15 Jul 2011 13:40:31 +0000 (15:40 +0200)]
vf_libopencv: replace opencv/cxtypes.h #include by opencv/cxcore.h

cxtypes.h works with version 2.1 and older, cxcore.h works with 2.2 and older.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years agodsputil: remove disabled code
Diego Biurrun [Sun, 17 Jul 2011 11:29:13 +0000 (13:29 +0200)]
dsputil: remove disabled code

13 years agotta: remove disabled code
Diego Biurrun [Sun, 17 Jul 2011 11:26:53 +0000 (13:26 +0200)]
tta: remove disabled code

13 years agogxfenc: place variable declarations before statements
Diego Biurrun [Sun, 17 Jul 2011 21:51:10 +0000 (23:51 +0200)]
gxfenc: place variable declarations before statements

libavformat/gxfenc.c:409: warning: ISO C90 forbids mixed declarations and code

13 years agox86: Use LOCAL_ALIGNED in mpegvideo_mmx_template
Martin Storsjö [Sun, 17 Jul 2011 15:43:11 +0000 (18:43 +0300)]
x86: Use LOCAL_ALIGNED in mpegvideo_mmx_template

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agorandom_seed: use proper #includes
Mans Rullgard [Sun, 17 Jul 2011 13:17:10 +0000 (14:17 +0100)]
random_seed: use proper #includes

Use <> for system headers, add needed math.h, drop unnecessary avutil.h.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoffmpeg: fix some indentation
Mans Rullgard [Sun, 17 Jul 2011 14:27:41 +0000 (15:27 +0100)]
ffmpeg: fix some indentation

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agoffmpeg: fix operation with --disable-avfilter
Mans Rullgard [Sun, 17 Jul 2011 14:27:14 +0000 (15:27 +0100)]
ffmpeg: fix operation with --disable-avfilter

The width and height must be copied from the input before
being used.

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agosimple_idct: remove disabled code
Diego Biurrun [Sun, 17 Jul 2011 11:30:00 +0000 (13:30 +0200)]
simple_idct: remove disabled code

13 years agomotion_est: remove disabled code
Diego Biurrun [Sun, 17 Jul 2011 11:28:11 +0000 (13:28 +0200)]
motion_est: remove disabled code

13 years agovc1: remove disabled code
Diego Biurrun [Sun, 17 Jul 2011 11:35:21 +0000 (13:35 +0200)]
vc1: remove disabled code

13 years agofate: separate lavf-mxf_d10 test from lavf-mxf
Mans Rullgard [Sun, 17 Jul 2011 14:40:05 +0000 (15:40 +0100)]
fate: separate lavf-mxf_d10 test from lavf-mxf

Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years agocabac: Move code only used in the cabac test program to cabac.c.
Diego Biurrun [Thu, 7 Jul 2011 21:16:56 +0000 (23:16 +0200)]
cabac: Move code only used in the cabac test program to cabac.c.

13 years agoffplay: warn that -pix_fmt is no longer working, suggest alternative
Stefano Sabatini [Sat, 16 Jul 2011 20:43:11 +0000 (22:43 +0200)]
ffplay: warn that -pix_fmt is no longer working, suggest alternative

Also remove now unused variable.

Signed-off-by: Anton Khirnov <anton@khirnov.net>