platform/upstream/libav.git
12 years agomov, mxfdec: Employ more meaningful return values.
Daniel Huang [Sat, 14 Jan 2012 21:25:12 +0000 (15:25 -0600)]
mov, mxfdec: Employ more meaningful return values.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agolavc: Relax API strictness in avcodec_decode_audio3 with a custom get_buffer()
Reinhard Tartler [Sun, 15 Jan 2012 19:32:11 +0000 (20:32 +0100)]
lavc: Relax API strictness in avcodec_decode_audio3 with a custom get_buffer()

Do not fail audio decoding with avcodec_decode_audio3 if user has set a
custom get_buffer. Strictly speaking, this was never allowed by the API,
but it seems that some software packages did so anyways. In order to
unbreak applications (cf. http://bugs.debian.org/655890), this change
clarifies the API and overrides the custom get_buffer() with the defaults.

This change is inspired by a similar
commit (c3846e3ebab610be691adb8b40d376dc2f675dc4) in FFmpeg.

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
12 years agowavpack: fix clipping for 32-bit lossy mode
Kostya Shishkov [Sun, 15 Jan 2012 13:23:28 +0000 (14:23 +0100)]
wavpack: fix clipping for 32-bit lossy mode

Reference decoder clips data before shifting it to final range and also
forces 32-bit lossy mode to be actually 24-bit lossy mode in order to be
able to perform proper clipping.

12 years agovb: Use bytestream2 functions
Laurentiu Ion [Sat, 14 Jan 2012 19:04:59 +0000 (21:04 +0200)]
vb: Use bytestream2 functions

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agosgidec: Use bytestream2 functions to prevent buffer overreads.
Aneesh Dogra [Fri, 13 Jan 2012 17:35:57 +0000 (23:05 +0530)]
sgidec: Use bytestream2 functions to prevent buffer overreads.

The patch also adds several bytestream macros to deal with native endian.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
12 years agocosmetics: Move static and inline attributes to more standard places.
Diego Biurrun [Fri, 13 Jan 2012 15:35:54 +0000 (16:35 +0100)]
cosmetics: Move static and inline attributes to more standard places.

Fixes several "‘static’ is not at beginning of declaration" warnings.

12 years agoconfigure: provide libavfilter/version.h header to get_version()
Stefano Sabatini [Fri, 13 Jan 2012 15:23:55 +0000 (16:23 +0100)]
configure: provide libavfilter/version.h header to get_version()

Fix libavfilter library version numbers generation, which was broken in
3167dc9515810bbdd86d99d773bcf84657d2e72a.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoswscale: change yuv2yuvX code to use cpuflag().
Ronald S. Bultje [Fri, 13 Jan 2012 19:21:15 +0000 (11:21 -0800)]
swscale: change yuv2yuvX code to use cpuflag().

12 years agolibx264: Don't leave max_b_frames as -1 if the user didn't set it
Martin Storsjö [Fri, 13 Jan 2012 21:41:16 +0000 (23:41 +0200)]
libx264: Don't leave max_b_frames as -1 if the user didn't set it

max_b_frames is initialized to -1 for libx264, to allow
distinguishing between an explicit user set 0 and a default not
touched 0 (see bb73cda2).

If max_b_frames is left as -1, this affects dts generation (where
expressions like max_b_frames != 0 are used), so make sure it is
left at the default 0 after the libx264 init function returns.

This avoids unnecessarily producing dts != pts when using
profile=baseline.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoFATE: convert output to rgba for the targa tests which currently output pal8
Justin Ruggles [Fri, 13 Jan 2012 23:40:12 +0000 (18:40 -0500)]
FATE: convert output to rgba for the targa tests which currently output pal8

fixes the tests on big-endian systems

12 years agofate: add missing reference files for targa tests in 9c2f9b0e2
Janne Grunau [Fri, 13 Jan 2012 22:52:59 +0000 (23:52 +0100)]
fate: add missing reference files for targa tests in 9c2f9b0e2

Fixes fate-targa-conformance-CCM8 and fate-targa-conformance-UCM8.

12 years agoFATE: enable the 2 remaining targa conformance suite tests
Justin Ruggles [Fri, 13 Jan 2012 21:41:15 +0000 (16:41 -0500)]
FATE: enable the 2 remaining targa conformance suite tests

12 years agotarga: add support for rgb555 palette
Justin Ruggles [Mon, 2 Jan 2012 20:17:12 +0000 (15:17 -0500)]
targa: add support for rgb555 palette

12 years agoFATE: fix targa tests on big-endian systems
Justin Ruggles [Fri, 13 Jan 2012 21:14:48 +0000 (16:14 -0500)]
FATE: fix targa tests on big-endian systems

12 years agoFATE: add tests for targa
Justin Ruggles [Thu, 12 Jan 2012 01:06:46 +0000 (20:06 -0500)]
FATE: add tests for targa

Based on a patch by Oana Stratulat <oanaandreeastratulat@gmail.com>

12 years agoARM: fix Thumb-mode simple_idct_arm
Mans Rullgard [Fri, 13 Jan 2012 19:03:14 +0000 (19:03 +0000)]
ARM: fix Thumb-mode simple_idct_arm

The alignment directive must obviously precede the label.
This was never noticed in ARM mode since the location is
already aligned there.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoARM: 4-byte align start of all asm functions
Mans Rullgard [Fri, 13 Jan 2012 18:56:36 +0000 (18:56 +0000)]
ARM: 4-byte align start of all asm functions

Due to apprent bugs in the GNU assembler and/or linker, relocations
can be incorrectly processed if the alignment of a Thumb instruction
is changed in the output file compared to the input object.

This fixes crashes in h264 decoding with Thumb enabled. No effect in
ARM mode since everything is 4-byte aligned there.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agorgb2rgb: rgb12to15()
Paul B Mahol [Thu, 12 Jan 2012 20:28:47 +0000 (20:28 +0000)]
rgb2rgb: rgb12to15()

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoswscale-test: fix stack overread.
Ronald S. Bultje [Thu, 12 Jan 2012 23:38:37 +0000 (15:38 -0800)]
swscale-test: fix stack overread.

Fixes problems in swscale-test where it gives a 3-member array to a
function expecting a 4-member array.

12 years agoswscale: fix invalid conversions and memory problems.
Ronald S. Bultje [Thu, 12 Jan 2012 23:37:58 +0000 (15:37 -0800)]
swscale: fix invalid conversions and memory problems.

Fixes problems where rgbToRgbWrapper() is called even though it doesn't
support this particular conversion (e.g. converting from RGB444 to
anything). Thirdly, fixes issues where rgbToRgbWrapper() is called for
non-native endiannness conversions (e.g. RGB555BE on a LE system).
Fourthly, fixes crashes when converting from e.g. monowhite to
monowhite, which calls planarCopyWrapper() and overwrites/reads because
n_bytes != n_pixels.

12 years agocabac: split cabac.h into declarations and function definitions
Diego Biurrun [Thu, 12 Jan 2012 20:56:02 +0000 (21:56 +0100)]
cabac: split cabac.h into declarations and function definitions

This fixes standalone compilation of some decoders with --disable-optimizations.
cabac.h defines some inline functions that use symbols from cabac.c.  Without
optimizations these inline functions are not eliminated and linking fails with
references to non-existing symbols.

Splitting the inline functions off into their own header and only #including
it in the places where the inline functions are used allows #including cabac.h
from anywhere without ill effects.

12 years agocabac: Mark ff_h264_mps_state array as static, it is only used within cabac.c.
Diego Biurrun [Thu, 12 Jan 2012 20:35:34 +0000 (21:35 +0100)]
cabac: Mark ff_h264_mps_state array as static, it is only used within cabac.c.

12 years agocabac: Remove ff_h264_lps_state array.
Diego Biurrun [Thu, 12 Jan 2012 20:11:27 +0000 (21:11 +0100)]
cabac: Remove ff_h264_lps_state array.

It was only ever used in the cabac test program, but never initialized.

12 years agoutils: Check for extradata size overflows.
Alex Converse [Thu, 12 Jan 2012 19:12:24 +0000 (11:12 -0800)]
utils: Check for extradata size overflows.

12 years agoARM: rv34: fix asm syntax in dc transform functions
Mans Rullgard [Thu, 12 Jan 2012 19:37:31 +0000 (19:37 +0000)]
ARM: rv34: fix asm syntax in dc transform functions

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agoavio: Fix the value of the deprecated URL_FLAG_NONBLOCK
Martin Storsjö [Thu, 12 Jan 2012 15:06:04 +0000 (17:06 +0200)]
avio: Fix the value of the deprecated URL_FLAG_NONBLOCK

This isn't used in practice anywhere within libav at the moment,
but change it for consistency until it is removed.
URL_RDONLY/WRONLY were fixed in commit 5b81e295931 (after the
values that actually were used were changed at the major bump,
in commit cbea3ac8), but this flag was unintentionally left unfixed.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agorv34: fix and optimise frame dependency checking
Janne Grunau [Wed, 11 Jan 2012 19:10:23 +0000 (20:10 +0100)]
rv34: fix and optimise frame dependency checking

The sporadic threading errors during fate-rv30 were caused by calling
ff_thread_await_progress with mb row -1 as argument. That returns
immediately since progress is initialized to -1. Not yet computed
motion vectors from the reference could be used for the first
macroblocks.

12 years agorv34: NEON optimised dc only inverse transform
Janne Grunau [Thu, 12 Jan 2012 16:21:48 +0000 (17:21 +0100)]
rv34: NEON optimised dc only inverse transform

30-50% faster than the C implementation, 0.5% overall speedup on
bourne.rmvb.

12 years agoavprobe: use avio_size() instead of deprecated AVFormatContext.file_size.
Anton Khirnov [Thu, 12 Jan 2012 08:45:13 +0000 (09:45 +0100)]
avprobe: use avio_size() instead of deprecated AVFormatContext.file_size.

12 years agoffmenc: remove references to deprecated AVFormatContext.timestamp.
Anton Khirnov [Thu, 12 Jan 2012 08:38:13 +0000 (09:38 +0100)]
ffmenc: remove references to deprecated AVFormatContext.timestamp.

12 years agolavf: undeprecate read_seek().
Anton Khirnov [Thu, 12 Jan 2012 08:36:11 +0000 (09:36 +0100)]
lavf: undeprecate read_seek().

The "new seeking API" was never finished and nobody is working on it.

12 years agoavserver: remove code using deprecated CODEC_CAP_PARSE_ONLY.
Anton Khirnov [Thu, 12 Jan 2012 08:33:16 +0000 (09:33 +0100)]
avserver: remove code using deprecated CODEC_CAP_PARSE_ONLY.

12 years agolavc: replace some remaining FF_I_TYPE with AV_PICTURE_TYPE_I
Anton Khirnov [Thu, 12 Jan 2012 08:29:43 +0000 (09:29 +0100)]
lavc: replace some remaining FF_I_TYPE with AV_PICTURE_TYPE_I

12 years agolavc: ifdef out parse_only AVOption
Anton Khirnov [Thu, 12 Jan 2012 08:28:15 +0000 (09:28 +0100)]
lavc: ifdef out parse_only AVOption

12 years agonellymoserdec: SAMPLE_FMT -> AV_SAMPLE_FMT
Anton Khirnov [Thu, 12 Jan 2012 08:26:11 +0000 (09:26 +0100)]
nellymoserdec: SAMPLE_FMT -> AV_SAMPLE_FMT

12 years agompegvideo_enc: ifdef out/replace references to deprecated codec flags.
Anton Khirnov [Thu, 12 Jan 2012 08:25:05 +0000 (09:25 +0100)]
mpegvideo_enc: ifdef out/replace references to deprecated codec flags.

12 years agoriff: remove references to sonic codec ids
Anton Khirnov [Thu, 12 Jan 2012 08:12:59 +0000 (09:12 +0100)]
riff: remove references to sonic codec ids

They are deprecated and will be purged on next major bump.

12 years agoindeo4: add some missing static and const qualifiers
Kostya Shishkov [Thu, 12 Jan 2012 09:01:33 +0000 (10:01 +0100)]
indeo4: add some missing static and const qualifiers

From the patch by Reimar Döffinger.

12 years agorv34: DC-only inverse transform
Christophe GISQUET [Sun, 1 Jan 2012 17:33:22 +0000 (18:33 +0100)]
rv34: DC-only inverse transform

When decoding coefficients, detect whether the block is DC-only, and take
advantage of this knowledge to perform DC-only inverse transform.

This is achieved by:
- first, changing the 108x4 element modulo_three_table into a 108 element
  table (kind of base4), and accessing each value using mask and shifts.
- then, checking low bits for 0 (as they represent the presence of higher
  frequency coefficients)

Also provide x86 SIMD code for the DC-only inverse transform.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
12 years agoavconv: use AVFrame.width/height/format instead of corresponding AVCodecContext fields
Anton Khirnov [Sat, 31 Dec 2011 16:15:50 +0000 (17:15 +0100)]
avconv: use AVFrame.width/height/format instead of corresponding AVCodecContext fields

12 years agolavfi: move version macros to a new installed header version.h
Anton Khirnov [Sat, 31 Dec 2011 15:20:10 +0000 (16:20 +0100)]
lavfi: move version macros to a new installed header version.h

12 years agovsrc_buffer: release the buffer on uninit.
Anton Khirnov [Fri, 30 Dec 2011 19:56:06 +0000 (20:56 +0100)]
vsrc_buffer: release the buffer on uninit.

12 years agorgb2rgb: rgb12tobgr12()
Paul B Mahol [Wed, 11 Jan 2012 19:19:00 +0000 (19:19 +0000)]
rgb2rgb: rgb12tobgr12()

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agolatmdec: Check AudioSpecificConfig length before decoding extradata.
Alex Converse [Wed, 11 Jan 2012 22:03:57 +0000 (14:03 -0800)]
latmdec: Check AudioSpecificConfig length before decoding extradata.

This is different than a normal get_bits() over read because
decode_audio_specific_config() creates its own GetBitContext.

Fixes Bug 170.

12 years agofft: init functions with INIT_XMM/YMM.
Henrik Gramner [Wed, 11 Jan 2012 17:40:34 +0000 (17:40 +0000)]
fft: init functions with INIT_XMM/YMM.

This is required to handle clobbering of XMM registers on Win64
correctly. Fixes FFT and all tests depending on FFT on Win64.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agopcmenc: set frame_size to 0.
Justin Ruggles [Tue, 10 Jan 2012 20:17:39 +0000 (15:17 -0500)]
pcmenc: set frame_size to 0.

This indicates that the actual frame size is based on the buf_size passed to
avcodec_encode_audio().

12 years agogsm demuxer: use generic seeking instead of a gsm-specific function.
Justin Ruggles [Mon, 9 Jan 2012 18:49:52 +0000 (13:49 -0500)]
gsm demuxer: use generic seeking instead of a gsm-specific function.

Since packets all contain only a single block, the generic seek function can
be used while still maintaining block-accuracy.

12 years agogsm demuxer: return packets with only 1 gsm block at a time.
Justin Ruggles [Mon, 9 Jan 2012 18:48:46 +0000 (13:48 -0500)]
gsm demuxer: return packets with only 1 gsm block at a time.

fixes stream copy of raw gsm to mov.
tested with QuickTime.

12 years agoavcodec: add GSM parser
Justin Ruggles [Mon, 9 Jan 2012 00:50:31 +0000 (19:50 -0500)]
avcodec: add GSM parser

The WAVE demuxer returns packets with many blocks per frame, which needs to be
parsed into single blocks. This has a side-effect of fixing the timestamps.

12 years agodoc: Replace ffmpeg references in avserver config file by avconv.
Diego Biurrun [Wed, 11 Jan 2012 09:50:35 +0000 (10:50 +0100)]
doc: Replace ffmpeg references in avserver config file by avconv.

12 years agodoc: Fix names of av_log color environment variables.
Diego Biurrun [Wed, 11 Jan 2012 09:49:49 +0000 (10:49 +0100)]
doc: Fix names of av_log color environment variables.

12 years agoFix a bunch of platform name and other typos.
Diego Biurrun [Mon, 12 Dec 2011 20:21:24 +0000 (21:21 +0100)]
Fix a bunch of platform name and other typos.

12 years agoAdd some missing changelog entries and release 0.8_beta2 v0.8b2
Reinhard Tartler [Wed, 11 Jan 2012 08:32:56 +0000 (09:32 +0100)]
Add some missing changelog entries and release 0.8_beta2

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
12 years agoNo longer build libpostproc by default
Reinhard Tartler [Tue, 10 Jan 2012 16:52:50 +0000 (17:52 +0100)]
No longer build libpostproc by default

update documentation to inform developers that it may be removed in a
later release.

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
12 years agowtv: fix memleaks during normal operation
Janne Grunau [Wed, 11 Jan 2012 00:34:30 +0000 (01:34 +0100)]
wtv: fix memleaks during normal operation

12 years agothreads: add CODEC_CAP_AUTO_THREADS for libvpx and xavs
Janne Grunau [Tue, 10 Jan 2012 16:21:52 +0000 (17:21 +0100)]
threads: add CODEC_CAP_AUTO_THREADS for libvpx and xavs

12 years agorv34: frame-level multi-threading
Janne Grunau [Fri, 9 Sep 2011 12:26:32 +0000 (14:26 +0200)]
rv34: frame-level multi-threading

Statistics for bourne.rmvb -an -f null

1 thread:  37.12s user 0.03s system  99% cpu 37.174 total
2 threads: 47.63s user 0.24s system 185% cpu 25.807 total
4 threads: 41.21s user 0.30s system 327% cpu 12.674 total

12 years agompegvideo: claim ownership of referenced pictures
Janne Grunau [Tue, 10 Jan 2012 14:08:20 +0000 (15:08 +0100)]
mpegvideo: claim ownership of referenced pictures

Under certain conditions pictures could be released before they were
returned with frame-threading. Broken mv computation in the upcoming
rv34 frame-threading patch was caused by this.

To prevent contexts from running out of available pictures the loop
releasing "unused" pictures has to be run for B frames too.

12 years agoaacsbr: prevent out of bounds memcpy().
Alex Converse [Tue, 10 Jan 2012 21:07:09 +0000 (13:07 -0800)]
aacsbr: prevent out of bounds memcpy().

Fixes Libav Bug 195.

This doesn't make the code handle sample rate or upsample/downsample
change properly but this is still a good sanity check.

Based on change by Michael Niedermayer.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
12 years agoipmovie: fix pts for CODEC_ID_INTERPLAY_DPCM
Justin Ruggles [Tue, 10 Jan 2012 13:48:23 +0000 (08:48 -0500)]
ipmovie: fix pts for CODEC_ID_INTERPLAY_DPCM

frame sample count calculation was incorrect

12 years agosierravmd: fix audio pts
Justin Ruggles [Tue, 10 Jan 2012 14:24:21 +0000 (09:24 -0500)]
sierravmd: fix audio pts

The duration of the first packet was being calculated incorrectly, leading to
an incorrect timestamp offset.

12 years agobethsoftvideo: Use bytestream2 functions to prevent buffer overreads.
Aneesh Dogra [Tue, 10 Jan 2012 18:08:03 +0000 (23:38 +0530)]
bethsoftvideo: Use bytestream2 functions to prevent buffer overreads.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agobmpenc: support for PIX_FMT_RGB444
Paul B Mahol [Tue, 10 Jan 2012 16:06:02 +0000 (16:06 +0000)]
bmpenc: support for PIX_FMT_RGB444

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoswscale: fix crash in fast_bilinear code when compiled with -mred-zone.
Ronald S. Bultje [Sun, 20 Nov 2011 23:54:15 +0000 (15:54 -0800)]
swscale: fix crash in fast_bilinear code when compiled with -mred-zone.

Additional comments from Måns Rullgard have been integrated
by Reinhard Tartler.

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
12 years agoswscale: specify register type.
Oka Motofumi [Tue, 10 Jan 2012 14:39:04 +0000 (06:39 -0800)]
swscale: specify register type.

Fixes a compilation failure on win64.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agorv34: use get_bits_left()
Janne Grunau [Mon, 9 Jan 2012 01:06:59 +0000 (02:06 +0100)]
rv34: use get_bits_left()

It is not necessary to store the bit stream length in a RV34DecContext
field.

12 years agoavconv: reinitialize the filtergraph on resolution change.
Anton Khirnov [Mon, 2 Jan 2012 14:02:46 +0000 (15:02 +0100)]
avconv: reinitialize the filtergraph on resolution change.

This is a hopefully temporary solution until lavfi can properly deal
with resolution changes.

12 years agovsrc_buffer: error on changing frame parameters.
Anton Khirnov [Tue, 3 Jan 2012 10:18:00 +0000 (11:18 +0100)]
vsrc_buffer: error on changing frame parameters.

12 years agoavconv: fix -copyinkf.
Anton Khirnov [Tue, 10 Jan 2012 08:13:32 +0000 (09:13 +0100)]
avconv: fix -copyinkf.

This option only applies to streamcopy, but is currently processed only
when encoding.

12 years agofate: Update file checksums after the mov muxer change in a78dbada55d6
Martin Storsjö [Tue, 10 Jan 2012 14:37:40 +0000 (16:37 +0200)]
fate: Update file checksums after the mov muxer change in a78dbada55d6

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agomovenc: Don't store a nonzero creation time if nothing was set by the caller
Martin Storsjö [Mon, 9 Jan 2012 16:35:01 +0000 (18:35 +0200)]
movenc: Don't store a nonzero creation time if nothing was set by the caller

If the creation time is stored in the file as a zero, the
mov demuxer skips exporting the creation time. Currently,
files muxed without a creation time get demuxed with a
Jan 1st 1970 creation timestamp.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agobmpdec: support for rgb444 with bitfields compression
Paul B Mahol [Mon, 9 Jan 2012 23:37:24 +0000 (23:37 +0000)]
bmpdec: support for rgb444 with bitfields compression

Do not display garbage for invalid/unsupported bitfields values.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agorgb2rgb: allow conversion for <15 bpp
Paul B Mahol [Tue, 10 Jan 2012 02:54:34 +0000 (02:54 +0000)]
rgb2rgb: allow conversion for <15 bpp

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agodoc: fix stray reference to FFmpeg
Luca Barbato [Sun, 8 Jan 2012 16:49:43 +0000 (17:49 +0100)]
doc: fix stray reference to FFmpeg

12 years agov4l2: use C99 struct initializer
Luca Barbato [Sat, 7 Jan 2012 09:59:35 +0000 (10:59 +0100)]
v4l2: use C99 struct initializer

Remove some unneeded memsets.

12 years agov4l2: poll the file descriptor
Luca Barbato [Thu, 5 Jan 2012 11:17:45 +0000 (12:17 +0100)]
v4l2: poll the file descriptor

Instead of busy waiting use poll();

12 years agov4l2: support compressed formats
Luca Barbato [Wed, 4 Jan 2012 14:06:10 +0000 (15:06 +0100)]
v4l2: support compressed formats

Let pass the codec name to -pixel_format and introduce -input_format.

12 years agokmvc: Use bytestream2 functions to prevent buffer overreads.
Laurentiu Ion [Tue, 10 Jan 2012 01:21:17 +0000 (03:21 +0200)]
kmvc: Use bytestream2 functions to prevent buffer overreads.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agofate: Add tests for more AAC features.
Gaurav Narula [Thu, 29 Dec 2011 21:20:22 +0000 (02:50 +0530)]
fate: Add tests for more AAC features.

al15_44 uses independent coupling.
al18_44 uses PNS (perceptual noise substitution).
am05_44 uses main prediction and independent coupling.

Signed-off-by: Alex Converse <alex.converse@gmail.com>
12 years agoaacps: Add missing newline in error message.
Alex Converse [Fri, 6 Jan 2012 22:49:11 +0000 (14:49 -0800)]
aacps: Add missing newline in error message.

12 years agofate: Add tests for vc1/wmapro in ism.
Alex Converse [Fri, 6 Jan 2012 02:39:20 +0000 (18:39 -0800)]
fate: Add tests for vc1/wmapro in ism.

12 years agoaacdec: Add a fate test for 5.1 channel SBR.
Alex Converse [Sat, 7 Jan 2012 01:23:49 +0000 (17:23 -0800)]
aacdec: Add a fate test for 5.1 channel SBR.

12 years agoaacdec: Turn off PS for multichannel files that use PCE based configs.
Alex Converse [Sat, 7 Jan 2012 01:22:45 +0000 (17:22 -0800)]
aacdec: Turn off PS for multichannel files that use PCE based configs.

Fixes al_sbr_cm_48_5.1.mp4.

12 years agocabac: remove put_cabac_u/ueg from cabac-test.
Diego Biurrun [Sat, 7 Jan 2012 19:27:31 +0000 (20:27 +0100)]
cabac: remove put_cabac_u/ueg from cabac-test.

The functions are not used in any part of Libav, therefore testing them in the
cabac-test is unnecessary. Since this makes them unused, remove the functions.

12 years agoswscale: RGB4444 and BGR444 input
Paul B Mahol [Mon, 9 Jan 2012 01:24:33 +0000 (01:24 +0000)]
swscale: RGB4444 and BGR444 input

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoFATE: add test for xWMA demuxer.
Mike Melanson [Sun, 8 Jan 2012 03:59:07 +0000 (19:59 -0800)]
FATE: add test for xWMA demuxer.

(Does not attempt to decode percetual audio data inside.)
Code coverage: libavformat/xwma.c: 3% -> 75%

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoFATE: add test for SMJPEG demuxer and associated IMA ADPCM audio decoder.
Mike Melanson [Sun, 8 Jan 2012 03:59:08 +0000 (19:59 -0800)]
FATE: add test for SMJPEG demuxer and associated IMA ADPCM audio decoder.

(Don't attempt to decode JPEG data.)
Code coverage: libavformat/smjpeg.c: 0% -> 69%
libavcodec/adpcm.c: 0% -> 10% (fresh run); 92.4% -> 93% following a FATE run

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agompegaudiodec: optimized iMDCT transform
Vitor Sessak [Thu, 5 Jan 2012 19:26:33 +0000 (20:26 +0100)]
mpegaudiodec: optimized iMDCT transform

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agompegaudiodec: change imdct window arrangment for better pointer alignment
Vitor Sessak [Wed, 4 Jan 2012 20:43:47 +0000 (21:43 +0100)]
mpegaudiodec: change imdct window arrangment for better pointer alignment

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agompegaudiodec: move imdct and windowing function to mpegaudiodsp
Vitor Sessak [Wed, 4 Jan 2012 20:32:47 +0000 (21:32 +0100)]
mpegaudiodec: move imdct and windowing function to mpegaudiodsp

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agompegaudiodec: interleave iMDCT buffer to simplify future SIMD implementations
Vitor Sessak [Tue, 3 Jan 2012 20:40:57 +0000 (21:40 +0100)]
mpegaudiodec: interleave iMDCT buffer to simplify future SIMD implementations

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoswscale: convert yuy2/uyvy/nv12/nv21ToY/UV from inline asm to yasm.
Ronald S. Bultje [Mon, 9 Jan 2012 00:37:43 +0000 (16:37 -0800)]
swscale: convert yuy2/uyvy/nv12/nv21ToY/UV from inline asm to yasm.

Also implement SSE2/AVX variants.

12 years agoFATE: test to exercise WTV demuxer.
Mike Melanson [Sun, 8 Jan 2012 03:59:09 +0000 (19:59 -0800)]
FATE: test to exercise WTV demuxer.

Does not attempt to decode perceptual codecs inside.
Code coverage: libavformat/wtv.c: 0% -> 71%

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agomjpegdec: K&R formatting cosmetics
Daniel Huang [Sun, 8 Jan 2012 19:14:37 +0000 (13:14 -0600)]
mjpegdec: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoswscale: K&R formatting cosmetics for code examples
Diego Biurrun [Tue, 3 Jan 2012 11:20:59 +0000 (12:20 +0100)]
swscale: K&R formatting cosmetics for code examples

12 years agoswscale: K&R reformatting cosmetics for header files
Diego Biurrun [Fri, 30 Dec 2011 17:37:16 +0000 (18:37 +0100)]
swscale: K&R reformatting cosmetics for header files

12 years agoFATE test: cvid-grayscale; ensures that the grayscale Cinepak variant is exercised.
Mike Melanson [Sun, 8 Jan 2012 03:59:06 +0000 (19:59 -0800)]
FATE test: cvid-grayscale; ensures that the grayscale Cinepak variant is exercised.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agobfi: Use bytestream2 functions to prevent buffer overreads.
Aneesh Dogra [Sun, 8 Jan 2012 19:57:58 +0000 (01:27 +0530)]
bfi: Use bytestream2 functions to prevent buffer overreads.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agodpcm: Fix invalid writes
Laurentiu Ion [Sun, 8 Jan 2012 21:05:37 +0000 (23:05 +0200)]
dpcm: Fix invalid writes

Fixes bug: #152

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoutvideo: frame multithreading.
Aneesh Dogra [Sun, 8 Jan 2012 19:19:46 +0000 (00:49 +0530)]
utvideo: frame multithreading.

>> time ./avconv -i file.avi -f null -
Before : real 0m7.784s
After  : real   0m3.662s

Tested on a Intel Core i3 Processor (2 cores, 4 threads).

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>