mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
codec-utils: Handle the two rext profiles for h265
These values are for now taken from x265 and need to be checked against the spec. Especially we need to check if information from other fields need to be taken into consideration too, e.g. the bit depth and chroma index from the SPS. This however makes 4:4:4 output of x265enc actually work.
This commit is contained in:
parent
8547594727
commit
19b9356680
1 changed files with 9 additions and 0 deletions
|
@ -704,9 +704,18 @@ gst_codec_utils_h265_get_profile (const guint8 * profile_tier_level, guint len)
|
|||
profile = "main-10";
|
||||
else if (profile_idc == 3 || gpcf3)
|
||||
profile = "main-still-picture";
|
||||
else if (profile_idc == 4)
|
||||
profile = "main-rext";
|
||||
else if (profile_idc == 5)
|
||||
profile = "high-throughput-rext";
|
||||
else
|
||||
profile = NULL;
|
||||
|
||||
/* FIXME: Check against the spec, especially for the rext formats. These
|
||||
* values are from x265, but x265 also checks the chroma and bit depth
|
||||
* fields of the SPS to decide on the profile.
|
||||
*/
|
||||
|
||||
return profile;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue