Commit 5d7129ac authored by François Cartegnie's avatar François Cartegnie 🤞

vlc_es: add BT470 and smpte240 xfer functions and more aliases

parent d51ff97d
......@@ -256,9 +256,16 @@ typedef enum video_transfer_func_t
TRANSFER_FUNC_UNDEF,
TRANSFER_FUNC_LINEAR,
TRANSFER_FUNC_SRGB /*< Gamma 2.2 */,
TRANSFER_FUNC_BT470_BG,
TRANSFER_FUNC_BT470_M,
TRANSFER_FUNC_BT709,
TRANSFER_FUNC_SMPTE_ST2084,
#define TRANSFER_FUNC_BT2020 TRANSFER_FUNC_BT709
TRANSFER_FUNC_SMPTE_240,
#define TRANSFER_FUNC_BT2020 TRANSFER_FUNC_BT709
#define TRANSFER_FUNC_SMPTE_170 TRANSFER_FUNC_BT709
#define TRANSFER_FUNC_SMPTE_274 TRANSFER_FUNC_BT709
#define TRANSFER_FUNC_SMPTE_293 TRANSFER_FUNC_BT709
#define TRANSFER_FUNC_SMPTE_296 TRANSFER_FUNC_BT709
} video_transfer_func_t;
/**
......
......@@ -3058,8 +3058,11 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
static const char *func_names[] = { N_("Undefined"),
N_("Linear"),
"sRGB",
"ITU-R BT.470 BG",
"ITU-R BT.470 M",
"ITU-R BT.709, ITU-R BT.2020",
"SMPTE ST2084",
"SMPTE 240M",
};
if( fmt->video.transfer < ARRAY_SIZE(func_names) )
info_category_AddInfo( p_cat, _("Color transfer function"), "%s",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment