summaryrefslogtreecommitdiff
path: root/libavcodec/h265_profile_level.h
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/h264_levels, h265_profile_level: Avoid relocationsAndreas Rheinhardt2021-09-041-1/+1
| | | | | | | | | | | | | | H.264 and H.265 levels' names are usually of the form "x" or "x.y" with x and y being single digits; the one exception are the H.264 1b levels. All of those levels' names fit into a char[4] and it is likely that this future levels will do so, too. Therefore this commit changes the H26(4|5)LevelDescriptor structures to use such a char [4] instead of a pointer to a const char. This makes the structures smaller (when sizeof(char*) == 8) and avoids relocations, thereby moving the corresponding arrays from .data.rel.ro into .rodata. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/h264_levels, h265_profile_level: Remove ff_h26[45]_get_levelAndreas Rheinhardt2021-02-021-2/+0
| | | | | | | Unused. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* lavc/h265_profile_level: Fix DPB size calculationMark Thompson2019-07-071-0/+1
| | | | | The maxDpbPicBuf value which is used in the DPB size calculation depends on the profile (it's usually 6, but 7 for screen-extended profiles).
* lavc/h265: Add some common code for profile/tier/level handlingMark Thompson2018-09-231-0/+89
Adds support for determining for level limits, including mapping PTL blocks to profiles to check profile-dependent level limits.