openjpegenc: enable MCT for RGB video
https://bugzilla.gnome.org/show_bug.cgi?id=766732
This commit is contained in:
parent
5a47f4a8bc
commit
e76705dbde
@ -856,6 +856,9 @@ gst_openjpeg_enc_handle_frame (GstVideoEncoder * encoder,
|
|||||||
goto fill_image_error;
|
goto fill_image_error;
|
||||||
gst_video_frame_unmap (&vframe);
|
gst_video_frame_unmap (&vframe);
|
||||||
|
|
||||||
|
if (vframe.info.finfo->flags & GST_VIDEO_FORMAT_FLAG_RGB) {
|
||||||
|
self->params.tcp_mct = 1;
|
||||||
|
}
|
||||||
opj_setup_encoder (enc, &self->params, image);
|
opj_setup_encoder (enc, &self->params, image);
|
||||||
|
|
||||||
#ifdef HAVE_OPENJPEG_1
|
#ifdef HAVE_OPENJPEG_1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user