Skip to content

Commit 54750f4

Browse files
committed
Tests/LibGfx: Add a JBIG2 file in random access organization
1 parent fd5406c commit 54750f4

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

Tests/LibGfx/TestImageDecoder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ TEST_CASE(test_jbig2_decode)
334334

335335
Array test_inputs = {
336336
TEST_INPUT("jbig2/bitmap.jbig2"sv),
337+
TEST_INPUT("jbig2/bitmap-randomaccess.jbig2"sv),
337338
TEST_INPUT("jbig2/bitmap-p32-eof.jbig2"sv),
338339
TEST_INPUT("jbig2/bitmap-initially-unknown-size.jbig2"sv),
339340
TEST_INPUT("jbig2/bitmap-composite-and-xnor.jbig2"sv),
324 Bytes
Binary file not shown.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"global_header": {
3+
"organization": "random_access",
4+
"number_of_pages": 1
5+
},
6+
"segments": [
7+
{
8+
"segment_number": 0,
9+
"type": "page_information",
10+
"page_association": 1,
11+
"data": {
12+
"page_width": 399,
13+
"page_height": 400,
14+
"flags": {
15+
"is_eventually_lossless": true
16+
}
17+
}
18+
},
19+
{
20+
"segment_number": 1,
21+
"type": "lossless_generic_region",
22+
"page_association": 1,
23+
"data": {
24+
"image_data": {
25+
"from_file": "bitmap.bmp"
26+
}
27+
}
28+
},
29+
{
30+
"segment_number": 2,
31+
"type": "end_of_page",
32+
"page_association": 1
33+
},
34+
{
35+
"segment_number": 3,
36+
"type": "end_of_file",
37+
"page_association": 0
38+
}
39+
]
40+
}

0 commit comments

Comments
 (0)