diff options
Diffstat (limited to 'ext/jpeg')
-rw-r--r-- | ext/jpeg/smokecodec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/jpeg/smokecodec.c b/ext/jpeg/smokecodec.c index 02246b74..98adf608 100644 --- a/ext/jpeg/smokecodec.c +++ b/ext/jpeg/smokecodec.c @@ -145,6 +145,11 @@ smokecodec_encode_new (SmokeCodecInfo ** info, newinfo->cinfo.dct_method = JDCT_FASTEST; + /* prepare for raw input */ +#if JPEG_LIB_VERSION >= 70 + newinfo->cinfo.do_fancy_downsampling = FALSE; +#endif + newinfo->cinfo.raw_data_in = TRUE; newinfo->cinfo.in_color_space = JCS_YCbCr; newinfo->cinfo.comp_info[0].h_samp_factor = 2; |