Skip to content

Commit 686ec4d

Browse files
committed
h265: text description of profiles
1 parent 6889137 commit 686ec4d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

itu/h265.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,21 @@ static inline uint32_t h265hvcc_get_profile_compatibility(const uint8_t *p)
412412
return (p[2] << 24) | (p[3] << 16) | (p[4] << 8) | p[5];
413413
}
414414

415+
static inline const char *h265_get_profile_txt(uint8_t i_profile)
416+
{
417+
return i_profile == 0 ? "None" :
418+
i_profile == 1 ? "Main" :
419+
i_profile == 2 ? "Main 10" :
420+
i_profile == 3 ? "Main Still Picture" :
421+
i_profile == 4 ? "Range Extension" :
422+
i_profile == 5 ? "High Throughput" :
423+
i_profile == 6 ? "Multiview Main" :
424+
i_profile == 7 ? "Scalable Main" :
425+
i_profile == 8 ? "3D Main" :
426+
i_profile == 9 ? "Screen Extended" :
427+
i_profile == 10 ? "Scalable Range Extension" : "Reserved";
428+
}
429+
415430
static inline void h265hvcc_set_constraint_indicator(uint8_t *p, uint64_t val)
416431
{
417432
p[6] = val >> 40;

0 commit comments

Comments
 (0)