mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 02:40:26 +00:00
GPUJPEG: set BT.709 also for I420
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user