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:
Sebastian Dröge 2015-02-11 15:57:54 +02:00
parent 8547594727
commit 19b9356680

View file

@ -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;
}