~ubuntu-branches/ubuntu/vivid/ghostscript/vivid-updates

« back to all changes in this revision

Viewing changes to openjpeg/libopenjpeg/raw.h

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2014-05-02 15:48:44 UTC
  • mfrom: (1.1.43)
  • Revision ID: package-import@ubuntu.com-20140502154844-c401rxx0cce8gm0q
Tags: 9.14~dfsg-0ubuntu1
* New upstream release
   - Ghostscript 9.14
   - pdfwrite now uses the same color management engine as Ghostscript
     rendering devices (by default LCMS2). This provides much better
     control over color conversion and color management generally, but
     will result in some small color differences when compared to the
     old system.
     It is no longer necessary to specify UseCIEColor (and we very much
     encourage you not to do this) or the ProcessColorModel if you want
     to convert a PDF file to a specific color space, simply set the
     ColorConversionStrategy appropriately.
     We do not expect any major problems to arise with this new code,
     but for the duration of this release a new switch -dPDFUseOldCMS
     is available which will restore the old color management. See:
     Color Conversion and Management
     Please note that due to constraints of the PDF/A-1 specification,
     the new color management does not yet apply when producing PDF/A
     files.
   - A new device 'eps2write' has been added which allows for the
     creation of EPS files using the ps2write device instead of the old
     (deprecated and removed) pswrite device. This produces
     considerably better quality EPS files than the old epswrite device
     which is now also deprecated and will be removed in a future
     release.
   - ps2write now has a feature to allow customisation of the output
     for specific devices. Please see PSDocOptions and PSPageOptions
     described in ps2ps2.htm Additional Distiller Params
   - Ghostscript now reduces memory usage when processing PDF files
     that use transparency and output is to display devices such as
     Windows display or x11 (i.e. devices that are strictly full
     framebuffer devices), and to high level vector devices that cannot
     reproduce the PDF transparency model, such as the ps2write device
     or pdfwrite when 'flattening' to PDF 1.3 or earlier
     (-dCompatibilityLevel=1.3). This uses banding (clist) files to
     render the transparent areas in bands to reduce memory use, and
     unlike the existing page level banding, this is hidden from the
     target device.
   - Ghostscript can now collect information for pages in temp files
     (in Ghostscript's clist format), then render and output pages for
     the job in arbitrary order, including normal, reverse, odd, even,
     or any order or subset of the pages. This is controlled with the
     --saved-page=___ option. (Note that this only applies to rendering
     devices, and not high level devices such as pdfwrite and
     ps2write.) See: Deferred Page Rendering
   - The Ghostscript device architecture has been extended so that,
     when rendering bands into multiple threads, it is now possible to
     perform post-processing in multiple threads, such as downscale,
     post-render halftoning, or compression. Previously, post
     processing was only possible in the single main thread. This can
     improve performance significantly.
   - Ghostscript has a new "pwgraster" output device for PWG Raster
     output
   - The CUPS device now has improved support for PPD-less printing
   - Plus the usual round of bug fixes, compatibility changes, and
     incremental improvements.
* debian/patches/020140502-0ccf329-fix-fpng-device-build-handle-shared-zlib.patch:
  Fix fpng device build handle for shared zlib (Upstream bug #695113).
* debian/patches/020130903-5ae4180-ps-interpreter-dont-interpolate-imagemask-data-for-high-level-devices.patch,
  debian/patches/020131023-ad3e3ed-handle-type-0-font-in-annotation.patch,
  debian/patches/020131127-87a7fd8-cups-pwg-raster-output-ppd-less-support.patch,
  debian/patches/020131218-5ddd13e-ps2write-dont-emit-a-page-size-change-if-the-last-request-failed.patch,
  debian/patches/020131219-d997bc4-pwgraster-output-device.patch,
  debian/patches/020140313-095ae57-ps2write-fix-missing-beginresource-comment-for-fontfile-objects.patch,
  debian/patches/020140313-5d6b18a-set-correct-portrait-landscape-orientation-on-pcl-5ce.patch,
  debian/patches/020140313-6498483-ps2write-fix-a-dsc-comment.patch,
  debian/patches/020140428-f4584b0-skip-unsupported-font-files.patch:
  Removed patches backported from upstream.
* debian/patches/020140324-b780ff0-protection-against-pxl-segfault-with-image-data-without-colorspace-info.patch,
  debian/patches/020140331-4b44b41-pxlcolor-support-jpeg-in-output.patch,
  debian/patches/020140331-41ab485-pxl-transform-deep-images-with-icc-transform-to-emit-high-level-images.patch,
  debian/patches/1002_pxl-make-dicctransform-default.patch: Refreshed with
  quilt.
* debian/symbols.common: Updated for new upstream source. Applied patch
  which dpkg-gensymbols generated for debian/libgs9.symbols to this file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
*/
46
46
typedef struct opj_raw {
47
47
        /** temporary buffer where bits are coded or decoded */
48
 
        unsigned char c;
 
48
        OPJ_BYTE c;
49
49
        /** number of bits already read or free to write */
50
 
        unsigned int ct;
 
50
        OPJ_UINT32 ct;
51
51
        /** maximum length to decode */
52
 
        unsigned int lenmax;
 
52
        OPJ_UINT32 lenmax;
53
53
        /** length decoded */
54
 
        unsigned int len;
 
54
        OPJ_UINT32 len;
55
55
        /** pointer to the current position in the buffer */
56
 
        unsigned char *bp;
 
56
        OPJ_BYTE *bp;
57
57
        /** pointer to the start of the buffer */
58
 
        unsigned char *start;
 
58
        OPJ_BYTE *start;
59
59
        /** pointer to the end of the buffer */
60
 
        unsigned char *end;
 
60
        OPJ_BYTE *end;
61
61
} opj_raw_t;
62
62
 
63
63
/** @name Exported functions */
67
67
Create a new RAW handle 
68
68
@return Returns a new RAW handle if successful, returns NULL otherwise
69
69
*/
70
 
opj_raw_t* raw_create(void);
 
70
opj_raw_t* opj_raw_create(void);
71
71
/**
72
72
Destroy a previously created RAW handle
73
73
@param raw RAW handle to destroy
74
74
*/
75
 
void raw_destroy(opj_raw_t *raw);
 
75
void opj_raw_destroy(opj_raw_t *raw);
76
76
/**
77
77
Return the number of bytes written/read since initialisation
78
78
@param raw RAW handle to destroy
79
79
@return Returns the number of bytes already encoded
80
80
*/
81
 
int raw_numbytes(opj_raw_t *raw);
 
81
OPJ_UINT32 opj_raw_numbytes(opj_raw_t *raw);
82
82
/**
83
83
Initialize the decoder
84
84
@param raw RAW handle
85
85
@param bp Pointer to the start of the buffer from which the bytes will be read
86
86
@param len Length of the input buffer
87
87
*/
88
 
void raw_init_dec(opj_raw_t *raw, unsigned char *bp, int len);
 
88
void opj_raw_init_dec(opj_raw_t *raw, OPJ_BYTE *bp, OPJ_UINT32 len);
89
89
/**
90
90
Decode a symbol using raw-decoder. Cfr p.506 TAUBMAN
91
91
@param raw RAW handle
92
92
@return Returns the decoded symbol (0 or 1)
93
93
*/
94
 
int raw_decode(opj_raw_t *raw);
 
94
OPJ_UINT32 opj_raw_decode(opj_raw_t *raw);
95
95
/* ----------------------------------------------------------------------- */
96
96
/*@}*/
97
97