mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
jpeg: make encoder work with libjpeg v7
We have to specify do_fancy_downsampling = FALSE in the encoder with did not exist before.
This commit is contained in:
parent
ff1230d1fd
commit
23967b03a7
1 changed files with 4 additions and 0 deletions
|
@ -473,6 +473,10 @@ gst_jpegenc_chain (GstPad * pad, GstBuffer * buf)
|
|||
jpegenc->jdest.next_output_byte = GST_BUFFER_DATA (outbuf);
|
||||
jpegenc->jdest.free_in_buffer = GST_BUFFER_SIZE (outbuf);
|
||||
|
||||
/* prepare for raw input */
|
||||
#if JPEG_LIB_VERSION >= 70
|
||||
jpegenc->cinfo.do_fancy_downsampling = FALSE;
|
||||
#endif
|
||||
jpegenc->cinfo.smoothing_factor = jpegenc->smoothing;
|
||||
jpegenc->cinfo.dct_method = jpegenc->idct_method;
|
||||
jpeg_set_quality (&jpegenc->cinfo, jpegenc->quality, TRUE);
|
||||
|
|
Loading…
Reference in a new issue