Julian Scheel
2689bb115c
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>
9 years ago
Michael Niedermayer
366ba2dee1
mmaldec: Use av_assert0() instead of assert()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Diego Biurrun
f2422b5875
testprogs: Mark some tables as static const
9 years ago
Diego Biurrun
5b1409c755
fate: Add test for MSS1
9 years ago
Vittorio Giovara
4b2e69397b
dds: Add support for monochrome images
9 years ago
Vittorio Giovara
6eb2505855
dds: Drop gray-alpha swapping
...
The original sample was generated with invalid software.
9 years ago
Martin Storsjö
39cdbb12aa
dxva2_h264: Unbreak compilation after 3176217c6
...
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Luca Barbato
4012fe1ee8
ape: Unbreak adaptcoeffs computation
...
And simplify and explain the expression.
Fault introduced in f3fdef108e
9 years ago
Anton Khirnov
2e5bde9565
h264: eliminate max_contexts
...
It is always equal to nb_slice_ctx.
9 years ago
Anton Khirnov
e3c9041cfe
h264: allocate some tables per slice contexts, not threads
...
This is more correct and avoids wasting space when frame threading is
used.
9 years ago
Anton Khirnov
e065279529
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.
9 years ago
Anton Khirnov
4fd34e639d
h264: remove pointless setting of some variables in loop_filter
...
Those should already be set to the correct values.
9 years ago
Anton Khirnov
9c858ce33f
h264: remove a pointless comment
9 years ago
Anton Khirnov
b77fffa127
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.
9 years ago
Anton Khirnov
370ddc7b38
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().
9 years ago
Anton Khirnov
56087ec0a2
h264: drop a pointless indirection
9 years ago
Anton Khirnov
0e7772c5e4
h264: remove unused H264SliceContext.rbsp_buffer
9 years ago
Anton Khirnov
7f045c4429
h264: merge ff_h264_free_context() into h264_decode_end()
...
It is no longer called from outside the h264 decoder.
9 years ago
Anton Khirnov
99c554efc8
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.
9 years ago
Anton Khirnov
5b35b290dd
h264: remove a stale comment
...
This comment used to apply to code that was removed.
9 years ago
Anton Khirnov
89ae244e78
h264_refs: remove an unused parameter from ff_h264_fill_mbaff_ref_list()
9 years ago
Anton Khirnov
755f79f84c
h264_refs: make the H264Context const where possible
9 years ago
Anton Khirnov
a2fd547839
h264_refs: reorder functions to avoid forward declarations
9 years ago
Anton Khirnov
0ba471d7d8
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.
9 years ago
Anton Khirnov
72da8d9bb2
h264_parser: remove the remaining dependencies on the h264 decoder
9 years ago
Anton Khirnov
98c97994c5
h264: decouple extradata parsing from the decoder
...
This will allow decoupling the parser from the decoder.
9 years ago
Anton Khirnov
728d90a0c1
h264: decouple h264_sei from the h264 decoder
...
Make the SEI parsing independent of the H264Context, to allow
decoupling the parser from the decoder.
9 years ago
Anton Khirnov
c8dcff0cdb
h264: factor out calculating the POC count into a separate file
...
This will allow decoupling the parser from the decoder.
9 years ago
Anton Khirnov
113aeee6ae
h264_parser: move the H264DSPContext to the parser context
9 years ago
Anton Khirnov
3176217c60
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.
9 years ago
Anton Khirnov
44d16df413
h264_parser: eliminate H264SliceContext usage
...
It is no longer needed for anything.
9 years ago
Anton Khirnov
71d3305c27
h264_parse: make sure the ref count is zeroed on all failure paths
9 years ago
Anton Khirnov
a6e27f7add
h264: factor out parsing the reference count into a separate file
...
This will allow decoupling the parser from the decoder.
9 years ago
Anton Khirnov
56b17a33f2
h264: stop testing whether the reference count changes in ff_set_ref_count()
...
It is no longer necessary after 741b494fa8
9 years ago
Anton Khirnov
e9f884416c
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.
9 years ago
Anton Khirnov
8d0cc8ca97
h264_parser: switch to h2645_parse for NAL unescaping
...
Remove now unused ff_h264_decode_nal().
9 years ago
Anton Khirnov
f3ed484953
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.
9 years ago
Vittorio Giovara
5fca95c8e5
libx264: Forbid inverted Stereo3D mode
9 years ago
Vittorio Giovara
9e2af0e907
libx264: Allow Stereo3D monoscopic value
9 years ago
Diego Biurrun
a08b5d7b57
build: Silence the lcov-reset target
9 years ago
Martin Storsjö
75b90ef722
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>
9 years ago
Martin Storsjö
74383def8f
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>
9 years ago
Martin Storsjö
0abb07bad7
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>
9 years ago
Luca Barbato
79fdbfdb3e
img2enc: Refactor the atomic renaming code
...
And use it for the separate-plane side-feature as well.
Bug-Id: 935
9 years ago
Luca Barbato
f3fdef108e
ape: Avoid undefined behaviour
...
Avoid the clang warning
"warning: shifting a negative signed value is undefined"
9 years ago
Luca Barbato
6b2ad3ca48
indeo3: Avoid undefined behaviour
...
Avoid the clang warning
"warning: shifting a negative signed value is undefined"
9 years ago
Derek Buitenhuis
eae2ebded3
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>
9 years ago
Thomas Guillem
785bfb1d7b
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>
9 years ago
Anton Khirnov
06edef3d5e
Generate the lists of enabled protocols/bsfs from configure.
9 years ago
Anton Khirnov
a0f469da74
hwcontext: initialize sw_format in av_hwframe_ctx_alloc()
9 years ago