~ubuntu-branches/ubuntu/raring/hplip/raring

« back to all changes in this revision

Viewing changes to prnt/hpijs/hpcupsfax.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-12-14 20:08:44 UTC
  • mfrom: (2.1.118 lucid)
  • Revision ID: james.westby@ubuntu.com-20091214200844-z8qhqwgppbu3t7ze
Tags: 3.9.10-4
KBSD patch from KiBi (Closes: #560796)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************\
 
2
    hpcupsfax.h : HP Cups Fax Filter
 
3
 
 
4
    Copyright (c) 2001 - 2002, Hewlett-Packard Co.
 
5
    All rights reserved.
 
6
 
 
7
    Redistribution and use in source and binary forms, with or without
 
8
    modification, are permitted provided that the following conditions
 
9
    are met:
 
10
    1. Redistributions of source code must retain the above copyright
 
11
       notice, this list of conditions and the following disclaimer.
 
12
    2. Redistributions in binary form must reproduce the above copyright
 
13
       notice, this list of conditions and the following disclaimer in the
 
14
       documentation and/or other materials provided with the distribution.
 
15
    3. Neither the name of the Hewlett-Packard nor the names of its
 
16
       contributors may be used to endorse or promote products derived
 
17
       from this software without specific prior written permission.
 
18
 
 
19
    THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
 
20
    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 
21
    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 
22
    IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 
23
    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 
24
    NOT LIMITED TO, PATENT INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR
 
25
    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 
26
    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 
27
    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
 
28
    IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 
29
    POSSIBILITY OF SUCH DAMAGE.
 
30
\*****************************************************************************/
 
31
 
 
32
#ifndef HPCUPSFAX_H
 
33
#define HPCUPSFAX_H
 
34
 
 
35
/*
 
36
 * Raster data encoding methods
 
37
 */
 
38
 
 
39
#define RASTER_BITMAP      0
 
40
#define RASTER_GRAYMAP     1
 
41
#define RASTER_MH          2
 
42
#define RASTER_MR          3
 
43
#define RASTER_MMR         4
 
44
#define RASTER_RGB         5
 
45
#define RASTER_YCC411      6
 
46
#define RASTER_JPEG        7
 
47
#define RASTER_PCL         8
 
48
#define RASTER_NOT         9
 
49
#define RASTER_AUTO        99
 
50
 
 
51
#define HPLIPFAX_MONO   1
 
52
#define HPLIPFAX_COLOR  2
 
53
 
 
54
#define HPLIPPUTINT32(bytearr, val) \
 
55
                bytearr[0] = (val & 0xFF000000) >> 24; \
 
56
                bytearr[1] = (val & 0x00FF0000) >> 16; \
 
57
                bytearr[2] = (val & 0x0000FF00) >> 8;  \
 
58
                bytearr[3] = (val & 0x000000FF)
 
59
 
 
60
#define HPLIPPUTINT16(bytearr, val) \
 
61
                bytearr[0] = (val & 0x0000FF00) >> 8; \
 
62
                bytearr[1] = (val & 0x000000FF)
 
63
 
 
64
#endif        /* HPCUPSFAX_H */
 
65