diff options
author | Yaowu Xu <yaowu@google.com> | 2015-02-10 15:03:05 -0800 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2015-02-10 16:37:21 -0800 |
commit | fc99636f1bc09603434a16181c2eb9307a844ec6 (patch) | |
tree | 5894ef22c5950758fb283429f654e454a0b31024 /vpxenc.c | |
parent | ee5d79995e5e5adc2b4f38f374f3f63624b73c57 (diff) | |
download | libvpx-fc99636f1bc09603434a16181c2eb9307a844ec6.tar libvpx-fc99636f1bc09603434a16181c2eb9307a844ec6.tar.gz libvpx-fc99636f1bc09603434a16181c2eb9307a844ec6.tar.bz2 libvpx-fc99636f1bc09603434a16181c2eb9307a844ec6.zip |
Add --color-space to vpxenc
This enbale the encoder to set color space information for the input
video, so it is then coded in the output bitstream.
Change-Id: Ife03deab3c762425ccd27c4c190902c4d94a76f4
Diffstat (limited to 'vpxenc.c')
-rw-r--r-- | vpxenc.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -398,6 +398,22 @@ static const arg_def_t frame_periodic_boost = ARG_DEF( NULL, "frame-boost", 1, "Enable frame periodic boost (0: off (default), 1: on)"); +static const struct arg_enum_list color_space_enum[] = { + { "unknown", VPX_CS_UNKNOWN }, + { "bt601", VPX_CS_BT_601 }, + { "bt709", VPX_CS_BT_709 }, + { "smpte170", VPX_CS_SMPTE_170 }, + { "smpte240", VPX_CS_SMPTE_240 }, + { "bt2020", VPX_CS_BT_2020 }, + { "reserved", VPX_CS_RESERVED }, + { "sRGB", VPX_CS_SRGB }, + { NULL, 0 } +}; + +static const arg_def_t input_color_space = ARG_DEF_ENUM( + NULL, "color-space", 1, + "The color space of input content:", color_space_enum); + #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH static const struct arg_enum_list bitdepth_enum[] = { {"8", VPX_BITS_8}, @@ -429,7 +445,7 @@ static const arg_def_t *vp9_args[] = { &tune_ssim, &cq_level, &max_intra_rate_pct, &max_inter_rate_pct, &gf_cbr_boost_pct, &lossless, &frame_parallel_decoding, &aq_mode, &frame_periodic_boost, - &noise_sens, &tune_content, + &noise_sens, &tune_content, &input_color_space, #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH &bitdeptharg, &inbitdeptharg, #endif |