ffmpeg.git
6 years agovf_drawbox: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
vf_drawbox: switch to an AVOptions-based system.

6 years agovf_delogo: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
vf_delogo: switch to an AVOptions-based system.

6 years agovf_cropdetect: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
vf_cropdetect: switch to an AVOptions-based system.

6 years agovf_crop: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
vf_crop: switch to an AVOptions-based system.

6 years agovf_boxblur: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
vf_boxblur: switch to an AVOptions-based system.

6 years agovf_blackframe: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
vf_blackframe: switch to an AVOptions-based system.

6 years agovf_aspect: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
vf_aspect: switch to an AVOptions-based system.

6 years agovf_(no)format: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
vf_(no)format: switch to an AVOptions-based system.

6 years agoaf_aformat: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
af_aformat: switch to an AVOptions-based system.

6 years agobuffersrc: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
buffersrc: switch to an AVOptions-based system.

6 years agoaf_resample: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
af_resample: switch to an AVOptions-based system.

6 years agolavfi: switch to an AVOptions-based system.
Anton Khirnov [Mon, 25 Feb 2013 20:21:29 +0000 (21:21 +0100)]
lavfi: switch to an AVOptions-based system.

6 years agodfa: implement missing TDLT coding method
Kostya Shishkov [Mon, 8 Apr 2013 18:06:42 +0000 (20:06 +0200)]
dfa: implement missing TDLT coding method

6 years agosrtp: Include rtpdec.h for RTP_MAX_PACKET_LENGTH
Martin Storsjö [Tue, 9 Apr 2013 08:56:55 +0000 (11:56 +0300)]
srtp: Include rtpdec.h for RTP_MAX_PACKET_LENGTH

This was missed from 350ad50b - this fixes building the fate-srtp
test.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec: Increase max rtp packet size to 8192
Andrew Van Til [Thu, 4 Apr 2013 23:46:50 +0000 (01:46 +0200)]
rtpdec: Increase max rtp packet size to 8192

This fixes connecting to "Ceton InfiniTV4 PCIe & USB".

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agolavf: Use RTP_MAX_PACKET_LENGTH instead of 1500
Andrew Van Til [Thu, 4 Apr 2013 23:45:52 +0000 (01:45 +0200)]
lavf: Use RTP_MAX_PACKET_LENGTH instead of 1500

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoh264pred: Add a few missing const declarations for ff_cropTbl derived pointers
Martin Storsjö [Mon, 8 Apr 2013 14:34:38 +0000 (17:34 +0300)]
h264pred: Add a few missing const declarations for ff_cropTbl derived pointers

The pointers that get assigned ff_cropTbl were made const in
9e0f14f1, but other variables that transitively are assigned
based on these variables were missed.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agolavc: Move ff_cropTbl and ff_zigzag_direct from dsputil to mathtables
Ronald S. Bultje [Sun, 3 Mar 2013 23:47:11 +0000 (15:47 -0800)]
lavc: Move ff_cropTbl and ff_zigzag_direct from dsputil to mathtables

These are widely used throughout libavcodec, nothing dsputil-specific.

Change ff_cropTbl to a statically initialized table, to avoid
initializing it with a function call.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agolavc: Make pointers to ff_cropTbl const
Martin Storsjö [Wed, 3 Apr 2013 12:28:45 +0000 (15:28 +0300)]
lavc: Make pointers to ff_cropTbl const

There's no point in these pointers not being const.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agovp3: Embed idct_permutation array directly in VP3DecoderContext
Ronald S. Bultje [Sat, 9 Mar 2013 17:08:36 +0000 (09:08 -0800)]
vp3: Embed idct_permutation array directly in VP3DecoderContext

This makes the vp3 decoder less dependent on dsputil, and will aid
in making it (eventually) dsputil-independent.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agox86: qpel: Move fullpel and l2 functions to a separate file
Ronald S. Bultje [Sat, 9 Mar 2013 04:40:16 +0000 (20:40 -0800)]
x86: qpel: Move fullpel and l2 functions to a separate file

This way, they can be shared between mpeg4qpel and h264qpel without
requiring either one to be compiled unconditionally.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agobfin: Make vp3 functions static
Martin Storsjö [Wed, 3 Apr 2013 11:26:14 +0000 (04:26 -0700)]
bfin: Make vp3 functions static

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agobfin: Don't use the vp3 idct functions if bitexact behaviour is expected
Martin Storsjö [Wed, 3 Apr 2013 10:56:33 +0000 (03:56 -0700)]
bfin: Don't use the vp3 idct functions if bitexact behaviour is expected

In the non-bitexact mode, vp3 currently decodes to the same
frame crcs as before 28f9ab702 (and the output visually looks
correct).

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agox86: sbrdsp: Implement SSE neg_odd_64
Christophe Gisquet [Fri, 21 Dec 2012 17:11:06 +0000 (18:11 +0100)]
x86: sbrdsp: Implement SSE neg_odd_64

Timing on Arrandale:
        C   SSE
Win32:  57   44
Win64:  47   38
Unrolling and not storing mask both save some cycles.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agoIntegrate lcov/gcov into Libav
Reinhard Tartler [Sat, 23 Mar 2013 07:17:24 +0000 (08:17 +0100)]
Integrate lcov/gcov into Libav

The gcov/lcov are a common toolchain for visualizing code coverage with
the GNU/Toolchain. The documentation and implementation of this
integration was heavily inspired from the blog entry by Mike Melanson:
http://multimedia.cx/eggs/using-lcov-with-ffmpeg/

6 years agoh261: Move mvmap table to the only place it is used
Diego Biurrun [Thu, 4 Apr 2013 12:34:38 +0000 (14:34 +0200)]
h261: Move mvmap table to the only place it is used

6 years agoh261: cosmetics: Move functions to avoid forward declarations
Diego Biurrun [Thu, 4 Apr 2013 12:33:55 +0000 (14:33 +0200)]
h261: cosmetics: Move functions to avoid forward declarations

6 years agoh261: K&R formatting and prettyprinting cosmetics
Diego Biurrun [Thu, 4 Apr 2013 12:31:58 +0000 (14:31 +0200)]
h261: K&R formatting and prettyprinting cosmetics

6 years agoh261: Move function declarations to h261.h
Diego Biurrun [Wed, 3 Apr 2013 18:16:08 +0000 (20:16 +0200)]
h261: Move function declarations to h261.h

6 years agoh261: Remove H.261 loop filter from dsputil
Diego Biurrun [Wed, 3 Apr 2013 18:09:58 +0000 (20:09 +0200)]
h261: Remove H.261 loop filter from dsputil

There is no arch-optimized version of the H.261 loop filter and there
likely will never be, so the dsputil overhead does not give any benefit.

6 years agoh261: Move ff_h261_rl_table_store declaration to header file
Diego Biurrun [Wed, 3 Apr 2013 16:52:30 +0000 (18:52 +0200)]
h261: Move ff_h261_rl_table_store declaration to header file

6 years agolibopenjpeg: Add support for XYZ colorspace, found in DCINEMA frames
Nicolas Bertrand [Tue, 26 Mar 2013 22:21:15 +0000 (23:21 +0100)]
libopenjpeg: Add support for XYZ colorspace, found in DCINEMA frames

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agopixdesc/pixfmt: Add XYZ colorspace for XYZ 12-bit values
Nicolas Bertrand [Tue, 26 Mar 2013 22:21:13 +0000 (23:21 +0100)]
pixdesc/pixfmt: Add XYZ colorspace for XYZ 12-bit values

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agoimg2: Add j2k file extension for JPEG 2000
Nicolas Bertrand [Tue, 26 Mar 2013 22:21:12 +0000 (23:21 +0100)]
img2: Add j2k file extension for JPEG 2000

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agoxmv: do not leak memory in the error paths in xmv_read_header()
Anton Khirnov [Thu, 28 Mar 2013 09:34:47 +0000 (10:34 +0100)]
xmv: do not leak memory in the error paths in xmv_read_header()

CC: libav-stable@libav.org
6 years agoxmv: check audio track parameters validity.
Anton Khirnov [Thu, 28 Mar 2013 09:33:02 +0000 (10:33 +0100)]
xmv: check audio track parameters validity.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
6 years agobmv: check for len being valid in bmv_decode_frame().
Anton Khirnov [Thu, 28 Mar 2013 09:09:36 +0000 (10:09 +0100)]
bmv: check for len being valid in bmv_decode_frame().

It can be 0 or -1 for invalid files, which may result in invalid memory
access.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
6 years agoid3v2: pad the APIC packets as required by lavc.
Anton Khirnov [Thu, 28 Mar 2013 08:49:38 +0000 (09:49 +0100)]
id3v2: pad the APIC packets as required by lavc.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
6 years agodfa: check for invalid access in decode_wdlt().
Anton Khirnov [Wed, 27 Mar 2013 17:18:38 +0000 (18:18 +0100)]
dfa: check for invalid access in decode_wdlt().

This can happen when the number of skipped lines is not consistent with
the number of coded lines.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
6 years agolavf: make sure stream probe data gets freed.
Anton Khirnov [Wed, 27 Mar 2013 16:56:59 +0000 (17:56 +0100)]
lavf: make sure stream probe data gets freed.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
6 years agoavfiltergraph: set deprecated filter_count.
Anton Khirnov [Sat, 30 Mar 2013 21:15:48 +0000 (22:15 +0100)]
avfiltergraph: set deprecated filter_count.

6 years agoopt: check the return values of av_get_token for ENOMEM.
Anton Khirnov [Mon, 25 Feb 2013 11:32:49 +0000 (12:32 +0100)]
opt: check the return values of av_get_token for ENOMEM.

6 years agodoc: Fix best_nb_channells typo
Peter Meerwald [Wed, 3 Apr 2013 12:33:58 +0000 (14:33 +0200)]
doc: Fix best_nb_channells typo

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agomatroska: pass the lace size to the matroska_parse_rm_audio
Luca Barbato [Fri, 29 Mar 2013 11:51:51 +0000 (12:51 +0100)]
matroska: pass the lace size to the matroska_parse_rm_audio

Each lace must be independent according to the specification.

Fix heap-buffer-overflow in matroska_parse_block for
corrupted real media in mkv files.

Stricter check than fc43c19a567aa945398dccb491d972c11ec2a065

CC: libav-stable@libav.org
6 years agomatroska: fix a corner case in ebml-lace parsing
Luca Barbato [Thu, 28 Mar 2013 10:52:52 +0000 (11:52 +0100)]
matroska: fix a corner case in ebml-lace parsing

Make sure we notice when the lace_size[n] is a negative value.

CC: libav-stable@libav.org
6 years agomatroska: Update the available size after lace parsing
Dale Curtis [Wed, 27 Mar 2013 21:02:03 +0000 (14:02 -0700)]
matroska: Update the available size after lace parsing

Fix heap-buffer-overflow in matroska_parse_block for
corrupted real media in mkv files.

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoclang: use -fsantize=address and -fsanitize=thread
Luca Barbato [Thu, 28 Mar 2013 02:30:53 +0000 (03:30 +0100)]
clang: use -fsantize=address and -fsanitize=thread

The previous syntax is deprecated.

6 years agoavfiltergraph: check for sws opts being non-NULL before using them.
Anton Khirnov [Sun, 17 Mar 2013 15:14:58 +0000 (16:14 +0100)]
avfiltergraph: check for sws opts being non-NULL before using them.

Avoid snprintfing a NULL pointer.

CC: libav-stable@libav.org
6 years agoconfigure: Check for the atomic.h functions used in the suncc atomics header
Martin Storsjö [Thu, 28 Mar 2013 09:48:39 +0000 (10:48 +0100)]
configure: Check for the atomic.h functions used in the suncc atomics header

The "suncc" atomics implementation uses a suncc specific memory
barrier, but also relies on a few atomic functions from atomic.h,
that are not suncc specific but specific to solaris. This made
the current implementation fail on suncc on linux.

6 years agoconfigure: prettify atomics handling.
Anton Khirnov [Wed, 27 Mar 2013 18:26:19 +0000 (19:26 +0100)]
configure: prettify atomics handling.

Add simpler names and a shorthand for native atomics (as opposed to
pthreads fallback).

6 years agooma: Validate sample rates
Luca Barbato [Sat, 30 Mar 2013 08:46:06 +0000 (09:46 +0100)]
oma: Validate sample rates

The sample rate index is 3 bits even if currently index 5, 6 and 7 are
not supported.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
6 years agodoc/platform: Remove part about dllimport
Derek Buitenhuis [Sat, 30 Mar 2013 17:52:02 +0000 (13:52 -0400)]
doc/platform: Remove part about dllimport

Only deprecated things need this at all anymore, as we have functions
to access them or they are no longer needed.

The document should not encourage use of deprecated APIs.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agovp8: Fix pthread_cond and pthread_mutex leaks
Matt Wolenetz [Thu, 28 Mar 2013 00:29:57 +0000 (17:29 -0700)]
vp8: Fix pthread_cond and pthread_mutex leaks

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agofate: add an option to generate the references
Luca Barbato [Mon, 18 Mar 2013 22:45:58 +0000 (23:45 +0100)]
fate: add an option to generate the references

Useful to add or update fate tests.

6 years agoflvdec: read audio sample size and channels metadata
Justin Ruggles [Thu, 21 Mar 2013 12:23:51 +0000 (08:23 -0400)]
flvdec: read audio sample size and channels metadata

This is needed in order for the FLV demuxer not to detect a codec change when
using the "flv_metadata" option.

6 years agoflvdec: use the correct audio codec id when parsing metadata
Justin Ruggles [Thu, 21 Mar 2013 12:03:58 +0000 (08:03 -0400)]
flvdec: use the correct audio codec id when parsing metadata

6 years agovmdav: convert to bytestream2
Alexandra Khirnova [Wed, 13 Mar 2013 12:54:27 +0000 (13:54 +0100)]
vmdav: convert to bytestream2

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agoFATE: add a test for the join filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the join filter

6 years agoFATE: add a test for the volume filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the volume filter

6 years agoFATE: add a test for the channelsplit filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the channelsplit filter

6 years agoFATE: add a test for the channelmap filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the channelmap filter

6 years agoFATE: add a test for the negate filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the negate filter

6 years agoFATE: add a test for the overlay filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the overlay filter

6 years agoFATE: add a test for the setpts filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the setpts filter

6 years agoFATE: add a test for the hqdn3d filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the hqdn3d filter

6 years agoFATE: add a test for the transpose filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the transpose filter

6 years agoFATE: add a test for the unsharp filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the unsharp filter

6 years agoFATE: add a test for the fade filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the fade filter

6 years agoFATE: add a test for the drawbox filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the drawbox filter

6 years agoFATE: add a test for the boxblur filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the boxblur filter

6 years agoFATE: add a test for the gradfun filter
Anton Khirnov [Wed, 13 Mar 2013 10:03:08 +0000 (11:03 +0100)]
FATE: add a test for the gradfun filter

6 years agolavfi/gradfun: remove rounding to match C and SSE code.
Clément Bœsch [Thu, 6 Dec 2012 23:41:04 +0000 (00:41 +0100)]
lavfi/gradfun: remove rounding to match C and SSE code.

There is no noticable benefit for such precision.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agolavfi/gradfun: fix dithering in MMX code.
Clément Bœsch [Thu, 6 Dec 2012 23:39:31 +0000 (00:39 +0100)]
lavfi/gradfun: fix dithering in MMX code.

Current dithering only uses the first 4 instead of the whole 8 random values.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agolavfi/gradfun: fix rounding in MMX code.
Clément Bœsch [Thu, 6 Dec 2012 23:36:29 +0000 (00:36 +0100)]
lavfi/gradfun: fix rounding in MMX code.

Current code divides before increasing precision.

Also reduce upper bound for strength from 255 to 64.  This will prevent
an overflow in the SSSE3 and MMX filter_line code: delta is expressed as
an u16 being shifted by 2 to the left. If it overflows, having a
strength not above 64 will make sure that m is set to 0 (making the
m*m*delta >> 14 expression void).

A value above 64 should not make any sense unless gradfun is used as
a blur filter.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agolavfi/gradfun: do not increment DC pointer for odd values.
Clément Bœsch [Wed, 5 Dec 2012 03:58:03 +0000 (04:58 +0100)]
lavfi/gradfun: do not increment DC pointer for odd values.

First DC is only used once otherwise. This also makes the code
consistent with ASM versions.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agofate: filter: Add dependencies
Diego Biurrun [Sat, 1 Dec 2012 19:38:26 +0000 (20:38 +0100)]
fate: filter: Add dependencies

Signed-off-by: Anton Khirnov <anton@khirnov.net>
6 years agoavconv: add options for reading filtergraphs from a file.
Anton Khirnov [Wed, 13 Mar 2013 13:24:45 +0000 (14:24 +0100)]
avconv: add options for reading filtergraphs from a file.

6 years agoAVOptions: make av_set_options_string() forward options to child objects
Anton Khirnov [Tue, 12 Mar 2013 17:23:27 +0000 (18:23 +0100)]
AVOptions: make av_set_options_string() forward options to child objects

6 years agowin32: Use 64-bit fstat/lseek variants for MSVC as well
Hendrik Leppkes [Tue, 12 Mar 2013 15:45:13 +0000 (16:45 +0100)]
win32: Use 64-bit fstat/lseek variants for MSVC as well

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agowin32: Make ff_win32_open more robust
Reimar Döffinger [Sun, 10 Mar 2013 19:03:19 +0000 (20:03 +0100)]
win32: Make ff_win32_open more robust

- Make MultiByteToWideChar fail when it encounters invalid encoding.
  Without this, invalid characters might just be skipped
- When MultiByteToWideChar fails, assume the file name is in CP_ACP
  and open it via normal open function, even when the file will be
  written
- When malloc fails return error instead of crashing

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agowin32: Allow other programs to open the same files
Reimar Döffinger [Fri, 20 Jan 2012 19:27:22 +0000 (20:27 +0100)]
win32: Allow other programs to open the same files

In order to match Linux behaviour better our Windows-specific
open() replacement should disable Windows default file locking.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoconfigure: Add error_resilience as dependency to the eatqi decoder
Martin Storsjö [Tue, 26 Mar 2013 09:04:08 +0000 (11:04 +0200)]
configure: Add error_resilience as dependency to the eatqi decoder

This makes standalone compilation of the eatqi decoder
succeed. The dependency comes from the shared mpeg12dec.o file.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoape: use correct context for the bit table printed in debug
Kostya Shishkov [Wed, 27 Mar 2013 07:57:08 +0000 (08:57 +0100)]
ape: use correct context for the bit table printed in debug

6 years agobuild: Move setting of SRC_DIR to the only place it is used
Diego Biurrun [Fri, 1 Mar 2013 18:52:32 +0000 (19:52 +0100)]
build: Move setting of SRC_DIR to the only place it is used

6 years agobuild: Remove configure-generated .config file on distclean
Diego Biurrun [Mon, 25 Mar 2013 10:52:52 +0000 (11:52 +0100)]
build: Remove configure-generated .config file on distclean

6 years agomsmpeg4: Split decoding related functions to a separate file
Martin Storsjö [Tue, 26 Mar 2013 13:48:24 +0000 (15:48 +0200)]
msmpeg4: Split decoding related functions to a separate file

This fixes standalone compilation of the msmpeg4v2, msmpeg4v3
and wmv2 encoders, that previously failed to link due to the
decoder codepaths requiring error_resilience.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agompeg12: Move Mpeg1Context declaration to the only place it is used
Diego Biurrun [Tue, 26 Mar 2013 18:52:21 +0000 (19:52 +0100)]
mpeg12: Move Mpeg1Context declaration to the only place it is used

6 years agoSplit MPEG-1/2 decoder code off from MPEG-1/2 common code
Diego Biurrun [Tue, 26 Mar 2013 18:50:40 +0000 (19:50 +0100)]
Split MPEG-1/2 decoder code off from MPEG-1/2 common code

6 years agompeg12: Move some ff_mpeg1_* function declarations to a more suitable place
Diego Biurrun [Tue, 26 Mar 2013 17:25:01 +0000 (18:25 +0100)]
mpeg12: Move some ff_mpeg1_* function declarations to a more suitable place

6 years agocosmetics: Remove unnecessary extern keywords from function declarations
Diego Biurrun [Tue, 26 Mar 2013 17:41:24 +0000 (18:41 +0100)]
cosmetics: Remove unnecessary extern keywords from function declarations

6 years agodca: Move ff_dca_convert_bitstream() to the DCA common code
Diego Biurrun [Tue, 26 Mar 2013 17:17:57 +0000 (18:17 +0100)]
dca: Move ff_dca_convert_bitstream() to the DCA common code

This makes the DCA parser and decoder independent.

6 years agovdpau: wrap codec specific functions in appropiate #ifs
Janne Grunau [Tue, 26 Mar 2013 21:47:29 +0000 (22:47 +0100)]
vdpau: wrap codec specific functions in appropiate #ifs

Fixes linking when only a subset of the deprecated vdpau decoders is
enabled.

6 years agovdpau: fix obsolete mpeg1 vdpau decoder when mpeg2 is disabled
Janne Grunau [Tue, 26 Mar 2013 21:45:40 +0000 (22:45 +0100)]
vdpau: fix obsolete mpeg1 vdpau decoder when mpeg2 is disabled

6 years agoconfigure: fix dependencies of XvMC and old vdpau mpeg2 decoders
Janne Grunau [Tue, 26 Mar 2013 18:59:36 +0000 (19:59 +0100)]
configure: fix dependencies of XvMC and old vdpau mpeg2 decoders

6 years agohwaccel: fix use with frame based multithreading
Janne Grunau [Wed, 13 Mar 2013 22:36:51 +0000 (23:36 +0100)]
hwaccel: fix use with frame based multithreading

Allows use of AVHWAccel based decoders with frame based multithreading.
The decoders will be forced into an non-concurrent mode by delaying
ff_thread_finish_setup() calls after decoding of the current frame
is finished.

This wastes memory by unnecessarily using multiple threads and thus
copies of the decoder context but allows seamless switching between
hardware accelerated and frame threaded software decoding when the
hardware decoder does not support the stream.

6 years agoutils: add workaround for AVHWAccel in ff_get_buffer compat code
Janne Grunau [Mon, 25 Mar 2013 16:28:37 +0000 (17:28 +0100)]
utils: add workaround for AVHWAccel in ff_get_buffer compat code

Since c977039e585bfff28ecc037ef827c6c3d1ed88aa plane count for
PIX_FMT_HWACCEL pixel formats is 0 instead of 1. The created dummy
AVBuffers are still bogus since AVFrame does not hold frame data when
AVHWAccels are used.

6 years agoconfigure: Remove a stray msmpeg4v1 encoder declaration
Martin Storsjö [Tue, 26 Mar 2013 13:34:47 +0000 (15:34 +0200)]
configure: Remove a stray msmpeg4v1 encoder declaration

No such encoder exists currently.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoconfigure: Remove the mpegvideo dependency from svq1
Martin Storsjö [Tue, 26 Mar 2013 10:37:11 +0000 (12:37 +0200)]
configure: Remove the mpegvideo dependency from svq1

The svq1 decoder can be built standalone without mpegvideo.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agox86: vc1dsp: Fix indentation
Martin Storsjö [Tue, 26 Mar 2013 11:54:22 +0000 (13:54 +0200)]
x86: vc1dsp: Fix indentation

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoh264: Make it possible to compile without error_resilience
Ronald S. Bultje [Sun, 3 Mar 2013 00:57:26 +0000 (16:57 -0800)]
h264: Make it possible to compile without error_resilience

Error resilience is enabled by the h264 decoder, unless explicitly
disabled. --disable-everything --enable-decoder=h264 will produce
a h264 decoder with error resilience enabled, while
--disable-everything --enable-decoder=h264 --disable-error-resilience
will produce a h264 decoder with error resilience disabled.

Signed-off-by: Martin Storsjö <martin@martin.st>