summaryrefslogtreecommitdiff
path: root/libavcodec/h264_levels.h
Commit message (Collapse)AuthorAge
* avcodec/h264_levels, h265_profile_level: Avoid relocationsAndreas Rheinhardt2021-09-04
| | | | | | | | | | | | | | 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-02
| | | | | | | Unused. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* lavc/h264_levels: add MaxMBPS checking and update fate test.Decai Lin2019-03-27
| | | | | | | | | 1. add MaxMBPS checking for level idc setting to align with AVC spec AnnexA table A-1/A-6 level limits. 2. update h264 level fate test. Signed-off-by: Decai Lin <decai.lin@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* lavc/h264: Add common code for level handlingMark Thompson2018-09-23
Including a unit test.