ffmpeg.git
3 years agortpdec_vp9: Update header parsing to spec draft 02
Martin Storsjö [Wed, 27 Apr 2016 11:36:24 +0000 (14:36 +0300)]
rtpdec_vp9: Update header parsing to spec draft 02

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agortpdec_vp9: Make sure to free the temp buffer on close
Martin Storsjö [Wed, 27 Apr 2016 11:03:18 +0000 (14:03 +0300)]
rtpdec_vp9: Make sure to free the temp buffer on close

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agoRevert "mmaldec: autodetect by default" since it breaks linking on systems without...
Janne Grunau [Sat, 30 Apr 2016 14:05:32 +0000 (16:05 +0200)]
Revert "mmaldec: autodetect by default" since it breaks linking on systems without mmal libraries

This reverts commit 33ac77e850efdfd0e8835950c3d947baffd4df45.

3 years agommaldec: autodetect by default
wm4 [Thu, 14 Apr 2016 10:21:27 +0000 (12:21 +0200)]
mmaldec: autodetect by default

It qualifies as a system library.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agommaldec: limit internal buffering
wm4 [Thu, 14 Apr 2016 10:21:26 +0000 (12:21 +0200)]
mmaldec: limit internal buffering

This uses a new MMAL feature, which limits the number of extra frames
that can be buffered within the decoder. VIDEO_MAX_NUM_CALLBACKS can
be defined as positive or negative number. Positive numbers are
absolute, and can lead to deadlocks if the user underestimates the
number of required buffers. Negative numbers specify the number of extra
buffers, e.g. -1 means no extra buffer, (-1-N) means N extra buffers.

Set a gratuitous default of -11 (N=10). This is much lower than the
firmware default, which appears to be 96.

This is backwards compatible, but needs a symbol only present in newer
firmware headers. (It's an enum item, so it requires a check in
configure.)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agommaldec: print the MMAL format FourCC automatically
wm4 [Thu, 14 Apr 2016 10:21:24 +0000 (12:21 +0200)]
mmaldec: print the MMAL format FourCC automatically

Slight simplification. The result is the same. Also, change the
wording of the message as requested in patch review.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agoconfigure: fix mmal build dependencies
wm4 [Thu, 14 Apr 2016 10:21:23 +0000 (12:21 +0200)]
configure: fix mmal build dependencies

The mmal decoders do not depend on the software decoders.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agommaldec: send only a single EOS packet on flushing
wm4 [Thu, 14 Apr 2016 10:21:22 +0000 (12:21 +0200)]
mmaldec: send only a single EOS packet on flushing

Fixes apparent mmal_port_disable() freezes in ffmmal_stop_decoder() when
calling ffmmal_decode() with flush semantics a large number of times in
a row.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agommaldec: correct package buffering accounting
wm4 [Thu, 14 Apr 2016 10:21:21 +0000 (12:21 +0200)]
mmaldec: correct package buffering accounting

The assert in ffmmal_stop_decoder() could trigger sometimes. The
packets_buffered counter was indeed not correctly maintained, and
packets were not subtracted from it if they were still in the waiting
queue.

For some reason, this happened especially with VC-1.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agommaldec: add vc1 decoding support
wm4 [Thu, 14 Apr 2016 10:21:20 +0000 (12:21 +0200)]
mmaldec: add vc1 decoding support

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agommaldec: Add mpeg2 decoding support
Julian Scheel [Thu, 14 Apr 2016 10:21:19 +0000 (12:21 +0200)]
mmaldec: Add mpeg2 decoding support

Register mmaldec as mpeg2 decoder. Supporting mpeg2 in mmaldec is just a
matter of setting the correct MMAL_ENCODING on the input port. To ease the
addition of further supported mmal codecs a macro is introduced to generate
the decoder and decoder class structs.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agommaldec: Fix avpriv_atomic_get usage
Julian Scheel [Thu, 14 Apr 2016 10:21:18 +0000 (12:21 +0200)]
mmaldec: Fix avpriv_atomic_get usage

There is no avpriv_atomic_get, instead avpriv_atomic_int_get is to be used for
integers. This fixes building mmaldec.

Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agommaldec: Use av_assert0() instead of assert()
Michael Niedermayer [Thu, 14 Apr 2016 10:21:17 +0000 (12:21 +0200)]
mmaldec: Use av_assert0() instead of assert()

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agotestprogs: Mark some tables as static const
Diego Biurrun [Thu, 7 Apr 2016 16:52:10 +0000 (18:52 +0200)]
testprogs: Mark some tables as static const

3 years agofate: Add test for MSS1
Diego Biurrun [Sat, 16 Apr 2016 16:06:16 +0000 (18:06 +0200)]
fate: Add test for MSS1

3 years agodds: Add support for monochrome images
Vittorio Giovara [Fri, 22 Apr 2016 21:28:04 +0000 (17:28 -0400)]
dds: Add support for monochrome images

3 years agodds: Drop gray-alpha swapping
Vittorio Giovara [Fri, 22 Apr 2016 21:28:03 +0000 (17:28 -0400)]
dds: Drop gray-alpha swapping

The original sample was generated with invalid software.

3 years agodxva2_h264: Unbreak compilation after 3176217c6
Martin Storsjö [Mon, 25 Apr 2016 07:12:24 +0000 (10:12 +0300)]
dxva2_h264: Unbreak compilation after 3176217c6

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agoape: Unbreak adaptcoeffs computation
Luca Barbato [Thu, 21 Apr 2016 14:09:38 +0000 (16:09 +0200)]
ape: Unbreak adaptcoeffs computation

And simplify and explain the expression.

Fault introduced in f3fdef108eb06b1e71b29152bf6822519e787efe

3 years agoh264: eliminate max_contexts
Anton Khirnov [Wed, 13 Apr 2016 15:33:59 +0000 (17:33 +0200)]
h264: eliminate max_contexts

It is always equal to nb_slice_ctx.

3 years agoh264: allocate some tables per slice contexts, not threads
Anton Khirnov [Wed, 13 Apr 2016 15:31:27 +0000 (17:31 +0200)]
h264: allocate some tables per slice contexts, not threads

This is more correct and avoids wasting space when frame threading is
used.

3 years agoh264: remove an artificial restriction on the number of slice threads
Anton Khirnov [Wed, 13 Apr 2016 15:28:26 +0000 (17:28 +0200)]
h264: remove an artificial restriction on the number of slice threads

This limit is now unnecessary, we can easily support an arbitrary number
of threads.

3 years agoh264: remove pointless setting of some variables in loop_filter
Anton Khirnov [Wed, 13 Apr 2016 15:17:51 +0000 (17:17 +0200)]
h264: remove pointless setting of some variables in loop_filter

Those should already be set to the correct values.

3 years agoh264: remove a pointless comment
Anton Khirnov [Wed, 13 Apr 2016 15:15:40 +0000 (17:15 +0200)]
h264: remove a pointless comment

3 years agoh264: make slice threading work with deblocking_filter=1
Anton Khirnov [Wed, 13 Apr 2016 11:52:36 +0000 (13:52 +0200)]
h264: make slice threading work with deblocking_filter=1

In such a case, decode the MBs in parallel without the loop filter, then
execute the filter serially.

The ref2frm array was previously moved to H264SliceContext. That was
incorrect, since it applies to all the slices and should properly be in
H264Context (it did not actually break decoding, since this distinction
only becomes relevant with slice threading and deblocking_filter=1,
which was not implemented before this commit). The ref2frm array is thus
moved back to H264Context.

3 years agoh264: remove H264Context.pict_type
Anton Khirnov [Mon, 11 Apr 2016 14:32:02 +0000 (16:32 +0200)]
h264: remove H264Context.pict_type

It is not used for anything internally, just exported in the output
frames. So remove the indirection and set it directly in frame_start().

3 years agoh264: drop a pointless indirection
Anton Khirnov [Mon, 11 Apr 2016 14:19:01 +0000 (16:19 +0200)]
h264: drop a pointless indirection

3 years agoh264: remove unused H264SliceContext.rbsp_buffer
Anton Khirnov [Mon, 11 Apr 2016 14:04:05 +0000 (16:04 +0200)]
h264: remove unused H264SliceContext.rbsp_buffer

3 years agoh264: merge ff_h264_free_context() into h264_decode_end()
Anton Khirnov [Mon, 11 Apr 2016 13:44:57 +0000 (15:44 +0200)]
h264: merge ff_h264_free_context() into h264_decode_end()

It is no longer called from outside the h264 decoder.

3 years agoh264: eliminate low_delay
Anton Khirnov [Mon, 11 Apr 2016 13:38:42 +0000 (15:38 +0200)]
h264: eliminate low_delay

It is always unconditionally initialized in decode_postinit() and then
immediately used in one place further below. All the other places where
it is accessed are just useless fluff.

3 years agoh264: remove a stale comment
Anton Khirnov [Mon, 11 Apr 2016 12:17:10 +0000 (14:17 +0200)]
h264: remove a stale comment

This comment used to apply to code that was removed.

3 years agoh264_refs: remove an unused parameter from ff_h264_fill_mbaff_ref_list()
Anton Khirnov [Mon, 11 Apr 2016 08:06:08 +0000 (10:06 +0200)]
h264_refs: remove an unused parameter from ff_h264_fill_mbaff_ref_list()

3 years agoh264_refs: make the H264Context const where possible
Anton Khirnov [Mon, 11 Apr 2016 08:05:25 +0000 (10:05 +0200)]
h264_refs: make the H264Context const where possible

3 years agoh264_refs: reorder functions to avoid forward declarations
Anton Khirnov [Mon, 11 Apr 2016 07:56:29 +0000 (09:56 +0200)]
h264_refs: reorder functions to avoid forward declarations

3 years agoh264: eliminate copy_fields
Anton Khirnov [Mon, 11 Apr 2016 07:27:08 +0000 (09:27 +0200)]
h264: eliminate copy_fields

It is very fragile against fields being moved and hides what is actually
being copied. Copy all the fields explicitly instead.

3 years agoh264_parser: remove the remaining dependencies on the h264 decoder
Anton Khirnov [Tue, 29 Mar 2016 02:19:50 +0000 (04:19 +0200)]
h264_parser: remove the remaining dependencies on the h264 decoder

3 years agoh264: decouple extradata parsing from the decoder
Anton Khirnov [Tue, 29 Mar 2016 02:09:14 +0000 (04:09 +0200)]
h264: decouple extradata parsing from the decoder

This will allow decoupling the parser from the decoder.

3 years agoh264: decouple h264_sei from the h264 decoder
Anton Khirnov [Tue, 22 Mar 2016 12:31:21 +0000 (13:31 +0100)]
h264: decouple h264_sei from the h264 decoder

Make the SEI parsing independent of the H264Context, to allow
decoupling the parser from the decoder.

3 years agoh264: factor out calculating the POC count into a separate file
Anton Khirnov [Mon, 21 Mar 2016 15:14:31 +0000 (16:14 +0100)]
h264: factor out calculating the POC count into a separate file

This will allow decoupling the parser from the decoder.

3 years agoh264_parser: move the H264DSPContext to the parser context
Anton Khirnov [Mon, 28 Mar 2016 08:56:51 +0000 (10:56 +0200)]
h264_parser: move the H264DSPContext to the parser context

3 years agoh264: decouple h264_ps from the h264 decoder
Anton Khirnov [Tue, 22 Mar 2016 12:31:21 +0000 (13:31 +0100)]
h264: decouple h264_ps from the h264 decoder

Make the SPS/PPS parsing independent of the H264Context, to allow
decoupling the parser from the decoder. The change is modelled after the
one done earlier for HEVC.

Move the dequant buffers to the PPS to avoid complex checks whether they
changed and an expensive copy for frame threads.

3 years agoh264_parser: eliminate H264SliceContext usage
Anton Khirnov [Mon, 21 Mar 2016 18:17:03 +0000 (19:17 +0100)]
h264_parser: eliminate H264SliceContext usage

It is no longer needed for anything.

3 years agoh264_parse: make sure the ref count is zeroed on all failure paths
Anton Khirnov [Mon, 21 Mar 2016 15:50:11 +0000 (16:50 +0100)]
h264_parse: make sure the ref count is zeroed on all failure paths

3 years agoh264: factor out parsing the reference count into a separate file
Anton Khirnov [Mon, 21 Mar 2016 15:14:31 +0000 (16:14 +0100)]
h264: factor out parsing the reference count into a separate file

This will allow decoupling the parser from the decoder.

3 years agoh264: stop testing whether the reference count changes in ff_set_ref_count()
Anton Khirnov [Mon, 21 Mar 2016 15:30:38 +0000 (16:30 +0100)]
h264: stop testing whether the reference count changes in ff_set_ref_count()

It is no longer necessary after 741b494fa8cd28a7d096349bac183893c236e3f9

3 years agoh264: move reading direct_spatial_mv_pred out of ff_set_ref_count()
Anton Khirnov [Mon, 21 Mar 2016 15:25:29 +0000 (16:25 +0100)]
h264: move reading direct_spatial_mv_pred out of ff_set_ref_count()

It has nothing to do with the reference count and so does not belong in
this function.

3 years agoh264_parser: switch to h2645_parse for NAL unescaping
Anton Khirnov [Mon, 21 Mar 2016 14:38:31 +0000 (15:38 +0100)]
h264_parser: switch to h2645_parse for NAL unescaping

Remove now unused ff_h264_decode_nal().

3 years agoh264_mp4toannexb_bsf: do not fail on annex B extradata
Anton Khirnov [Tue, 19 Apr 2016 17:37:49 +0000 (19:37 +0200)]
h264_mp4toannexb_bsf: do not fail on annex B extradata

Just pass through the bitstream as is. This is the same as what is done
for HEVC already.

3 years agolibx264: Forbid inverted Stereo3D mode
Vittorio Giovara [Mon, 11 Apr 2016 21:28:26 +0000 (17:28 -0400)]
libx264: Forbid inverted Stereo3D mode

3 years agolibx264: Allow Stereo3D monoscopic value
Vittorio Giovara [Mon, 11 Apr 2016 21:28:25 +0000 (17:28 -0400)]
libx264: Allow Stereo3D monoscopic value

3 years agobuild: Silence the lcov-reset target
Diego Biurrun [Mon, 11 Apr 2016 14:21:36 +0000 (16:21 +0200)]
build: Silence the lcov-reset target

3 years agolibavformat: Update the comment about AVOutputFormat flags
Martin Storsjö [Wed, 20 Apr 2016 10:38:35 +0000 (13:38 +0300)]
libavformat: Update the comment about AVOutputFormat flags

Add a flag which applies here, which had been missed.

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agomovenc: Handle pts == NOPTS when autoflushing
Martin Storsjö [Wed, 20 Apr 2016 10:22:41 +0000 (13:22 +0300)]
movenc: Handle pts == NOPTS when autoflushing

This muxer generally handles pts == NOPTS by using dts instead;
do this for consistency here as well.

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agomovenc: Update a comment to reflect how the code actually behaves
Martin Storsjö [Tue, 19 Apr 2016 11:07:25 +0000 (14:07 +0300)]
movenc: Update a comment to reflect how the code actually behaves

This codepath isn't quite as bad as it used to sound, if fragments
are cut automatically at video packets.

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agoimg2enc: Refactor the atomic renaming code
Luca Barbato [Thu, 14 Apr 2016 09:34:07 +0000 (11:34 +0200)]
img2enc: Refactor the atomic renaming code

And use it for the separate-plane side-feature as well.

Bug-Id: 935

3 years agoape: Avoid undefined behaviour
Luca Barbato [Tue, 12 Apr 2016 20:14:26 +0000 (22:14 +0200)]
ape: Avoid undefined behaviour

Avoid the clang warning

"warning: shifting a negative signed value is undefined"

3 years agoindeo3: Avoid undefined behaviour
Luca Barbato [Tue, 12 Apr 2016 20:14:26 +0000 (22:14 +0200)]
indeo3: Avoid undefined behaviour

Avoid the clang warning

"warning: shifting a negative signed value is undefined"

3 years agolibxvid: Create extradata in init using a dummy frame
Derek Buitenhuis [Tue, 5 Apr 2016 15:21:35 +0000 (11:21 -0400)]
libxvid: Create extradata in init using a dummy frame

Modifying global header extradata in encode_frame is an API violation
and only happens to work currently because mov writes its header
at the end of the file.

Heavily based off of a patch from 2012 by Nicolas George.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
3 years agopixfmt: fix wrong comment
Thomas Guillem [Sun, 17 Apr 2016 07:43:01 +0000 (10:43 +0300)]
pixfmt: fix wrong comment

The h264/hevc Annex E colour primaries table says that AVCOL_SPC_SMPTE170M is
similar than AVCOL_SPC_SMPTE240M. These two values are not similar than
AVCOL_SPC_BT470BG.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agoGenerate the lists of enabled protocols/bsfs from configure.
Anton Khirnov [Sun, 20 Mar 2016 09:00:58 +0000 (10:00 +0100)]
Generate the lists of enabled protocols/bsfs from configure.

3 years agohwcontext: initialize sw_format in av_hwframe_ctx_alloc()
Anton Khirnov [Fri, 15 Apr 2016 08:15:54 +0000 (10:15 +0200)]
hwcontext: initialize sw_format in av_hwframe_ctx_alloc()

3 years agolavc: move the vaapi encoders further down in the list of codecs
Anton Khirnov [Fri, 15 Apr 2016 08:10:57 +0000 (10:10 +0200)]
lavc: move the vaapi encoders further down in the list of codecs

Right now they are the first encoders for those codecs in the list, so
they are selected when the caller requests a codec by id.
Since they require special treatment, they should not be selected by
default if there are other encoders (e.g. libx264/5) available.

3 years agovaapi_h265: Add -qp option, use it to replace use of -global_quality
Mark Thompson [Tue, 12 Apr 2016 22:18:53 +0000 (23:18 +0100)]
vaapi_h265: Add -qp option, use it to replace use of -global_quality

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agovaapi_h265: Add constant-bitrate encode support
Mark Thompson [Tue, 12 Apr 2016 22:18:13 +0000 (23:18 +0100)]
vaapi_h265: Add constant-bitrate encode support

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agovaapi_h264: Add encode quality option (for quality-speed tradeoff)
Mark Thompson [Tue, 12 Apr 2016 22:16:30 +0000 (23:16 +0100)]
vaapi_h264: Add encode quality option (for quality-speed tradeoff)

Only supported on VAAPI 0.36 and higher.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agovaapi_h264: Add -qp option, use it to replace use of -global_quality
Mark Thompson [Tue, 12 Apr 2016 22:15:40 +0000 (23:15 +0100)]
vaapi_h264: Add -qp option, use it to replace use of -global_quality

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agovaapi_encode: Add support for codec-local options
Mark Thompson [Tue, 12 Apr 2016 22:15:03 +0000 (23:15 +0100)]
vaapi_encode: Add support for codec-local options

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agovaapi_h264: Add constant-bitrate encode support
Mark Thompson [Tue, 12 Apr 2016 22:14:23 +0000 (23:14 +0100)]
vaapi_h264: Add constant-bitrate encode support

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agovaapi_encode: Refactor slightly to allow easier setting of global options
Mark Thompson [Tue, 12 Apr 2016 22:13:31 +0000 (23:13 +0100)]
vaapi_encode: Refactor slightly to allow easier setting of global options

Signed-off-by: Anton Khirnov <anton@khirnov.net>
3 years agoFATE: add an H.264 test with unescaped extradata
Anton Khirnov [Sun, 10 Apr 2016 09:24:03 +0000 (11:24 +0200)]
FATE: add an H.264 test with unescaped extradata

See commit a7829a2

3 years agoFATE: add an H.264 test with invalid reference lists
Anton Khirnov [Sun, 10 Apr 2016 09:24:03 +0000 (11:24 +0200)]
FATE: add an H.264 test with invalid reference lists

See commit 9d74012

3 years agolibavcodec: Document that encoders may use the framerate field in AVCodecContext
Martin Storsjö [Wed, 6 Apr 2016 18:59:59 +0000 (21:59 +0300)]
libavcodec: Document that encoders may use the framerate field in AVCodecContext

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agoomx: Add support for zerocopy input of frames
Martin Storsjö [Tue, 17 Mar 2015 09:44:27 +0000 (11:44 +0200)]
omx: Add support for zerocopy input of frames

This can only be used if the input data happens to be laid out
exactly correctly.

This might not be supported on all encoders, so only enable it
with an option, but enable it automatically on raspberry pi,
where it is known to be supported.

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agoomx: Add support for broadcom OMX on raspberry pi
Martin Storsjö [Tue, 24 Jul 2012 21:33:42 +0000 (21:33 +0000)]
omx: Add support for broadcom OMX on raspberry pi

The raspberry pi uses the alternative API/ABI for OMX; this makes
such builds incompatible with all the normal OpenMAX implementations.
Since this can't easily be detected at configure time (one can
build for raspberry pi's OMX just fine using the generic, pristine
Khronos OpenMAX IL headers, no need for their own extensions),
require a separate configure switch for it instead.

The broadcom host library can't be unloaded once loaded and started;
the deinit function that it provides is a no-op, and after started,
it has got background threads running, so dlclosing it makes it
crash.

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agolibavcodec: Add H264/MPEG4 encoders based on OpenMAX IL
Martin Storsjö [Sat, 7 Apr 2012 22:18:07 +0000 (01:18 +0300)]
libavcodec: Add H264/MPEG4 encoders based on OpenMAX IL

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agommaldec: Use imgutils.h for copying frames
Martin Storsjö [Tue, 12 Apr 2016 07:48:10 +0000 (10:48 +0300)]
mmaldec: Use imgutils.h for copying frames

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agotestprogs: Add missing libm.h includes
Martin Storsjö [Mon, 11 Apr 2016 07:04:23 +0000 (10:04 +0300)]
testprogs: Add missing libm.h includes

This fixes building on MSVC 2010 and 2012 after d12b5b2f135.

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agobuild: Split test programs off into separate files
Diego Biurrun [Thu, 17 Mar 2016 18:13:17 +0000 (19:13 +0100)]
build: Split test programs off into separate files

This avoids spurious library rebuilds when only the test program
code is changed and simplifies the build system.

3 years agobuild: Group declarations for hw-accelerated de-/encoding separately
Diego Biurrun [Mon, 21 Mar 2016 15:06:32 +0000 (16:06 +0100)]
build: Group declarations for hw-accelerated de-/encoding separately

3 years agobuild: miscellaneous cosmetics
Diego Biurrun [Tue, 16 Feb 2016 16:58:50 +0000 (17:58 +0100)]
build: miscellaneous cosmetics

Restore alphabetical order in lists, break overly long lines, do some
prettyprinting, add some explanatory section comments, group parts
together that belong together logically.

3 years agoconfigure: cosmetics: Drop pointless end-of-line semicolons
Diego Biurrun [Mon, 4 Apr 2016 18:16:54 +0000 (20:16 +0200)]
configure: cosmetics: Drop pointless end-of-line semicolons

3 years agofate: Update DDS tests
Vittorio Giovara [Fri, 1 Apr 2016 13:12:37 +0000 (15:12 +0200)]
fate: Update DDS tests

3 years agodds: Simplify postprocessing check
Vittorio Giovara [Tue, 29 Mar 2016 19:00:45 +0000 (21:00 +0200)]
dds: Simplify postprocessing check

3 years agodds: Add support for alpha-only files
Vittorio Giovara [Fri, 1 Apr 2016 13:11:50 +0000 (15:11 +0200)]
dds: Add support for alpha-only files

Due to how pixel format conversion is done, they behave the same way
as gray files.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
3 years agodds: Add support for rgb555 files
Vittorio Giovara [Tue, 29 Mar 2016 19:00:43 +0000 (21:00 +0200)]
dds: Add support for rgb555 files

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
3 years agofate: Update Screenpresso tests
Vittorio Giovara [Tue, 29 Mar 2016 18:30:49 +0000 (20:30 +0200)]
fate: Update Screenpresso tests

3 years agoscreenpresso: Correctly handle keyframes
Vittorio Giovara [Tue, 29 Mar 2016 18:30:48 +0000 (20:30 +0200)]
screenpresso: Correctly handle keyframes

The first byte contains compression level together with keyframe status.
When a frame is not interpreted correctly, its data is summed to the
reference, and would degrade over time, producing an incorrect result.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
3 years agoscreenpresso: Add extended pixel format support
Vittorio Giovara [Tue, 29 Mar 2016 18:30:47 +0000 (20:30 +0200)]
screenpresso: Add extended pixel format support

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
3 years agofate: Update RSCC tests
Vittorio Giovara [Tue, 29 Mar 2016 18:04:08 +0000 (20:04 +0200)]
fate: Update RSCC tests

The current sample comes from an older version of the codec, which
supports a single output mode, so rename it accordingly.
Add tests for the new pixel formats.

3 years agorscc: Add extended pixel format support
Vittorio Giovara [Tue, 29 Mar 2016 18:04:07 +0000 (20:04 +0200)]
rscc: Add extended pixel format support

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
3 years agonvenc_h264: Fix name of private AVClass
Diego Biurrun [Thu, 31 Mar 2016 15:20:09 +0000 (17:20 +0200)]
nvenc_h264: Fix name of private AVClass

3 years agomatroska: Write the field order information
Luca Barbato [Sat, 2 Apr 2016 20:35:44 +0000 (22:35 +0200)]
matroska: Write the field order information

And bump the document version to 4.

3 years agovaapi_h264: Fix bit offset of slice data.
Mark Thompson [Sat, 2 Apr 2016 15:48:53 +0000 (16:48 +0100)]
vaapi_h264: Fix bit offset of slice data.

Commit ca2f19b9cc37be509d85f05c8f902860475905f8 modified the meaning of
H264SliceContext.gb: it is now initialised at the start of the NAL unit
header, rather than at the start of the slice header.  The VAAPI slice
decoder uses the offset after parsing to determine the offset of the
slice data in the bitstream, so with the changed meaning we no longer
need to add the extra byte to account for the NAL unit header because
it is now included directly.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
3 years agoac3dec: change logging of skipped E-AC-3 substreams.
Tim Walker [Fri, 1 Apr 2016 01:22:48 +0000 (03:22 +0200)]
ac3dec: change logging of skipped E-AC-3 substreams.

Change log level from warning to debug: the E-AC-3 "core"
substream can be successfully decoded without the additional
and dependent substreams, and their presence is already
indicated via avpriv_request_sample in ff_eac3_parse_header.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
3 years agoeac3dec: don't call avpriv_request_sample every frame.
Tim Walker [Fri, 1 Apr 2016 01:22:47 +0000 (03:22 +0200)]
eac3dec: don't call avpriv_request_sample every frame.

These errors neither prevent nor stop successful decoding
of the E-AC-3 stream's "core", causing avpriv_request_sample
to be called for every single frame in the bitstream.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
3 years agoavconv: Drop an unused variable
Luca Barbato [Fri, 1 Apr 2016 03:30:22 +0000 (05:30 +0200)]
avconv: Drop an unused variable

3 years agojack: Support OSX
Josh de Kock [Sat, 26 Mar 2016 15:27:23 +0000 (15:27 +0000)]
jack: Support OSX

Previously, with JACK installed, the configure script would enable the
JACK indev; this broke on OS X due to an incomplete pthreads
implementation. Add some simple macros to map libdispatch to pthreads
on OS X.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
3 years agomatroska: Support interlaced content correctly
Luca Barbato [Mon, 28 Mar 2016 18:29:54 +0000 (20:29 +0200)]
matroska: Support interlaced content correctly

The matroska specification now has two elements for it.

3 years agobuild: Do not check the vaapi_encode.h header if VAAPI is not enabled
Diego Biurrun [Wed, 30 Mar 2016 15:51:23 +0000 (17:51 +0200)]
build: Do not check the vaapi_encode.h header if VAAPI is not enabled

3 years agoMark tables used only within their files as static
Diego Biurrun [Thu, 17 Mar 2016 10:51:07 +0000 (11:51 +0100)]
Mark tables used only within their files as static