xref: /aosp_15_r20/external/pdfium/testing/resources/pixel/bug_1976.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 96 96]
18  /Resources <<
19    /XObject <<
20      /X0 5 0 R
21    >>
22  >>
23>>
24endobj
25
26% Green and red checkerboard. When scaled down, the green and red should blend
27% together into a darker yellow.
28{{object 4 0}} <<
29  {{streamlen}}
30>>
31stream
32q
33  % Solid green square.
34  0 1 0 rg
35  16 16 64 64 re f
36Q
37q
38  % Transparent and red checkerboard.
39  64 0 0 64 16 16 cm
40  /X0 Do
41Q
42endstream
43endobj
44
45% Single pixel image with /SMask to trigger masked image rendering.
46{{object 5 0}} <<
47  /Type /XObject
48  /Subtype /Image
49  /BitsPerComponent 8
50  /ColorSpace /DeviceRGB
51  /Filter /ASCIIHexDecode
52  /Height 1
53  /SMask 6 0 R
54  /Width 1
55  {{streamlen}}
56>>
57stream
58FF 00 00
59endstream
60endobj
61
62% Grayscale checkerboard to trigger 8-bit to 8-bit scaling. Scaling down by a
63% multiple of 2 using nearest neighbor gives particularly bad results.
64{{object 6 0}} <<
65  /Type /XObject
66  /Subtype /Image
67  /BitsPerComponent 8
68  /ColorSpace /DeviceGray
69  /Filter [/ASCII85Decode /FlateDecode]
70  /Height 128
71  /Width 128
72  {{streamlen}}
73>>
74stream
75GhVQ20b"*_#f&.lRiX?CBI7,$dqQl"iofLfkND$kkND$kkND$kkND$kkND$kkND$kkND$kkND$kkND$k
76kND$kkND$kkND$kkND$kkND$kkN@?Q?he3kdJ~>
77endstream
78endobj
79
80{{xref}}
81{{trailer}}
82{{startxref}}
83%%EOF
84