xref: /aosp_15_r20/external/pdfium/testing/resources/pixel/jpxdecode_without_bitspercomponent.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5>>
6endobj
7{{object 2 0}} <<
8  /Type /Pages
9  /Count 1
10  /Kids [3 0 R]
11>>
12endobj
13{{object 3 0}} <<
14  /Type /Page
15  /Parent 2 0 R
16  /Contents 4 0 R
17  /MediaBox [0 0 88 128]
18  /Resources <<
19    /XObject <<
20      /ImGray 5 0 R
21      /ImGrayAlpha 6 0 R
22      /ImRGB 7 0 R
23      /ImRGBAlpha 8 0 R
24      /ImCMYK 9 0 R
25      /ImCMYKAlpha 10 0 R
26    >>
27  >>
28>>
29endobj
30{{object 4 0}} <<
31  {{streamlen}}
32>>
33stream
34
35% 50% gray background rectangle
36q
37  0.5 0.5 0.5 rg
38  0 0 88 128 re
39  f
40Q
41
42% grayscale, grayscale with alpha
43q
44  32 0 0 32 8 88 cm
45  /ImGray Do
46Q
47q
48  32 0 0 32 48 88 cm
49  /ImGrayAlpha Do
50Q
51
52% RGB, RGB with alpha
53q
54  32 0 0 32 8 48 cm
55  /ImRGB Do
56Q
57q
58  32 0 0 32 48 48 cm
59  /ImRGBAlpha Do
60Q
61
62% CMYK, CMYK with alpha
63q
64  32 0 0 32 8 8 cm
65  /ImCMYK Do
66Q
67q
68  32 0 0 32 48 8 cm
69  /ImCMYKAlpha Do
70Q
71
72endstream
73endobj
74
75% grayscale
76{{object 5 0}} <<
77  /Type /XObject
78  /Subtype /Image
79  /ColorSpace /DeviceGray
80  /Filter /JPXDecode
81  /Height 4
82  /Width 4
83  {{streamlen}}
84>>
85stream
86{{include ../gray.jp2}}
87endstream
88endobj
89
90% grayscale with opacity
91{{object 6 0}} <<
92  /Type /XObject
93  /Subtype /Image
94  /ColorSpace /DeviceGray
95  /Filter /JPXDecode
96  /Height 4
97  /SMaskInData 1
98  /Width 4
99  {{streamlen}}
100>>
101stream
102{{include ../gray-alpha.jp2}}
103endstream
104endobj
105
106% RGB
107{{object 7 0}} <<
108  /Type /XObject
109  /Subtype /Image
110  /ColorSpace /DeviceRGB
111  /Filter /JPXDecode
112  /Height 4
113  /Width 4
114  {{streamlen}}
115>>
116stream
117{{include ../RGB.jp2}}
118endstream
119endobj
120
121% RGB with opacity
122{{object 8 0}} <<
123  /Type /XObject
124  /Subtype /Image
125  /ColorSpace /DeviceRGB
126  /Filter /JPXDecode
127  /Height 4
128  /SMaskInData 1
129  /Width 4
130  {{streamlen}}
131>>
132stream
133{{include ../RGB-alpha.jp2}}
134endstream
135endobj
136
137% CMYK
138{{object 9 0}} <<
139  /Type /XObject
140  /Subtype /Image
141  /ColorSpace /DeviceCMYK
142  /Filter /JPXDecode
143  /Height 4
144  /Width 4
145  {{streamlen}}
146>>
147stream
148{{include ../CMYK.jpf}}
149endstream
150endobj
151
152% CMYK with opacity.
153{{object 10 0}} <<
154  /Type /XObject
155  /Subtype /Image
156  /ColorSpace /DeviceCMYK
157  /Filter /JPXDecode
158  /Height 4
159  /SMaskInData 1
160  /Width 4
161  {{streamlen}}
162>>
163stream
164{{include ../CMYK-alpha.jpf}}
165endstream
166endobj
167
168{{xref}}
169{{trailer}}
170{{startxref}}
171%%EOF
172