mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
jpegdec: set colorimetry on output info
This commit is contained in:
parent
cfd9071f79
commit
23520e4127
1 changed files with 12 additions and 0 deletions
|
@ -1035,6 +1035,18 @@ gst_jpeg_dec_negotiate (GstJpegDec * dec, gint width, gint height, gint clrspc)
|
|||
gst_video_decoder_set_output_state (GST_VIDEO_DECODER (dec), format,
|
||||
width, height, dec->input_state);
|
||||
|
||||
switch (clrspc) {
|
||||
case JCS_RGB:
|
||||
case JCS_GRAYSCALE:
|
||||
break;
|
||||
default:
|
||||
outstate->info.colorimetry.range = GST_VIDEO_COLOR_RANGE_0_255;
|
||||
outstate->info.colorimetry.matrix = GST_VIDEO_COLOR_MATRIX_BT601;
|
||||
outstate->info.colorimetry.transfer = GST_VIDEO_TRANSFER_UNKNOWN;
|
||||
outstate->info.colorimetry.primaries = GST_VIDEO_COLOR_PRIMARIES_UNKNOWN;
|
||||
break;
|
||||
}
|
||||
|
||||
gst_video_codec_state_unref (outstate);
|
||||
|
||||
GST_DEBUG_OBJECT (dec, "max_v_samp_factor=%d", dec->cinfo.max_v_samp_factor);
|
||||
|
|
Loading…
Reference in a new issue