GPUJPEG: set BT.709 also for I420

This commit is contained in:
Martin Pulec
2020-10-02 08:23:15 +02:00
parent bb15014b45
commit 009febad89
2 changed files with 2 additions and 2 deletions

View File

@@ -324,7 +324,7 @@ bool encoder_state::configure_with(struct video_desc desc)
m_param_image.height = desc.height;
m_param_image.comp_count = 3;
m_param_image.color_space = codec_is_a_rgb(m_enc_input_codec) ? GPUJPEG_RGB : (desc.color_spec == I420 ? GPUJPEG_YCBCR_JPEG : GPUJPEG_YCBCR_BT709);
m_param_image.color_space = codec_is_a_rgb(m_enc_input_codec) ? GPUJPEG_RGB : GPUJPEG_YCBCR_BT709;
#if LIBGPUJPEG_API_VERSION > 2
switch (m_enc_input_codec) {

View File

@@ -104,7 +104,7 @@ static int configure_with(struct state_decompress_gpujpeg *s, struct video_desc
switch (s->out_codec) {
case I420:
gpujpeg_decoder_set_output_format(s->decoder, GPUJPEG_YCBCR_JPEG,
gpujpeg_decoder_set_output_format(s->decoder, GPUJPEG_YCBCR_BT709,
GPUJPEG_420_U8_P0P1P2);
break;
case RGBA: