xref: /aosp_15_r20/external/pdfium/testing/resources/pixel/jpxdecode_without_smaskindata.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 48 128]
18  /Resources <<
19    /XObject <<
20      /ImGrayAlpha 5 0 R
21      /ImRGBAlpha 6 0 R
22      /ImCMYKAlpha 7 0 R
23    >>
24  >>
25>>
26endobj
27{{object 4 0}} <<
28  {{streamlen}}
29>>
30stream
31
32% 50% gray background rectangle
33q
34  0.5 0.5 0.5 rg
35  0 0 48 128 re
36  f
37Q
38
39% grayscale with ignored alpha
40q
41  32 0 0 32 8 88 cm
42  /ImGrayAlpha Do
43Q
44
45% RGB with ignored alpha
46q
47  32 0 0 32 8 48 cm
48  /ImRGBAlpha Do
49Q
50
51% CMYK with ignored alpha
52q
53  32 0 0 32 8 8 cm
54  /ImCMYKAlpha Do
55Q
56
57endstream
58endobj
59
60% grayscale with opacity, but the soft-mask information is not used.
61{{object 5 0}} <<
62  /Type /XObject
63  /Subtype /Image
64  /BitsPerComponent 8
65  /ColorSpace /DeviceGray
66  /Filter /JPXDecode
67  /Height 4
68  /Width 4
69  {{streamlen}}
70>>
71stream
72{{include ../gray-alpha.jp2}}
73endstream
74endobj
75
76% RGB with opacity, but the soft-mask information is not used.
77{{object 6 0}} <<
78  /Type /XObject
79  /Subtype /Image
80  /BitsPerComponent 8
81  /ColorSpace /DeviceRGB
82  /Filter /JPXDecode
83  /Height 4
84  /Width 4
85  {{streamlen}}
86>>
87stream
88{{include ../RGB-alpha.jp2}}
89endstream
90endobj
91
92% CMYK with opacity, but the soft-mask information is not used.
93{{object 7 0}} <<
94  /Type /XObject
95  /Subtype /Image
96  /BitsPerComponent 8
97  /ColorSpace /DeviceCMYK
98  /Filter /JPXDecode
99  /Height 4
100  /Width 4
101  {{streamlen}}
102>>
103stream
104{{include ../CMYK-alpha.jpf}}
105endstream
106endobj
107
108{{xref}}
109{{trailer}}
110{{startxref}}
111%%EOF
112