summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_parse.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc/h2645_parse: Don't automatically remove nuh_layer_id > 0 packetsAndriy Gelman2020-01-171-0/+2
| | | | | | | | | | | | | | | | | | | HEVC standard supports multi-layer streams (ITU-T H.265 02/2018 Annex F). Each NAL unit belongs to a particular layer defined by nuh_layer_id in the header. Currently, all NAL units that do not belong to a base layer are automatically removed in ff_h2645_packet_split(). Some data may therefore be lost when future filters/decoders are designed to support multi-layer streams. A better approach is to forward nuh_layer_id > 0 packets and let blocks down the chain decide how to process them. The condition to remove packets has been moved to hevcdec and cbs. Found-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* h2645_parse: Make ff_h2645_packet_split reference-compatibleAndreas Rheinhardt2019-01-231-1/+2
| | | | | | | This is in preparation for a patch for cbs_h2645. Now the packet's rbsp_buffer can be owned by an AVBuffer. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
* avcodec/hevc_sei: rename HEVCSEIContext to HEVCSEIJames Almer2017-10-311-2/+2
| | | | | | | Cosmetic change skipped in 0b30cb8dae5e7edb2a5f35900547321499c217f1 by mistake. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/hevc_parse: decode SEI message NALUs in extradataJames Almer2017-05-051-7/+14
| | | | | | | | | | They may be available in hvcc style extradata. Based on a patch by Hendrik Leppkes. Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Reviewed-by: Aaron Levinson <alevinsn@aracnet.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/hevc_parse: allow setting apply_defdispwin when decoding SPS NAL unitsJames Almer2017-04-091-6/+6
| | | | | Reviewed-by: nevcairiel Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/hevc_parse: check for parameter set decoding failureJames Almer2017-04-091-7/+25
| | | | | Reviewed-by: nevcairiel Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/hevc_parse: ignore all non parameter set NAL units in extradataJames Almer2017-04-071-19/+2
| | | | | | | While they shouldn't be present, they are harmless if they are. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit 'c359d624d3efc3fd1d83210d78c4152bd329b765'James Almer2017-03-231-20/+20
|\ | | | | | | | | | | | | * commit 'c359d624d3efc3fd1d83210d78c4152bd329b765': hevcdec: move decoder-independent declarations into a separate header Merged-by: James Almer <jamrial@gmail.com>
* \ Merge commit '4abe3b049d987420eb891f74a35af2cebbf52144'Clément Bœsch2017-03-231-1/+1
|\ \ | |/ | | | | | | | | | | * commit '4abe3b049d987420eb891f74a35af2cebbf52144': hevc: rename hevc.[ch] to hevcdec.[ch] Merged-by: Clément Bœsch <u@pkh.me>
* | lavc: add hevc mediacodec decoderMatthieu Bouron2016-09-151-0/+134
|/
* hevc_parse: rename into h2645_parseAnton Khirnov2016-03-281-228/+0
| | | | This code will be shared with h264.
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-271-2/+2
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* hevc: move splitting the packet into NALUs into a separate functionAnton Khirnov2015-07-121-0/+99
| | | | | This function is independent of the decoding context, so we'll be able to use it in the parser.
* hevc: split bitstream unescaping to a separate fileAnton Khirnov2015-07-081-0/+129
It will be useful in the QSV HEVC encoder.