Skip to content

Commit 353933d

Browse files
committed
Remove warnings for libjpeg > 7.0
1 parent dc2380b commit 353933d

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

configure

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.67 for motion Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d.
3+
# Generated by GNU Autoconf 2.67 for motion Git-dc2380b04d9f33e2f03ae49dcffa1ef40dddbf23.
44
#
55
#
66
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -549,8 +549,8 @@ MAKEFLAGS=
549549
# Identity of this package.
550550
PACKAGE_NAME='motion'
551551
PACKAGE_TARNAME='motion'
552-
PACKAGE_VERSION='Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d'
553-
PACKAGE_STRING='motion Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d'
552+
PACKAGE_VERSION='Git-dc2380b04d9f33e2f03ae49dcffa1ef40dddbf23'
553+
PACKAGE_STRING='motion Git-dc2380b04d9f33e2f03ae49dcffa1ef40dddbf23'
554554
PACKAGE_BUGREPORT=''
555555
PACKAGE_URL=''
556556

@@ -1216,7 +1216,7 @@ if test "$ac_init_help" = "long"; then
12161216
# Omit some internal or obsolete options to make the list less imposing.
12171217
# This message is too long to be a string in the A/UX 3.1 sh.
12181218
cat <<_ACEOF
1219-
\`configure' configures motion Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d to adapt to many kinds of systems.
1219+
\`configure' configures motion Git-dc2380b04d9f33e2f03ae49dcffa1ef40dddbf23 to adapt to many kinds of systems.
12201220
12211221
Usage: $0 [OPTION]... [VAR=VALUE]...
12221222
@@ -1277,7 +1277,7 @@ fi
12771277

12781278
if test -n "$ac_init_help"; then
12791279
case $ac_init_help in
1280-
short | recursive ) echo "Configuration of motion Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d:";;
1280+
short | recursive ) echo "Configuration of motion Git-dc2380b04d9f33e2f03ae49dcffa1ef40dddbf23:";;
12811281
esac
12821282
cat <<\_ACEOF
12831283
@@ -1419,7 +1419,7 @@ fi
14191419
test -n "$ac_init_help" && exit $ac_status
14201420
if $ac_init_version; then
14211421
cat <<\_ACEOF
1422-
motion configure Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d
1422+
motion configure Git-dc2380b04d9f33e2f03ae49dcffa1ef40dddbf23
14231423
generated by GNU Autoconf 2.67
14241424
14251425
Copyright (C) 2010 Free Software Foundation, Inc.
@@ -2016,7 +2016,7 @@ cat >config.log <<_ACEOF
20162016
This file contains any messages produced by compilers while
20172017
running configure, to aid debugging if configure makes a mistake.
20182018
2019-
It was created by motion $as_me Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d, which was
2019+
It was created by motion $as_me Git-dc2380b04d9f33e2f03ae49dcffa1ef40dddbf23, which was
20202020
generated by GNU Autoconf 2.67. Invocation command line was
20212021
20222022
$ $0 $@
@@ -6437,7 +6437,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64376437
# report actual input values of CONFIG_FILES etc. instead of their
64386438
# values after options handling.
64396439
ac_log="
6440-
This file was extended by motion $as_me Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d, which was
6440+
This file was extended by motion $as_me Git-dc2380b04d9f33e2f03ae49dcffa1ef40dddbf23, which was
64416441
generated by GNU Autoconf 2.67. Invocation command line was
64426442
64436443
CONFIG_FILES = $CONFIG_FILES
@@ -6499,7 +6499,7 @@ _ACEOF
64996499
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65006500
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
65016501
ac_cs_version="\\
6502-
motion config.status Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d
6502+
motion config.status Git-dc2380b04d9f33e2f03ae49dcffa1ef40dddbf23
65036503
configured by $0, generated by GNU Autoconf 2.67,
65046504
with options \\"\$ac_cs_config\\"
65056505

jpegutils.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,9 @@ int decode_jpeg_raw (unsigned char *jpeg_data, int len,
491491
*/
492492
jpeg_read_header (&dinfo, TRUE);
493493
dinfo.raw_data_out = TRUE;
494-
// TODO: Set to FALSE for some buggy implementation of JPEG ?
494+
#if JPEG_LIB_VERSION >= 70
495495
dinfo.do_fancy_upsampling = FALSE;
496+
#endif
496497
dinfo.out_color_space = JCS_YCbCr;
497498
dinfo.dct_method = JDCT_IFAST;
498499
guarantee_huff_tables(&dinfo);
@@ -583,8 +584,9 @@ int decode_jpeg_raw (unsigned char *jpeg_data, int len,
583584
if (field > 0) {
584585
jpeg_read_header (&dinfo, TRUE);
585586
dinfo.raw_data_out = TRUE;
586-
// TODO: Set to FALSE for some buggy implementation of JPEG ?
587+
#if JPEG_LIB_VERSION >= 70
587588
dinfo.do_fancy_upsampling = FALSE;
589+
#endif
588590
dinfo.out_color_space = JCS_YCbCr;
589591
dinfo.dct_method = JDCT_IFAST;
590592
jpeg_start_decompress (&dinfo);
@@ -801,8 +803,9 @@ int decode_jpeg_gray_raw(unsigned char *jpeg_data, int len,
801803
*/
802804
jpeg_read_header (&dinfo, TRUE);
803805
dinfo.raw_data_out = TRUE;
804-
// TODO: Set to FALSE for some buggy implementation of JPEG ?
806+
#if JPEG_LIB_VERSION >= 70
805807
dinfo.do_fancy_upsampling = FALSE;
808+
#endif
806809
dinfo.out_color_space = JCS_GRAYSCALE;
807810
dinfo.dct_method = JDCT_IFAST;
808811

@@ -869,8 +872,9 @@ int decode_jpeg_gray_raw(unsigned char *jpeg_data, int len,
869872
if (field > 0) {
870873
jpeg_read_header (&dinfo, TRUE);
871874
dinfo.raw_data_out = TRUE;
872-
// TODO: Set to FALSE for some buggy implementation of JPEG ?
875+
#if JPEG_LIB_VERSION >= 70
873876
dinfo.do_fancy_upsampling = FALSE;
877+
#endif
874878
dinfo.out_color_space = JCS_GRAYSCALE;
875879
dinfo.dct_method = JDCT_IFAST;
876880
jpeg_start_decompress (&dinfo);

picture.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,13 +436,12 @@ static int put_jpeg_yuv420p_memory(unsigned char *dest_image, int image_size,
436436
cinfo.image_width = width;
437437
cinfo.image_height = height;
438438
cinfo.input_components = 3;
439-
jpeg_set_defaults (&cinfo);
439+
jpeg_set_defaults(&cinfo);
440440

441441
jpeg_set_colorspace(&cinfo, JCS_YCbCr);
442442

443443
cinfo.raw_data_in = TRUE; // Supply downsampled data
444444
#if JPEG_LIB_VERSION >= 70
445-
#warning using JPEG_LIB_VERSION >= 70
446445
cinfo.do_fancy_downsampling = FALSE; // Fix segfault with v7
447446
#endif
448447
cinfo.comp_info[0].h_samp_factor = 2;
@@ -457,7 +456,7 @@ static int put_jpeg_yuv420p_memory(unsigned char *dest_image, int image_size,
457456

458457
_jpeg_mem_dest(&cinfo, dest_image, image_size); // Data written to mem
459458

460-
jpeg_start_compress (&cinfo, TRUE);
459+
jpeg_start_compress(&cinfo, TRUE);
461460

462461
put_jpeg_exif(&cinfo, cnt, tm, box);
463462

@@ -577,7 +576,6 @@ static void put_jpeg_yuv420p_file(FILE *fp,
577576

578577
cinfo.raw_data_in = TRUE; // Supply downsampled data
579578
#if JPEG_LIB_VERSION >= 70
580-
#warning using JPEG_LIB_VERSION >= 70
581579
cinfo.do_fancy_downsampling = FALSE; // Fix segfault with v7
582580
#endif
583581
cinfo.comp_info[0].h_samp_factor = 2;

0 commit comments

Comments
 (0)