~ubuntu-branches/ubuntu/warty/xmedcon/warty

« back to all changes in this revision

Viewing changes to libs/ljpg/jpegless.h

  • Committer: Bazaar Package Importer
  • Author(s): Roland Marcus Rutschmann
  • Date: 2004-06-07 09:00:14 UTC
  • Revision ID: james.westby@ubuntu.com-20040607090014-t39n52qc9zjqqqkh
Tags: upstream-0.9.6
ImportĀ upstreamĀ versionĀ 0.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * JPEGLess.h
 
3
 *
 
4
 * ---------------------------------------------------------------
 
5
 *
 
6
 * Lossless JPEG compression and decompression algorithms.
 
7
 *
 
8
 * ---------------------------------------------------------------
 
9
 *
 
10
 * It is based on the program originally named ljpgtopnm and pnmtoljpg.
 
11
 * Major portions taken from the Independetn JPEG Group' software, and
 
12
 * from the Cornell lossless JPEG code (the original copyright notices
 
13
 * for those packages appears below).
 
14
 *
 
15
 * ---------------------------------------------------------------
 
16
 *
 
17
 * This is the main routine for the lossless JPEG decoder.  Large
 
18
 * parts are stolen from the IJG code
 
19
 */
 
20
/*
 
21
 * $Id: jpegless.h,v 1.1 2002/10/14 21:56:02 enlf Exp $
 
22
 */
 
23
#include "jpeg.h"
 
24
 
 
25
#ifndef _JPEGLOSSLESS_
 
26
#define _JPEGLOSSLESS_
 
27
 
 
28
#if defined(__cplusplus)
 
29
extern "C"
 
30
{
 
31
#endif
 
32
 
 
33
 
 
34
 
 
35
/* Global variables for lossless encoding process */
 
36
 
 
37
int psvSet[7];        /* the PSV (prediction selection value) set    */
 
38
int numSelValue;      /* number of PSVs in psvSet                    */
 
39
long inputFileBytes;  /* the input file size in bytes                */
 
40
long outputFileBytes; /* the output file size in bytes               */
 
41
long totalHuffSym[7]; /* total bits of category symbols for each PSV */
 
42
long totalAddBits[7]; /* total bits of additional bits for each PSV  */
 
43
int  verbose;         /* the verbose flag                            */
 
44
 
 
45
 
 
46
/*
 
47
 * read a JPEG lossless (8 or 16 bit) image in a file and decode it
 
48
 */
 
49
short JPEGLosslessDecodeImage (StreamIN, unsigned short *, int , int);
 
50
 
 
51
 
 
52
#if defined(__cplusplus)
 
53
}
 
54
#endif
 
55
 
 
56
#endif /* _JPEGLOSSLESS_ */
 
57