summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_h264.h
Commit message (Collapse)AuthorAgeFilesLines
* cbs_h264: add support for Film Grain Characteristics SEI messagesJames Almer2021-07-231-0/+21
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/cbs_h26[45]: Remove redundant enum constantsAndreas Rheinhardt2021-03-121-10/+0
| | | | | | | Unused since 8843607f495c95c1e67a3ce3d6f15dca6e252439. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* cbs_h2645: Merge SEI message handling in common between codecsMark Thompson2021-01-211-49/+1
|
* cbs_h2645: Merge SEI messages in common between codecsMark Thompson2021-01-211-32/+5
| | | | | Make a new template file for common SEI messages - this will also apply to H.266.
* cbs: Ensure that reference fields always follow the associated pointerMark Thompson2020-09-021-9/+9
| | | | | Having these together allows us to find both pointers given the address of only one of them.
* avcodec/cbs: Remove unused function parametersAndreas Rheinhardt2020-07-071-4/+2
| | | | | | | | Several cbs-functions had an unused CodedBitstreamContext parameter. This commit removes these. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/cbs_h264: Automatically free SEI payload on errorAndreas Rheinhardt2019-09-241-1/+4
| | | | | | | | | | | | | If adding an SEI message to an access unit fails, said SEI message was not touched, so that the caller had to free any data associated with it that might need to be freed. But given that ff_cbs_h264_add_sei_message can simply call cbs_h264_free_sei_payload, one can easily free the content of the SEI payload. This fixes a memleak when inserting a user data unregistered string for h264_metadata fails. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* cbs_h264, h264_metadata: Deleting SEI messages never failsAndreas Rheinhardt2019-07-081-4/+7
| | | | | | | | | | | | Given the recent changes to ff_cbs_delete_unit, it is no longer sensible to use a return value for ff_cbs_h264_delete_sei_message; instead, use asserts to ensure that the required conditions are met and remove the callers' checks for the return value. Also, document said conditions. An assert that is essentially equivalent to the one used in ff_cbs_delete_unit has been removed, too. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/cbs_h264: add support for Alternative Transfer Characteristics SEI ↵James Almer2019-06-031-0/+6
| | | | | | | message Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/cbs_h2645: use the fixed() macro for forbidden_zero_bitJames Almer2019-04-281-1/+0
| | | | | | | | This follows the spec definition, and removes a field from the relevant structs. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/cbs_h264: fix storage type for time_offset in Pic Timing SEIJames Almer2019-04-161-1/+1
| | | | | | | The spec defines it as a signed value. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* cbs_h264: Add support for mastering display SEI messagesMark Thompson2018-05-101-0/+10
|
* cbs_h264: Add support for pan-scan rectangle SEI messagesMark Thompson2018-05-101-0/+12
|
* avcodec/cbs_h2645: use AVBufferRef to store list of active parameter setsJames Almer2018-05-091-0/+2
| | | | | | | | Removes unnecessary data copies, and partially fixes potential issues with dangling references held in said lists. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit 'eccc03c8fbc603a0a3257df66f0705f74fe2581a'Mark Thompson2018-02-211-0/+6
|\ | | | | | | | | | | | | | | | | * commit 'eccc03c8fbc603a0a3257df66f0705f74fe2581a': cbs_h264: Add support for filler NAL units Some bitstream -> get_bits. Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs_h264: Add support for filler NAL unitsMark Thompson2018-02-201-0/+6
| |
* | Merge commit '7157d959264f3729da463725c6faa580d9394d19'Mark Thompson2018-02-211-1/+3
|\ \ | |/ | | | | | | | | | | * commit '7157d959264f3729da463725c6faa580d9394d19': cbs_h264: Move slice_group_id array out of PPS structure Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs_h264: Move slice_group_id array out of PPS structureMark Thompson2018-02-201-1/+3
| | | | | | | | It's very large, and is only used in some FMO streams.
* | Merge commit 'a2ca8ed903b435446031a8a0792ca535e6ee2913'Mark Thompson2018-02-211-0/+19
|\ \ | |/ | | | | | | | | | | * commit 'a2ca8ed903b435446031a8a0792ca535e6ee2913': cbs_h264: Add utility functions to insert/delete SEI messages Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs_h264: Add utility functions to insert/delete SEI messagesMark Thompson2018-02-201-0/+19
| |
* | Merge commit 'ce5870a3a8f2b10668ee4f04c2ae0287f66f31b2'Mark Thompson2018-02-211-0/+4
|\ \ | |/ | | | | | | | | | | | | | | * commit 'ce5870a3a8f2b10668ee4f04c2ae0287f66f31b2': cbs: Refcount all the things! Some changes for bitstream API. Merged-by: Mark Thompson <sw@jkqxz.net>
| * cbs: Refcount all the things!Mark Thompson2018-02-201-0/+4
| | | | | | | | | | | | | | | | This makes it easier for users of the CBS API to get alloc/free right - all subelements use the buffer API so that it's clear how to free them. It also allows eliding some redundant copies: the packet -> fragment copy disappears after this change if the input packet is refcounted, and more codec-specific cases are now possible (but not included in this patch).
| * lavc: Add coded bitstream read/write support for H.264Mark Thompson2017-08-121-0/+427
|
* lavc: Add coded bitstream read/write support for H.264Mark Thompson2017-10-171-0/+427
(cherry picked from commit acf06f45441be24c5cbae0920579cd69427326a1) (cherry picked from commit 768eb9182e94a94bc2ef46f565a0dac7afef3b57) (cherry picked from commit e7f64191b27bcf37cbf7006606f0f439c6cdc24f)