xref: /aosp_15_r20/external/pdfium/testing/resources/pixel/bug_1396266.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
14% A page with scaled copies of a masked image. Any scaled image with an area
15% less than 8 times the stencil mask's original area (64x64 * 8 = 32,768) forces
16% bilinear interpolation of the stencil mask, which triggers the bug.
17{{object 3 0}} <<
18  /Type /Page
19  /Parent 2 0 R
20  /Contents 4 0 R
21  /MediaBox [0 0 432 288]
22  /Resources <<
23    /XObject <<
24      /Masked 5 0 R
25    >>
26  >>
27>>
28endobj
29{{object 4 0}} <<
30  {{streamlen}}
31>>
32stream
33
34% 32x32 image has an area of 1,024, so it is interpolated.
35q
36  32 0 0 32 64 240 cm
37  /Masked Do
38Q
39
40% 64x64 image has an area of 4,096, so it is interpolated.
41q
42  64 0 0 64 48 160 cm
43  /Masked Do
44Q
45
46% 128x128 image has an area of 16,384, so it is interpolated.
47q
48  128 0 0 128 16 16 cm
49  /Masked Do
50Q
51
52% 256x256 image has an area of 65,536, so it is not interpolated.
53q
54  256 0 0 256 160 16 cm
55  /Masked Do
56Q
57
58endstream
59endobj
60
61% A 3x3 base image with a stencil mask.
62{{object 5 0}} <<
63  /Subtype /Image
64  /BitsPerComponent 8
65  /ColorSpace /DeviceRGB
66  /Filter /ASCIIHexDecode
67  /Height 3
68  /Mask 6 0 R
69  /Width 3
70  {{streamlen}}
71>>
72stream
73B8C3E9 7793DB C3CEEF
748CADF2 1B74E8 BFD5FB
75C2D3FA 9FBDF8 D9E5FC
76endstream
77endobj
78
79% A 64x64 stencil mask with horizontal and vertical lines.
80{{object 6 0}} <<
81  /Subtype /Image
82  /BitsPerComponent 1
83  /Filter [/ASCIIHexDecode /FlateDecode]
84  /Height 64
85  /ImageMask true
86  /Width 64
87  {{streamlen}}
88>>
89stream
9078DA63608080FAFF10E000E5C3687FA8388CF6818A63D0500330E802A83C41BA1EAA9E105D03554F
9136CD0C35876CFA0FD41CDAD3F2FF694D03002512CA0A
92endstream
93endobj
94
95{{xref}}
96{{trailer}}
97{{startxref}}
98%%EOF
99