Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…011x08x20x194659

Adding dinfo.do_fancy_upsampling = FALSE;
  • Loading branch information
sackmotion committed Oct 29, 2011
1 parent 7dbb5f3 commit dc2380b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Bugfixes
http://www.lavrsen.dk/foswiki/bin/view/Motion/BugReport2011x01x21x162309
* Added a conditional check for avformat_alloc_context , av_avformat_alloc_context to fix
http://www.lavrsen.dk/foswiki/bin/view/Motion/BugReport2011x10x05x071936 (Angel Carpintero)
* Fix issue with JPEG , adding dinfo.do_fancy_upsampling = FALSE;
http://www.lavrsen.dk/foswiki/bin/view/Motion/BugReport2011x08x20x194659

3.2.12 Summary of Changes

Expand Down
12 changes: 12 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ dep depend fastdep: $(DEPEND_FILE)
################################################################################
dev: distclean autotools all

################################################################################
# DEV-GIT, BUILD with developer flags #
################################################################################
dev-git: distclean autotools-git all


################################################################################
# GIT, BUILD with developer flags #
Expand All @@ -152,6 +157,12 @@ autotools:
autoconf
./configure --with-developer-flags

autotools-git:
@sed -i 's/.\/git-commit-version.sh/.\/version.sh/g' configure.in
autoconf
./configure --with-developer-flags


build-commit: distclean svn set-version all

set-version:
Expand All @@ -172,6 +183,7 @@ help:
@echo "make Build motion from local copy in your computer"
@echo "make current Build last version of motion from svn"
@echo "make dev Build motion with dev flags"
@echo "make dev-git Build motion with dev flags for git"
@echo "make build-commit Build last version of motion and prepare to commit to svn"
@echo "make build-commit-git Build last version of motion and prepare to commit to git"
@echo "make clean Clean objects"
Expand Down
18 changes: 9 additions & 9 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.67 for motion Git-5dd9ed44ecbd430a5f059e916c0f9ce9ceed0beb.
# Generated by GNU Autoconf 2.67 for motion Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Expand Down Expand Up @@ -549,8 +549,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='motion'
PACKAGE_TARNAME='motion'
PACKAGE_VERSION='Git-5dd9ed44ecbd430a5f059e916c0f9ce9ceed0beb'
PACKAGE_STRING='motion Git-5dd9ed44ecbd430a5f059e916c0f9ce9ceed0beb'
PACKAGE_VERSION='Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d'
PACKAGE_STRING='motion Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

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

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of motion Git-5dd9ed44ecbd430a5f059e916c0f9ce9ceed0beb:";;
short | recursive ) echo "Configuration of motion Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d:";;
esac
cat <<\_ACEOF
Expand Down Expand Up @@ -1419,7 +1419,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
motion configure Git-5dd9ed44ecbd430a5f059e916c0f9ce9ceed0beb
motion configure Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d
generated by GNU Autoconf 2.67
Copyright (C) 2010 Free Software Foundation, Inc.
Expand Down Expand Up @@ -2016,7 +2016,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by motion $as_me Git-5dd9ed44ecbd430a5f059e916c0f9ce9ceed0beb, which was
It was created by motion $as_me Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d, which was
generated by GNU Autoconf 2.67. Invocation command line was
$ $0 $@
Expand Down Expand Up @@ -6437,7 +6437,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by motion $as_me Git-5dd9ed44ecbd430a5f059e916c0f9ce9ceed0beb, which was
This file was extended by motion $as_me Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d, which was
generated by GNU Autoconf 2.67. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -6499,7 +6499,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
motion config.status Git-5dd9ed44ecbd430a5f059e916c0f9ce9ceed0beb
motion config.status Git-7dbb5f3d9dcb34f9e7575c744d2e54ed266d128d
configured by $0, generated by GNU Autoconf 2.67,
with options \\"\$ac_cs_config\\"
Expand Down
8 changes: 8 additions & 0 deletions jpegutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ int decode_jpeg_raw (unsigned char *jpeg_data, int len,
*/
jpeg_read_header (&dinfo, TRUE);
dinfo.raw_data_out = TRUE;
// TODO: Set to FALSE for some buggy implementation of JPEG ?
dinfo.do_fancy_upsampling = FALSE;
dinfo.out_color_space = JCS_YCbCr;
dinfo.dct_method = JDCT_IFAST;
guarantee_huff_tables(&dinfo);
Expand Down Expand Up @@ -581,6 +583,8 @@ int decode_jpeg_raw (unsigned char *jpeg_data, int len,
if (field > 0) {
jpeg_read_header (&dinfo, TRUE);
dinfo.raw_data_out = TRUE;
// TODO: Set to FALSE for some buggy implementation of JPEG ?
dinfo.do_fancy_upsampling = FALSE;
dinfo.out_color_space = JCS_YCbCr;
dinfo.dct_method = JDCT_IFAST;
jpeg_start_decompress (&dinfo);
Expand Down Expand Up @@ -797,6 +801,8 @@ int decode_jpeg_gray_raw(unsigned char *jpeg_data, int len,
*/
jpeg_read_header (&dinfo, TRUE);
dinfo.raw_data_out = TRUE;
// TODO: Set to FALSE for some buggy implementation of JPEG ?
dinfo.do_fancy_upsampling = FALSE;
dinfo.out_color_space = JCS_GRAYSCALE;
dinfo.dct_method = JDCT_IFAST;

Expand Down Expand Up @@ -863,6 +869,8 @@ int decode_jpeg_gray_raw(unsigned char *jpeg_data, int len,
if (field > 0) {
jpeg_read_header (&dinfo, TRUE);
dinfo.raw_data_out = TRUE;
// TODO: Set to FALSE for some buggy implementation of JPEG ?
dinfo.do_fancy_upsampling = FALSE;
dinfo.out_color_space = JCS_GRAYSCALE;
dinfo.dct_method = JDCT_IFAST;
jpeg_start_decompress (&dinfo);
Expand Down

0 comments on commit dc2380b

Please sign in to comment.