mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
openjpegenc: enable MCT for RGB video
https://bugzilla.gnome.org/show_bug.cgi?id=766732
This commit is contained in:
parent
5a47f4a8bc
commit
e76705dbde
1 changed files with 3 additions and 0 deletions
|
@ -856,6 +856,9 @@ gst_openjpeg_enc_handle_frame (GstVideoEncoder * encoder,
|
|||
goto fill_image_error;
|
||||
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);
|
||||
|
||||
#ifdef HAVE_OPENJPEG_1
|
||||
|
|
Loading…
Reference in a new issue