/src/ghostpdl/jpegxr/x_strip.c
Line | Count | Source |
1 | | |
2 | | /************************************************************************* |
3 | | * |
4 | | * This software module was originally contributed by Microsoft |
5 | | * Corporation in the course of development of the |
6 | | * ITU-T T.832 | ISO/IEC 29199-2 ("JPEG XR") format standard for |
7 | | * reference purposes and its performance may not have been optimized. |
8 | | * |
9 | | * This software module is an implementation of one or more |
10 | | * tools as specified by the JPEG XR standard. |
11 | | * |
12 | | * ITU/ISO/IEC give You a royalty-free, worldwide, non-exclusive |
13 | | * copyright license to copy, distribute, and make derivative works |
14 | | * of this software module or modifications thereof for use in |
15 | | * products claiming conformance to the JPEG XR standard as |
16 | | * specified by ITU-T T.832 | ISO/IEC 29199-2. |
17 | | * |
18 | | * ITU/ISO/IEC give users the same free license to this software |
19 | | * module or modifications thereof for research purposes and further |
20 | | * ITU/ISO/IEC standardization. |
21 | | * |
22 | | * Those intending to use this software module in products are advised |
23 | | * that its use may infringe existing patents. ITU/ISO/IEC have no |
24 | | * liability for use of this software module or modifications thereof. |
25 | | * |
26 | | * Copyright is not released for products that do not conform to |
27 | | * to the JPEG XR standard as specified by ITU-T T.832 | |
28 | | * ISO/IEC 29199-2. |
29 | | * |
30 | | * Microsoft Corporation retains full right to modify and use the code |
31 | | * for its own purpose, to assign or donate the code to a third party, |
32 | | * and to inhibit third parties from using the code for products that |
33 | | * do not conform to the JPEG XR standard as specified by ITU-T T.832 | |
34 | | * ISO/IEC 29199-2. |
35 | | * |
36 | | * This copyright notice must be included in all copies or derivative |
37 | | * works. |
38 | | * |
39 | | * Copyright (c) ITU-T/ISO/IEC 2008, 2009. |
40 | | ***********************************************************************/ |
41 | | |
42 | | #ifdef _MSC_VER |
43 | | #pragma comment (user,"$Id: x_strip.c,v 1.4 2008/03/05 06:58:10 gus Exp $") |
44 | | #else |
45 | | #ident "$Id: x_strip.c,v 1.4 2008/03/05 06:58:10 gus Exp $" |
46 | | #endif |
47 | | |
48 | | # include "jxr_priv.h" |
49 | | # include <assert.h> |
50 | | |
51 | | void _jxr_clear_strip_cur(jxr_image_t image) |
52 | 0 | { |
53 | 0 | int ch; |
54 | 0 | assert(image->num_channels > 0); |
55 | 0 | for (ch = 0 ; ch < image->num_channels ; ch += 1) { |
56 | 0 | unsigned idx; |
57 | 0 | for (idx = 0 ; idx < EXTENDED_WIDTH_BLOCKS(image) ; idx += 1) { |
58 | 0 | int jdx; |
59 | 0 | for (jdx = 0 ; jdx < 256 ; jdx += 1) |
60 | 0 | image->strip[ch].cur[idx].data[jdx] = 0; |
61 | 0 | } |
62 | 0 | } |
63 | 0 | } |
64 | | |
65 | | /* |
66 | | * $Log: x_strip.c,v $ |
67 | | * Revision 1.6 2009/05/29 12:00:00 microsoft |
68 | | * Reference Software v1.6 updates. |
69 | | * |
70 | | * Revision 1.5 2009/04/13 12:00:00 microsoft |
71 | | * Reference Software v1.5 updates. |
72 | | * |
73 | | * Revision 1.4 2008/03/05 06:58:10 gus |
74 | | * *** empty log message *** |
75 | | * |
76 | | * Revision 1.3 2008/02/26 23:52:45 steve |
77 | | * Remove ident for MS compilers. |
78 | | * |
79 | | * Revision 1.2 2007/11/26 01:47:16 steve |
80 | | * Add copyright notices per MS request. |
81 | | * |
82 | | * Revision 1.1 2007/11/12 23:21:55 steve |
83 | | * Infrastructure for frequency mode ordering. |
84 | | * |
85 | | */ |
86 | | |