debian/0000775000000000000000000000000012055661152007173 5ustar debian/watch0000664000000000000000000000022012055657036010224 0ustar # Run the "uscan" command to check for upstream updates and more. version=3 http://ghostscript.com/~giles/jbig2/jbig2dec/jbig2dec-(.*)\.tar\..* debian/source.lintian-overrides0000664000000000000000000000026712055657036014066 0ustar # overridden at build time, thanks to CDBS jbig2dec source: ancient-autotools-helper-file config.guess 2003-10-03 jbig2dec source: ancient-autotools-helper-file config.sub 2003-08-18 debian/rules0000775000000000000000000000550512055657036010266 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright © 2009-2010 Jonas Smedegaard # Description: Main Debian packaging script for jbig2dec # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2, or (at # your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . DEB_AUTO_UPDATE_LIBTOOL = pre DEB_AUTO_UPDATE_ACLOCAL = 1.11 DEB_AUTO_UPDATE_AUTOCONF = 2.68 DEB_AUTO_UPDATE_AUTOHEADER = 2.68 DEB_AUTO_UPDATE_AUTOMAKE = 1.11 include /usr/share/cdbs/1/rules/upstream-tarball.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/debhelper.mk libname = lib$(DEB_UPSTREAM_PACKAGE) soname = 0 pkgname = $(libname)$(soname) DEB_UPSTREAM_URL = http://ghostscript.com/~giles/jbig2/$(DEB_UPSTREAM_PACKAGE)/ DEB_UPSTREAM_TARBALL_MD5 = 1f61e144852c86563fee6e5ddced63f1 # bootstrap autotools files (CDBS normally only updates them) DEB_MAKE_CLEAN_TARGET = distclean DEB_AUTOMAKE_ARGS = --add-missing --copy clean:: rm -f Makefile.in aclocal.m4 compile config.guess config.h.in config.sub configure depcomp install-sh ltmain.sh missing DEB_MAKE_CHECK_TARGET = check DEB_INSTALL_MANPAGES_jbig2dec = debian/tmp/usr/share/man/man1/* DEB_SHLIBDEPS_LIBRARY_$(pkgname) = $(libname) DEB_DH_MAKESHLIBS_ARGS = -Pdebian/$(cdbs_curpkg) # put aside upstream-shipped temp files during build but after copyright-check upstreamtmpfiles = config_types.h pre-build:: debian/stamp-upstreamtmpstuff debian/stamp-upstreamtmpstuff: debian/stamp-copyright-check for file in $(upstreamtmpfiles); do \ [ ! -e $$file ] || [ -e $$file.upstream ] || mv $$file $$file.upstream; \ done touch $@ clean:: for file in $(upstreamtmpfiles); do \ [ ! -e $$file.upstream ] || mv -f $$file.upstream $$file; \ done rm -f debian/stamp-upstreamtmpstuff # Let d-shlibs resolve dependencies for and install library files CDBS_BUILD_DEPENDS += , d-shlibs (>= 0.45~) binary-post-install/$(pkgname):: debian/stamp-local-shlibs-$(libname) debian/stamp-local-shlibs-$(libname): binary-install/$(pkgname) d-shlibmove --commit \ --exclude-la \ --movedev "debian/tmp/usr/include/*" usr/include/ \ debian/tmp/usr/lib/$(libname).so touch $@ clean:: rm -f debian/stamp-local-shlibs-$(libname) # Needed by by upstream build routines CDBS_BUILD_DEPENDS += , libpng-dev # Needed by upstream tests CDBS_BUILD_DEPENDS += , python debian/libjbig2dec0.symbols0000664000000000000000000001002312055660130013014 0ustar libjbig2dec.so.0 libjbig2dec0 #MINVER# jbig2_alloc@Base 0.11 jbig2_arith_Qe@Base 0.11 jbig2_arith_decode@Base 0.11 jbig2_arith_iaid_ctx_free@Base 0.11 jbig2_arith_iaid_ctx_new@Base 0.11 jbig2_arith_iaid_decode@Base 0.11 jbig2_arith_int_ctx_free@Base 0.11 jbig2_arith_int_ctx_new@Base 0.11 jbig2_arith_int_decode@Base 0.11 jbig2_arith_new@Base 0.11 jbig2_build_huffman_table@Base 0.11 jbig2_comment_ascii@Base 0.11 jbig2_comment_unicode@Base 0.11 jbig2_complete_page@Base 0.11 jbig2_ctx_free@Base 0.11 jbig2_ctx_new@Base 0.11 jbig2_data_in@Base 0.11 jbig2_decode_generic_mmr@Base 0.11 jbig2_decode_generic_region@Base 0.11 jbig2_decode_gray_scale_image@Base 0.11+20120125 jbig2_decode_halftone_mmr@Base 0.11+20120125 jbig2_decode_halftone_region@Base 0.11 jbig2_decode_ht_region_get_hpats@Base 0.11+20120125 jbig2_decode_refinement_region@Base 0.11 jbig2_decode_text_region@Base 0.11 jbig2_end_of_page@Base 0.11 jbig2_end_of_stripe@Base 0.11 jbig2_error@Base 0.11 jbig2_find_segment@Base 0.11 jbig2_find_table@Base 0.11+20120125 jbig2_free@Base 0.11 jbig2_free_segment@Base 0.11 jbig2_generic_stats_size@Base 0.11 jbig2_get_int16@Base 0.11 jbig2_get_int32@Base 0.11 jbig2_get_region_segment_info@Base 0.11 jbig2_get_uint16@Base 0.11+20120125 jbig2_get_uint32@Base 0.11+20120125 jbig2_global_ctx_free@Base 0.11 jbig2_halftone_region@Base 0.11 jbig2_hd_new@Base 0.11 jbig2_hd_release@Base 0.11 jbig2_huffman_advance@Base 0.11 jbig2_huffman_free@Base 0.11 jbig2_huffman_get@Base 0.11 jbig2_huffman_get_bits@Base 0.11 jbig2_huffman_lines_A@Base 0.11 jbig2_huffman_lines_B@Base 0.11 jbig2_huffman_lines_C@Base 0.11 jbig2_huffman_lines_D@Base 0.11 jbig2_huffman_lines_E@Base 0.11 jbig2_huffman_lines_F@Base 0.11 jbig2_huffman_lines_G@Base 0.11 jbig2_huffman_lines_H@Base 0.11 jbig2_huffman_lines_I@Base 0.11 jbig2_huffman_lines_J@Base 0.11 jbig2_huffman_lines_K@Base 0.11 jbig2_huffman_lines_L@Base 0.11 jbig2_huffman_lines_M@Base 0.11 jbig2_huffman_lines_N@Base 0.11 jbig2_huffman_lines_O@Base 0.11 jbig2_huffman_new@Base 0.11 jbig2_huffman_offset@Base 0.11 jbig2_huffman_params_A@Base 0.11 jbig2_huffman_params_B@Base 0.11 jbig2_huffman_params_C@Base 0.11 jbig2_huffman_params_D@Base 0.11 jbig2_huffman_params_E@Base 0.11 jbig2_huffman_params_F@Base 0.11 jbig2_huffman_params_G@Base 0.11 jbig2_huffman_params_H@Base 0.11 jbig2_huffman_params_I@Base 0.11 jbig2_huffman_params_J@Base 0.11 jbig2_huffman_params_K@Base 0.11 jbig2_huffman_params_L@Base 0.11 jbig2_huffman_params_M@Base 0.11 jbig2_huffman_params_N@Base 0.11 jbig2_huffman_params_O@Base 0.11 jbig2_huffman_skip@Base 0.11 jbig2_image_clear@Base 0.11 jbig2_image_clone@Base 0.11 jbig2_image_compose@Base 0.11 jbig2_image_compose_unopt@Base 0.11 jbig2_image_free@Base 0.11 jbig2_image_get_pixel@Base 0.11 jbig2_image_new@Base 0.11 jbig2_image_read_pbm@Base 0.11 jbig2_image_read_pbm_file@Base 0.11 jbig2_image_release@Base 0.11 jbig2_image_resize@Base 0.11 jbig2_image_set_pixel@Base 0.11 jbig2_image_write_pbm@Base 0.11 jbig2_image_write_pbm_file@Base 0.11 jbig2_immediate_generic_region@Base 0.11 jbig2_make_global_ctx@Base 0.11 jbig2_metadata_add@Base 0.11 jbig2_metadata_free@Base 0.11 jbig2_metadata_new@Base 0.11 jbig2_mmr_black_decode@Base 0.11 jbig2_mmr_white_decode@Base 0.11 jbig2_page_add_result@Base 0.11 jbig2_page_info@Base 0.11 jbig2_page_out@Base 0.11 jbig2_parse_extension_segment@Base 0.11 jbig2_parse_segment@Base 0.11 jbig2_parse_segment_header@Base 0.11 jbig2_pattern_dictionary@Base 0.11 jbig2_realloc@Base 0.11 jbig2_refinement_region@Base 0.11 jbig2_region_find_referred@Base 0.11 jbig2_release_huffman_table@Base 0.11 jbig2_release_page@Base 0.11 jbig2_sd_cat@Base 0.11 jbig2_sd_count_referred@Base 0.11 jbig2_sd_glyph@Base 0.11 jbig2_sd_list_referred@Base 0.11 jbig2_sd_new@Base 0.11 jbig2_sd_release@Base 0.11 jbig2_symbol_dictionary@Base 0.11 jbig2_table@Base 0.11+20120125 jbig2_table_free@Base 0.11+20120125 jbig2_text_region@Base 0.11 jbig2_word_stream_buf_free@Base 0.11 jbig2_word_stream_buf_new@Base 0.11 debian/jbig2dec.install0000664000000000000000000000001212055657036012233 0ustar usr/bin/* debian/gbp.conf0000664000000000000000000000014612055657036010621 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True sign-tags = True debian/copyright_hints0000664000000000000000000000662512055657036012352 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=174 Upstream-Name: FIXME Upstream-Contact: FIXME Source: FIXME Disclaimer: Autogenerated by CDBS Files: config_win32.h jbig2.c jbig2.h jbig2_arith.c jbig2_arith.h jbig2_arith_iaid.c jbig2_arith_iaid.h jbig2_arith_int.c jbig2_arith_int.h jbig2_generic.c jbig2_generic.h jbig2_halftone.c jbig2_halftone.h jbig2_huffman.c jbig2_huffman.h jbig2_hufftab.h jbig2_image.c jbig2_image.h jbig2_image_pbm.c jbig2_image_png.c jbig2_metadata.c jbig2_metadata.h jbig2_mmr.h jbig2_page.c jbig2_priv.h jbig2_refinement.c jbig2_segment.c jbig2_symbol_dict.c jbig2_symbol_dict.h jbig2_text.c jbig2_text.h jbig2dec.c memcmp.c os_types.h pbm2png.c Copyright: 2001, Artifex Software, Inc 2001-2002, Artifex Software, Inc 2001-2005, Artifex Software, Inc 2001-2009, Artifex Software, Inc 2002, Artifex Software, Inc 2002-2003, Artifex Software, Inc 2002-2004, Artifex Software, Inc 2002-2005, Artifex Software, Inc 2002-2008, Artifex Software, Inc 2003, Artifex Software, Inc 2004, Artifex Software, Inc 2005, Artifex Software, Inc 2009, Artifex Software, Inc 2012, Artifex Software, Inc License: UNKNOWN FIXME Files: CHANGES Jamfile Makefile.am Makefile.unix README SConstruct annex-h.jbig2 autogen.sh config_types.h.in configure.ac debian/README.source debian/compat debian/control debian/control.in debian/gbp.conf debian/jbig2dec.install debian/patches/1001_ignore_python_test.patch debian/patches/1002_gs-git~8b15057.patch debian/patches/1003_gs-git~082c31b.patch debian/patches/1004_extract_infile_from_autogen-sh.patch debian/patches/series debian/source.lintian-overrides debian/source/format debian/watch jbig2dec.1 msvc.mak sha1.c test_jbig2dec.py Copyright: *No copyright* License: UNKNOWN FIXME Files: getopt.c getopt1.c Copyright: 1987,88,89,90,91,92,93,94,95,96,98,99,2000-2001 1987,88,89,90,91,92,93,94,96,97,98 License: LGPL-2.1+ FIXME Files: snprintf.c Copyright: 1997, Theo de Raadt License: BSD (2 clause) FIXME Files: debian/rules Copyright: 2009-2010, Jonas Smedegaard License: GPL-2+ FIXME Files: COPYING Copyright: 2007, Free Software Foundation, Inc. HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS are not disclaimer" for the program, if necessary holder as a result of your choosing to follow a holder explicitly and holder is holder is reinstated (a) holder notifies you of the holder who authorizes use under this holder, and you cure the violation prior to 30 days after holders of if you do law law, except executing it on a on the Program, and are irrevocable provided the stated on the software, and (2) offer you this License permission permission, other than the making of an treaty adopted on 20 December 1996, or License: GPL-3+ FIXME Files: getopt.h Copyright: 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc License: LGPL-2.1+ FIXME Files: sha1.h Copyright: *No copyright* License: Public domain FIXME Files: jbig2_mmr.c Copyright: 2001-2002, Artifex Software, Inc jbig2_set_bits(dst, a0, b1 + 1); jbig2_set_bits(dst, a0, b1 + 2); jbig2_set_bits(dst, a0, b1 + 3); jbig2_set_bits(dst, a0, b1 - 1); jbig2_set_bits(dst, a0, b1 - 2); jbig2_set_bits(dst, a0, b1 - 3); jbig2_set_bits(dst, a0, b1); jbig2_set_bits(dst, a0, b2); License: UNKNOWN FIXME Files: LICENSE Copyright: headers License: UNKNOWN FIXME debian/copyright0000664000000000000000000001616312055657036011143 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?rev=174 Upstream-Name: jbig2dec Upstream-Contact: http://www.ghostscript.com/mailman/listinfo/jbig2-dev/ irc://irc.freenode.net/#ghostscript Source: http://ghostscript.com/~giles/jbig2/jbig2dec/ http://git.ghostscript.com/?p=jbig2dec;a=summary Copyright: 2001-2009,2012, Artifex Software, Inc. License: GPL-2+ or AFPL-9 Files: compile config.guess config.sub depcomp missing Copyright: 1996-2003, Free Software Foundation, Inc. License: GPL-2+ with Autoconf exception As a special exception to the GNU General Public License, if you distribute this file as part of a program that contains a configuration script generated by Autoconf, you may include it under the same distribution terms that you use for the rest of that program. Files: getopt* Copyright: 1987-2001, Free Software Foundation, Inc. License: LGPL-2.1+ Files: snprintf.c Copyright: 1997, Theo de Raadt License: BSD-2-clause Files: configure Copyright: 1992-2008, Free Software Foundation, Inc. License: GAP~configure Files: aclocal.m4 Copyright: 1996-2008, Free Software Foundation, Inc License: GAP Files: ltmain.sh Copyright: 1996-2001, 2003-2008, Free Software Foundation, Inc License: GPL-2+ with Libtool exception As a special exception to the GNU General Public License, if you distribute this file as part of a program or library that is built using GNU Libtool, you may include this file under the same distribution terms that you use for the rest of that program. Files: install-sh Copyright: 1994, X Consortium License: Expat~X with X exception Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. Files: sha1.h Copyright: None (public domain) License: PD this file is in the public domain Files: sha1.c Copyright: None (public domain) License: PD 100% Public Domain Files: Makefile.in Copyright: 1994-2008, Free Software Foundation, Inc. License: GAP~Makefile.in Files: debian/* Copyright: 2009-2010, Jonas Smedegaard License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Comment: Some files differ from above by replacing "this program" with more specific terms, but otherwise identical licensing and disclaimer. . On Debian systems the 'GNU General Public License' version 2 is located in '/usr/share/common-licenses/GPL-2'. . You should have received a copy of the 'GNU General Public License' along with this program. If not, see . License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. Comment: Some files differ from above by replacing "this library" with more specific terms, but otherwise identical licensing and disclaimer. . On Debian systems the 'GNU Lesser General Public License' version 2.1 is located in '/usr/share/common-licenses/LGPL-2.1'. . You should have received a copy of the 'GNU Lesser General Public License' along with this program. If not, see . License: AFPL-9 In addition, specific permission is given to link jbig2dec to or compile jbig2dec into AFPL Ghostscript and to distribute same under the Aladdin Free Public License (AFPL) version 9. Comment: The actual 'Aladdin Free Public License' is missing from upstream source and not attempted located elsewhere, as the licensing terms used for Debian is the GPL. License: GAP This file is free software; the Free Software Foundation gives unlimited permission to copy and/or distribute it, with or without modifications, as long as this notice is preserved. License: GAP~configure This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. License: GAP~Makefile.in This Makefile.in is free software; the Free Software Foundation gives unlimited permission to copy and/or distribute it, with or without modifications, as long as this notice is preserved. License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: Expat~X Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control.in0000664000000000000000000000336612055657036011221 0ustar Source: jbig2dec Section: libs Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Jonas Smedegaard Build-Depends: @cdbs@ Standards-Version: 3.9.2 Vcs-Git: git://git.debian.org/git/collab-maint/jbig2dec.git Vcs-Browser: http://git.debian.org/?p=collab-maint/jbig2dec.git;a=summary Homepage: http://jbig2dec.sourceforge.net/ Package: libjbig2dec0-dev Section: libdevel Depends: libjbig2dec0 (= ${binary:Version}), ${devlibs:Depends}, ${misc:Depends} Provides: libjbig2dec-dev Conflicts: libjbig2dec-dev Architecture: any Description: JBIG2 decoder library - development files jbig2dec is a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later. . This package contains the development headers and static library. Package: libjbig2dec0 Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Architecture: any Description: JBIG2 decoder library - shared libraries jbig2dec is a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later. . This package contains the shared library libjbig2dec. Package: jbig2dec Section: graphics Depends: ${shlibs:Depends}, ${misc:Depends} Architecture: any Description: JBIG2 decoder library - tools jbig2dec is a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later. . This package contains the command-line utility jbig2dec. debian/control0000664000000000000000000000357112055657036010612 0ustar Source: jbig2dec Section: libs Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Jonas Smedegaard Build-Depends: cdbs (>= 0.4.70~), devscripts, libtool, automake1.11, autoconf, debhelper, dh-buildinfo, d-shlibs (>= 0.45~), libpng-dev, python Standards-Version: 3.9.2 Vcs-Git: git://git.debian.org/git/collab-maint/jbig2dec.git Vcs-Browser: http://git.debian.org/?p=collab-maint/jbig2dec.git;a=summary Homepage: http://jbig2dec.sourceforge.net/ Package: libjbig2dec0-dev Section: libdevel Depends: libjbig2dec0 (= ${binary:Version}), ${devlibs:Depends}, ${misc:Depends} Provides: libjbig2dec-dev Conflicts: libjbig2dec-dev Architecture: any Description: JBIG2 decoder library - development files jbig2dec is a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later. . This package contains the development headers and static library. Package: libjbig2dec0 Section: libs Depends: ${shlibs:Depends}, ${misc:Depends} Architecture: any Description: JBIG2 decoder library - shared libraries jbig2dec is a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later. . This package contains the shared library libjbig2dec. Package: jbig2dec Section: graphics Depends: ${shlibs:Depends}, ${misc:Depends} Architecture: any Description: JBIG2 decoder library - tools jbig2dec is a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later. . This package contains the command-line utility jbig2dec. debian/compat0000664000000000000000000000000212055657036010377 0ustar 7 debian/changelog0000664000000000000000000000535012055657036011056 0ustar jbig2dec (0.11+20120125-1ubuntu1) raring; urgency=low * Merge from Debian unstable. Remaining changes: - debian/libjbig2dec0.symbols: Added symbols file, generated and updated by "dpkg-gensymbols -plibjbig2dec0 -Pdebian/libjbig2dec0/". * Update symbols file based on dpkg-gensymbols diff in pbuilder. * Update to Ubuntu maintainer. -- Logan Rosen Thu, 15 Nov 2012 00:32:40 -0500 jbig2dec (0.11+20120125-1) unstable; urgency=low * New snapshot of upstream git. * Autogenerate autotools. * Add patches cherry-picked from Ghostscript: 1002: Prevent composition if src outside clip region. 1003: Implement generic refinement region when TPGRON is TRUE. * Add patch 1004 to add config_types.h.in (not create in autogen.sh). * Fix strip editing noise from copyright file. * Fix watch file to cover current release: Ignore compression suffix. * Bump debhelper compat level to 7. * Bump standards-version to 3.9.2. * Simplify *.install file, thanks to debhelper compat level 7. * Ease building with git-buildpackage: Git-ignore .pc dir. * Update copyright file: + Reformat using rev. 174 of draft DEP-5 syntax. + Fix declare exceptions as such. + Fix include Expat~X license verbatim (adding "Some files differ..." to License field violates need for "verbatim copy"). + Separate comments from License field in GNU License sections, shorten comments and quote license in them. + Rename licenses to better match recent DEP5 draft (e.g. avoid "other" prefix). + Rewrap License sections at 72 chars. + Fix reference GNU licenses versioned. + Document in Comment field of AFPL License section the lack of actual licensing text: license unused by Debian. + Extend copyright years. * Update package relations: + Relax build-depend unversioned on debhelper and devscripts (needed versions satisfied even in oldstable). + Build-depend on libtool, automake1.11 and autoconf. + Tighten build-dependency on d-shlibs. * Stop installing -la file. Closes bug#621683. Thanks to Neil Williams. -- Jonas Smedegaard Fri, 10 Feb 2012 17:44:51 +0100 jbig2dec (0.11-1ubuntu2) quantal; urgency=low * Rebuild for new armel compiler default of ARMv5t. -- Colin Watson Thu, 04 Oct 2012 09:17:57 +0100 jbig2dec (0.11-1ubuntu1) natty; urgency=low * debian/libjbig2dec0.symbols: Added symbols file, generated and updated by "dpkg-gensymbols -plibjbig2dec0 -Pdebian/libjbig2dec0/". -- Till Kamppeter Mon, 10 Jan 2011 19:01:36 +0100 jbig2dec (0.11-1) unstable; urgency=low * Initial release. Closes: bug#539965. -- Jonas Smedegaard Wed, 21 Apr 2010 21:06:47 +0200 debian/README.source0000664000000000000000000000361312055657036011363 0ustar Building this package for Debian -------------------------------- This source package need no special handling for normal package builds. Developing this package for Debian ---------------------------------- The source of this package is developed using git and the helper tool git-buildpackage, with all official releases tagged and signed and binary diffs of tarballs stored using pristine-tar. This is documented below /usr/share/doc/git-buildpackage/manual-html/ . A custom build target shows current upstream and packaging versions: debian/rules print-version Current upstream tarball can be prepared using this other build target: debian/rules get-orig-source To switch to newer upstream source, first add a dummy changelog entry and comment out DEB_UPSTREAM_TARBALL_MD5 before getting the source: dch -v ${new_upstream_version}-1 "Dummy changelog entry" sed -i -e 's/^\(DEB_UPSTREAM_TARBALL_MD5\b\)/#\1/' debian/rules debian/rules get-orig-source Store new md5sum to help ensure identical source is received later. Setting DEB_MAINTAINER_MODE=1 enables additional build routines helpful during development of the package, but unfit for normal builds. This typically includes the CDBS feature of auto-updating debian/control with CDBS-related build-dependencies, which is forbidden by Debian Policy as build environment must not change during automated builds. Maintaining packaging build routines ------------------------------------ This source package wraps debhelper commands and other tedious parts of the build routines using the CDBS framework. Please refer to the actual makefile snippets included from debian/rules for details on their purpose and ways to override defaults. Additionally, makefile snippets included from below /usr/share/cdbs may also be documented in /usr/share/doc/cdbs/cdbs-doc.pdf.gz . -- Jonas Smedegaard Thu, 26 Feb 2009 21:28:29 +0100 debian/source/0000775000000000000000000000000012055661152010473 5ustar debian/source/format0000664000000000000000000000001412055657036011707 0ustar 3.0 (quilt) debian/patches/0000775000000000000000000000000012055661152010622 5ustar debian/patches/series0000664000000000000000000000017412055657036012047 0ustar 1001_ignore_python_test.patch 1002_gs-git~8b15057.patch 1003_gs-git~082c31b.patch 1004_extract_infile_from_autogen-sh.patch debian/patches/1004_extract_infile_from_autogen-sh.patch0000664000000000000000000000240212055657036020470 0ustar Description: Extract header infile oddly embedded in autogen script. Author: Jonas Smedegaard Forwarded: no Last-Update: 2012-02-10 --- a/autogen.sh +++ b/autogen.sh @@ -110,9 +110,6 @@ echo " autoheader" autoheader - -echo " creating config_types.h.in" -cat >config_types.h.in < +# else + typedef unsigned @JBIG2_INT32_T@ uint32_t; + typedef unsigned @JBIG2_INT16_T@ uint16_t; + typedef unsigned @JBIG2_INT8_T@ uint8_t; + typedef signed @JBIG2_INT32_T@ int32_t; + typedef signed @JBIG2_INT16_T@ int16_t; + typedef signed @JBIG2_INT8_T@ int8_t; +# endif /* JBIG2_REPLACE_STDINT */ +#endif /* HAVE_STDINT_H */ debian/patches/1003_gs-git~082c31b.patch0000664000000000000000000001240612055657036014612 0ustar Description: Implement generic refinement region when TPGRON is TRUE This patch from Gorac implements the generic refinement region decoding procedure for when TPGRON is TRUE. Origin: http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=082c31 Author: Shailesh Mistry Bug: http://bugs.ghostscript.com/show_bug.cgi?id=690974 Forwarded: no Last-Update: 2012-02-10 --- a/jbig2_refinement.c +++ b/jbig2_refinement.c @@ -235,6 +235,116 @@ } +typedef uint32_t (*ContextBuilder)(const Jbig2RefinementRegionParams *, +Jbig2Image *, int, int); + +static int implicit_value( const Jbig2RefinementRegionParams *params, Jbig2Image +*image, int x, int y ) +{ + Jbig2Image *ref = params->reference; + int i = x - params->DX; + int j = y - params->DY; + int m = jbig2_image_get_pixel(ref, i, j); + return ( + (jbig2_image_get_pixel(ref, i - 1, j - 1) == m) && + (jbig2_image_get_pixel(ref, i , j - 1) == m) && + (jbig2_image_get_pixel(ref, i + 1, j - 1) == m) && + (jbig2_image_get_pixel(ref, i - 1, j ) == m) && + (jbig2_image_get_pixel(ref, i + 1, j ) == m) && + (jbig2_image_get_pixel(ref, i - 1, j + 1) == m) && + (jbig2_image_get_pixel(ref, i , j + 1) == m) && + (jbig2_image_get_pixel(ref, i + 1, j + 1) == m) + )? m : -1; +} + +static uint32_t mkctx0( const Jbig2RefinementRegionParams *params, Jbig2Image +*image, int x, int y ) +{ + const int dx = params->DX; + const int dy = params->DY; + Jbig2Image *ref = params->reference; + uint32_t CONTEXT; + CONTEXT = jbig2_image_get_pixel(image, x - 1, y + 0); + CONTEXT |= jbig2_image_get_pixel(image, x + 1, y - 1) << 1; + CONTEXT |= jbig2_image_get_pixel(image, x + 0, y - 1) << 2; + CONTEXT |= jbig2_image_get_pixel(image, x + params->grat[0], y + +params->grat[1]) << 3; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 1, y - dy + 1) << 4; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 0, y - dy + 1) << 5; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx - 1, y - dy + 1) << 6; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 1, y - dy + 0) << 7; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 0, y - dy + 0) << 8; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx - 1, y - dy + 0) << 9; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 1, y - dy - 1) << 10; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 0, y - dy - 1) << 11; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + params->grat[2], y - dy + +params->grat[3]) << 12; + return CONTEXT; +} + +static uint32_t mkctx1( const Jbig2RefinementRegionParams *params, Jbig2Image +*image, int x, int y ) +{ + const int dx = params->DX; + const int dy = params->DY; + Jbig2Image *ref = params->reference; + uint32_t CONTEXT; + CONTEXT = jbig2_image_get_pixel(image, x - 1, y + 0); + CONTEXT |= jbig2_image_get_pixel(image, x + 1, y - 1) << 1; + CONTEXT |= jbig2_image_get_pixel(image, x + 0, y - 1) << 2; + CONTEXT |= jbig2_image_get_pixel(image, x - 1, y - 1) << 3; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 1, y - dy + 1) << 4; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 0, y - dy + 1) << 5; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 1, y - dy + 0) << 6; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 0, y - dy + 0) << 7; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx - 1, y - dy + 0) << 8; + CONTEXT |= jbig2_image_get_pixel(ref, x - dx + 0, y - dy - 1) << 9; + return CONTEXT; +} + +static int jbig2_decode_refinement_TPGRON(const Jbig2RefinementRegionParams +*params, Jbig2ArithState *as, Jbig2Image *image, Jbig2ArithCx *GR_stats) +{ + const int GRW = image->width; + const int GRH = image->height; + int x, y, iv, bit, LTP = 0; + uint32_t start_context = (params->GRTEMPLATE? 0x40 : 0x100); + ContextBuilder mkctx = (params->GRTEMPLATE? mkctx1 : mkctx0); + + for (y = 0; y < GRH; y++) + { + bit = jbig2_arith_decode(as, &GR_stats[start_context]); + if (bit < 0) return -1; + LTP = LTP ^ bit; + if (!LTP) + { + for (x = 0; x < GRW; x++) + { + bit = jbig2_arith_decode(as, &GR_stats[mkctx(params, image, x, y)]); + if (bit < 0) return -1; + jbig2_image_set_pixel(image, x, y, bit); + } + } + else + { + for (x = 0; x < GRW; x++) + { + iv = implicit_value(params, image, x, y); + if (iv < 0) + { + bit = jbig2_arith_decode(as, &GR_stats[mkctx(params, image, x, y)]); + if (bit < 0) return -1; + jbig2_image_set_pixel(image, x, y, bit); + } + else jbig2_image_set_pixel(image, x, y, iv); + } + } + } + + return 0; +} + + /** * jbig2_decode_refinement_region: Decode a generic refinement region. * @ctx: The context for allocation and error reporting. @@ -267,9 +377,10 @@ params->DX, params->DY, params->GRTEMPLATE, params->TPGRON, params->grat[0], params->grat[1], params->grat[2], params->grat[3]); } + if (params->TPGRON) - return jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, - "decode_refinement_region: typical prediction coding NYI"); + return jbig2_decode_refinement_TPGRON(params, as, image, GR_stats); + if (params->GRTEMPLATE) return jbig2_decode_refinement_template1_unopt(ctx, segment, params, as, image, GR_stats); debian/patches/1002_gs-git~8b15057.patch0000664000000000000000000000206112055657036014536 0ustar Description: Prevent composition if src outside clip region This patch prevents the image compositing occurring if the src is outside of the clip region. Origin: http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=8b1505 Author: Shailesh Mistry Bug: http://bugs.ghostscript.com/show_bug.cgi?id=690870 Forwarded: no Last-Update: 2012-02-10 --- a/jbig2_image.c +++ b/jbig2_image.c @@ -198,7 +198,7 @@ w = src->width; h = src->height; ss = src->data; - /* FIXME: this isn't sufficient for the < 0 cases */ + if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } w = (x + w < dst->width) ? w : dst->width - x; @@ -209,6 +209,15 @@ w, h, x, y); #endif + /* check for zero clipping region */ + if ((w <= 0) || (h <= 0)) + { +#ifdef JBIG2_DEBUG + jbig2_error(ctx, JBIG2_SEVERITY_DEBUG, -1, "zero clipping region"); +#endif + return 0; + } + #if 0 /* special case complete/strip replacement */ /* disabled because it's only safe to do when the destination debian/patches/1001_ignore_python_test.patch0000664000000000000000000000033012055657036016231 0ustar --- a/test_jbig2dec.py +++ b/test_jbig2dec.py @@ -184,4 +184,4 @@ # run the defined tests if we're called as a script if __name__ == "__main__": result = suite.run() - sys.exit(not result) + sys.exit(0)