Add another indexed jpeg2000 test

This one has a palette in the jpeg2000 data too. See comment 10 on the
linked bug for how it was generated.

I used

testing/tools/encode_pdf_filter.py ../../hack/palette.jp2 jp2.txt

to convert it to .in format, and then copied over
jpxdecode_indexed2_expected.pdf.0.png to create the test expectation.

Bug: 393395940
Change-Id: Ie7678b51c08e1c3b64566c084aa4ac41e227163e
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/128490
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@google.com>
diff --git a/testing/resources/pixel/jpxdecode_indexed2.in b/testing/resources/pixel/jpxdecode_indexed2.in
new file mode 100644
index 0000000..a82a5ca
--- /dev/null
+++ b/testing/resources/pixel/jpxdecode_indexed2.in
@@ -0,0 +1,56 @@
+{{header}}
+{{object 1 0}} <<
+  /Type /Catalog
+  /Pages 2 0 R
+>>
+endobj
+{{object 2 0}} <<
+  /Type /Pages
+  /Count 1
+  /Kids [3 0 R]
+>>
+endobj
+{{object 3 0}} <<
+  /Type /Page
+  /Parent 2 0 R
+  /Contents 4 0 R
+  /MediaBox [0 0 100 100]
+  /Resources <<
+    /XObject <<
+      /ImIndexed 5 0 R
+    >>
+  >>
+>>
+endobj
+{{object 4 0}} <<
+  {{streamlen}}
+>>
+stream
+q
+100 0 0 100 0 0 cm
+/ImIndexed Do
+Q
+endstream
+endobj
+{{object 5 0}} <<
+  /Type /XObject
+  /Subtype /Image
+  /BitsPerComponent 8
+  /ColorSpace [/Indexed /DeviceRGB 3 <FFFFFF FF0000 0000FF 00FF00>]
+  /Filter [/ASCII85Decode /FlateDecode /JPXDecode]
+  /Height 100
+  /Width 100
+  {{streamlen}}
+>>
+stream
+GhQY8@,T-6:f-*3C?K&6?k>m[W@Z+?0N%nV)5)'SONmjS@[S)_76im;N#C=%6#%83POijQ(r8lH+;QV$
+c7*41AnG[grso5T@1XTFS=<Wr^]79Q#UC7T5]!+(aoD>>#;TtE[AQ8E%&!//fbk\-#;P^uQjh1i/.@L;
+@i0G2*'?=b+R":^K.6tuF&?[]8SX,L;Petp6#)umJ?-:K=_^fRAq$>'Oe/PD_>afM>[RY<JL4()holYJ
+?K>j?9r2`5_kKkB%1EjjhLElO@-6N(W;GL7nRkL7s2R"*"jXgoIDY-g*7*^g7oVWbS$c*_/ao(b3W!;*
+^)l>m9sX9!gS6m/^,PS)6W7tt*.J^0b?G`?+/)*m;Y:-D%>M9G%gXlm3$5V:^rc)IlJA982Z\[$Ab?~>
+endstream
+endobj
+{{xref}}
+{{trailer}}
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/jpxdecode_indexed2_expected.pdf.0.png b/testing/resources/pixel/jpxdecode_indexed2_expected.pdf.0.png
new file mode 100644
index 0000000..1660af1
--- /dev/null
+++ b/testing/resources/pixel/jpxdecode_indexed2_expected.pdf.0.png
Binary files differ