summaryrefslogtreecommitdiff
path: root/gs/base/gxi16bit.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-19 23:49:56 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-19 23:49:56 +0200
commit781969994b5381ba4bed03beef217f9bde6e7c58 (patch)
treeaede27c7532f0fbe82f03dc0c04c9316be510fd5 /gs/base/gxi16bit.c
parent0b17959f31afe3baffbc328e7f92e88e634ad8b8 (diff)
Indent with spaces and strip trailing whitespace.
Diffstat (limited to 'gs/base/gxi16bit.c')
-rw-r--r--gs/base/gxi16bit.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/gs/base/gxi16bit.c b/gs/base/gxi16bit.c
index cc69386bb..2f7308e6b 100644
--- a/gs/base/gxi16bit.c
+++ b/gs/base/gxi16bit.c
@@ -1,6 +1,6 @@
/* Copyright (C) 2001-2006 Artifex Software, Inc.
All Rights Reserved.
-
+
This software is provided AS-IS with no warranty, either express or
implied.
@@ -35,8 +35,8 @@
static const byte *
sample_unpack_16(byte * bptr, int *pdata_x, const byte * data,
- int data_x, uint dsize, const sample_map *ignore_smap, int spread,
- int ignore_num_components_per_plane)
+ int data_x, uint dsize, const sample_map *ignore_smap, int spread,
+ int ignore_num_components_per_plane)
{
/* Assuming an identity map for all components. */
register frac *bufp = (frac *) bptr;
@@ -47,11 +47,11 @@ sample_unpack_16(byte * bptr, int *pdata_x, const byte * data,
int left = dsize - dskip;
while (left > 2) {
- sample = ((uint) psrc[0] << 8) + psrc[1];
- *bufp = (frac)((frac_1 * (sample + 1)) >> 16);
- inc_bufp(bufp, spread);
- psrc += 2;
- left -= 2;
+ sample = ((uint) psrc[0] << 8) + psrc[1];
+ *bufp = (frac)((frac_1 * (sample + 1)) >> 16);
+ inc_bufp(bufp, spread);
+ psrc += 2;
+ left -= 2;
}
*pdata_x = 0;
return bptr;
@@ -59,8 +59,8 @@ sample_unpack_16(byte * bptr, int *pdata_x, const byte * data,
static const byte *
sample_unpackicc_16(byte * bptr, int *pdata_x, const byte * data,
- int data_x, uint dsize, const sample_map *ignore_smap, int spread,
- int ignore_num_components_per_plane)
+ int data_x, uint dsize, const sample_map *ignore_smap, int spread,
+ int ignore_num_components_per_plane)
{
/* Assuming an identity map for all components. */
register unsigned short *bufp = (unsigned short *) bptr;
@@ -71,11 +71,11 @@ sample_unpackicc_16(byte * bptr, int *pdata_x, const byte * data,
int left = dsize - dskip;
while (left >= 2) {
- sample = ((uint) psrc[0] << 8) + psrc[1];
- *bufp = (unsigned short)(sample);
- inc_bufp16(bufp, spread);
- psrc += 2;
- left -= 2;
+ sample = ((uint) psrc[0] << 8) + psrc[1];
+ *bufp = (unsigned short)(sample);
+ inc_bufp16(bufp, spread);
+ psrc += 2;
+ left -= 2;
}
*pdata_x = 0;
return bptr;