5 years agoavprobe: Print stereo3d information
Vittorio Giovara [Thu, 21 Apr 2016 21:24:08 +0000 (17:24 -0400)]
avprobe: Print stereo3d information

5 years agostereo3d: Add API to get name from value or value from name
Vittorio Giovara [Thu, 21 Apr 2016 21:24:07 +0000 (17:24 -0400)]
stereo3d: Add API to get name from value or value from name

Use it in av_dump_format() instead of a huge switch case.

5 years agolavf: Raw G.729 demuxer
Vladimir Voroshilov [Sat, 19 Mar 2016 21:48:39 +0000 (17:48 -0400)]
lavf: Raw G.729 demuxer

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
5 years agofate: Update fate-lavf-ts after commit 393596f9d5
Martin Storsjö [Tue, 17 May 2016 09:15:46 +0000 (12:15 +0300)]
fate: Update fate-lavf-ts after commit 393596f9d5

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agotools: Port to codec parameters API
Diego Biurrun [Wed, 11 May 2016 13:26:02 +0000 (15:26 +0200)]
tools: Port to codec parameters API

5 years agompegtsenc: stop impersonating ses in sdt
Francois Cartegnie [Tue, 17 May 2016 07:54:30 +0000 (09:54 +0200)]
mpegtsenc: stop impersonating ses in sdt

Unless specified, users must use non registered
range for network id

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agoMove VLC and RL_VLC_ELEM structure definitions to a separate header
Alexandra Hájková [Sat, 14 May 2016 09:45:01 +0000 (11:45 +0200)]
Move VLC and RL_VLC_ELEM structure definitions to a separate header

Use the newly created vlc.h directly instead of including get_bits when needed.
The VLC and RL_VLC_ELEM structures are independent from the bitreader.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agoavconv_dxva2: use the hwcontext API
Anton Khirnov [Sun, 1 May 2016 17:19:17 +0000 (19:19 +0200)]
avconv_dxva2: use the hwcontext API

5 years agohwcontext: add a dxva2 implementation
Anton Khirnov [Thu, 31 Mar 2016 11:12:41 +0000 (13:12 +0200)]
hwcontext: add a dxva2 implementation

5 years agompeg4videodec: Call av_log() in check_marker() with AVCodecContext instead of NULL
Alexandra Hájková [Sat, 14 May 2016 09:28:19 +0000 (11:28 +0200)]
mpeg4videodec: Call av_log() in check_marker() with AVCodecContext instead of NULL

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agoMove check_marker() from get_bits to mpeg4videodec
Alexandra Hájková [Sat, 14 May 2016 09:28:18 +0000 (11:28 +0200)]
Move check_marker() from get_bits to mpeg4videodec

MPEG-4 is the only decoder which uses check_marker().

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agolavc: mark the old audio/video encoding API as deprecated
Anton Khirnov [Sat, 14 May 2016 11:45:05 +0000 (13:45 +0200)]
lavc: mark the old audio/video encoding API as deprecated

5 years agox86inc: Enable AVX emulation in additional cases
Anton Mitrofanov [Wed, 20 Apr 2016 17:35:34 +0000 (19:35 +0200)]
x86inc: Enable AVX emulation in additional cases

Allows emulation to work when dst is equal to src2 as long as the
instruction is commutative, e.g. `addps m0, m1, m0`.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agox86inc: Improve handling of %ifid with multi-token parameters
Anton Mitrofanov [Wed, 20 Apr 2016 17:35:33 +0000 (19:35 +0200)]
x86inc: Improve handling of %ifid with multi-token parameters

The yasm/nasm preprocessor only checks the first token, which means that
parameters such as `dword [rax]` are treated as identifiers, which is
generally not what we want.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agox86inc: Fix AVX emulation of some instructions
Anton Mitrofanov [Wed, 20 Apr 2016 17:35:32 +0000 (19:35 +0200)]
x86inc: Fix AVX emulation of some instructions

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agox86inc: Fix AVX emulation of scalar float instructions
Henrik Gramner [Wed, 20 Apr 2016 17:35:31 +0000 (19:35 +0200)]
x86inc: Fix AVX emulation of scalar float instructions

Those instructions are not commutative since they only change the first
element in the vector and leave the rest unmodified.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agoavpacket: fix setting AVPacket.data in av_packet_ref()
Anton Khirnov [Thu, 12 May 2016 13:34:58 +0000 (15:34 +0200)]
avpacket: fix setting AVPacket.data in av_packet_ref()

The data field does not necessarily point to the beginning of the
underlying AVBuffer.

CC: libav-stable@libav.org
5 years agolavc: make avcodec_open2() fail when the timebase is not set for encoding
Anton Khirnov [Mon, 2 May 2016 16:38:41 +0000 (18:38 +0200)]
lavc: make avcodec_open2() fail when the timebase is not set for encoding

Many encoders use it. There is also a divide by the timebase lower in
this function, which would crash when it is not set.

5 years agoCombine deprecation guards where appropriate
Diego Biurrun [Tue, 3 May 2016 22:32:26 +0000 (00:32 +0200)]
Combine deprecation guards where appropriate

Some code blocks use multiple bits of deprecated API.

5 years agotests: Move all test programs to a subdirectory
Diego Biurrun [Wed, 20 Apr 2016 09:40:40 +0000 (11:40 +0200)]
tests: Move all test programs to a subdirectory

5 years agoSplit global .gitignore file into per-directory files
Diego Biurrun [Wed, 11 May 2016 10:03:34 +0000 (12:03 +0200)]
Split global .gitignore file into per-directory files

5 years agoAdd some more deprecation guards
Diego Biurrun [Tue, 3 May 2016 22:27:19 +0000 (00:27 +0200)]
Add some more deprecation guards

Avoids unused function/label/variable warnings after the next version bump.

5 years agoReduce the scope of some variables
Diego Biurrun [Tue, 3 May 2016 22:15:41 +0000 (00:15 +0200)]
Reduce the scope of some variables

This avoids unused variable warnings after the next version bump.
Also drop a trace level av_log() call that is in the way.

5 years agortsp: Parse SSRC attributes in the SDP
Martin Storsjö [Tue, 4 Dec 2012 13:28:29 +0000 (15:28 +0200)]
rtsp: Parse SSRC attributes in the SDP

When feeding input RTP packets to the depacketizer via custom IO,
it needs to pick the right stream using the payload type for
RTP packets, and using the SSRC for RTCP packets. If the first
packet is an RTCP packet, we don't (currently) know the SSRC
yet and thus can't pick the right RTP depacketizer to handle it.

By parsing the SSRC attribute in the SDP, we can map initial
RTCP packets to the right stream.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agortpdec: Always check if we have the next packet queued
Martin Storsjö [Mon, 14 Jan 2013 15:48:26 +0000 (17:48 +0200)]
rtpdec: Always check if we have the next packet queued

It doesn't matter what the actual reason for not returning
an AVPacket was - if we didn't return any packet and we have
the next one queued, parse it immediately. (rtp_parse_queued_packet
always consumes a queued packet if one exists, so there's no risk
for infinite loops.)

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoavconv_vaapi: fix double-free with some unsupported streams
Mark Thompson [Mon, 9 May 2016 17:53:48 +0000 (18:53 +0100)]
avconv_vaapi: fix double-free with some unsupported streams

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agopgssub: Fix subpicture colorspace and range
Jan Ekström [Sun, 24 Apr 2016 18:33:45 +0000 (20:33 +0200)]
pgssub: Fix subpicture colorspace and range

Widen the values from limited to full range and use BT.709 where it
should be used according to the video resolution:

SD is BT.601, HD is BT.709

Default to BT.709 due to most observed HDMV content being HD.

5 years agocolorspace: Add support for BT709
Jan Ekström [Sun, 24 Apr 2016 18:30:06 +0000 (20:30 +0200)]
colorspace: Add support for BT709

BT.709 coefficients were gathered from the first two parts of BT.709
to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2).
They were additionally confirmed by manually calculating values.

5 years agosimple_idct_template: Fix strict aliasing violation
Michael Niedermayer [Sun, 8 May 2016 18:55:40 +0000 (21:55 +0300)]
simple_idct_template: Fix strict aliasing violation

This fixes fate-wmv8-intrax8 in certain configurations, e.g.
gcc 4.4.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoavio: Remove a leftover comment
Martin Storsjö [Wed, 4 May 2016 14:00:52 +0000 (17:00 +0300)]
avio: Remove a leftover comment

The declarations that this comment referred to were removed
in 2439f2ca8 - there is no unbuffered IO in this header now.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoMark read-only tables as static
Diego Biurrun [Wed, 11 Nov 2015 16:38:43 +0000 (17:38 +0100)]
Mark read-only tables as static

5 years agoconfigure: Document --enable-libfontconfig
Diego Biurrun [Mon, 2 May 2016 05:34:35 +0000 (07:34 +0200)]
configure: Document --enable-libfontconfig

5 years agovf_frei0r: Drop overly verbose and broken debug output
Diego Biurrun [Tue, 3 May 2016 13:24:17 +0000 (15:24 +0200)]
vf_frei0r: Drop overly verbose and broken debug output

5 years agocosmetics: Fix spelling mistakes
Vittorio Giovara [Wed, 27 Apr 2016 17:45:23 +0000 (13:45 -0400)]
cosmetics: Fix spelling mistakes

Signed-off-by: Diego Biurrun <diego@biurrun.de>
5 years agoRemove unnecessary get_bits.h #includes and add missing headers where needed.
Alexandra Hájková [Sat, 23 Apr 2016 14:44:11 +0000 (16:44 +0200)]
Remove unnecessary get_bits.h #includes and add missing headers where needed.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
5 years agoh264: Drop broken trace debug output
Diego Biurrun [Tue, 3 May 2016 12:32:08 +0000 (14:32 +0200)]
h264: Drop broken trace debug output

5 years agovaapi: Drop pointless debug output
Diego Biurrun [Thu, 14 Apr 2016 16:25:35 +0000 (18:25 +0200)]
vaapi: Drop pointless debug output

5 years agolibopencore-amr: Fix ff_dlog()/av_log() invocations
Diego Biurrun [Thu, 14 Apr 2016 16:25:16 +0000 (18:25 +0200)]
libopencore-amr: Fix ff_dlog()/av_log() invocations

5 years agoDrop pointless assert.h #includes
Diego Biurrun [Thu, 14 Apr 2016 16:24:51 +0000 (18:24 +0200)]
Drop pointless assert.h #includes

5 years agompegts: Validate the SL Packet Header Configuration
Luca Barbato [Wed, 17 Feb 2016 01:16:42 +0000 (02:16 +0100)]
mpegts: Validate the SL Packet Header Configuration

timeStampLength, OCRLength and AU_Length have well specified upper

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
5 years agofate: Add test for MTS2/MSS4
Diego Biurrun [Fri, 22 Apr 2016 16:59:43 +0000 (18:59 +0200)]
fate: Add test for MTS2/MSS4

5 years agortpdec_vp9: Support parsing the scalability structure
Martin Storsjö [Wed, 27 Apr 2016 11:36:57 +0000 (14:36 +0300)]
rtpdec_vp9: Support parsing the scalability structure

We still only support one single layer though, but this allows
receiving streams that have this structure present even for
single layer streams.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agortpdec_h264: Use avpriv_report_missing_feature instead of a manual av_log
Martin Storsjö [Fri, 29 Apr 2016 19:19:33 +0000 (22:19 +0300)]
rtpdec_h264: Use avpriv_report_missing_feature instead of a manual av_log

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agortpdec: Use AVERROR_PATCHWELCOME instead of AVERROR(ENOSYS) for unimplemented features
Martin Storsjö [Fri, 29 Apr 2016 17:37:24 +0000 (20:37 +0300)]
rtpdec: Use AVERROR_PATCHWELCOME instead of AVERROR(ENOSYS) for unimplemented features

Signed-off-by: Martin Storsjö <martin@martin.st>
5 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>
5 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>
5 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.

5 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>
5 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

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 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>
5 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>
5 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>
5 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

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

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 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>
5 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>
5 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>
5 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>
5 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

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

5 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

5 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.

5 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>
5 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

5 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.

5 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

5 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.

5 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.

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

5 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.

5 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().

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

5 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

5 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.

5 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.

5 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.

5 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()

5 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

5 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

5 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.

5 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

5 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.

5 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.

5 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.

5 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

5 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.

5 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.

5 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

5 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.

5 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

5 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.

5 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().

5 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.

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

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

5 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

5 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>
5 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>
5 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>
5 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

5 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"