mirror of
https://github.com/libjpeg-turbo/libjpeg-turbo.git
synced 2026-01-18 13:31:21 +01:00
TJUnitTest: Test top-down PPM/bottom-up BMP load
(oops)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C)2011-2018, 2022-2025 D. R. Commander. All Rights Reserved.
|
* Copyright (C)2011-2018, 2022-2026 D. R. Commander. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
@@ -1326,13 +1326,13 @@ final class TJUnitTest {
|
|||||||
|
|
||||||
System.out.format("%s Top-Down PPM (row alignment = %d samples) ... ",
|
System.out.format("%s Top-Down PPM (row alignment = %d samples) ... ",
|
||||||
PIXFORMATSTR[format], align);
|
PIXFORMATSTR[format], align);
|
||||||
doBmpTest("ppm", width, align, height, format, true);
|
doBmpTest("ppm", width, align, height, format, false);
|
||||||
System.out.println("OK.");
|
System.out.println("OK.");
|
||||||
|
|
||||||
if (precision == 8) {
|
if (precision == 8) {
|
||||||
System.out.format("%s Bottom-Up BMP (row alignment = %d samples) ... ",
|
System.out.format("%s Bottom-Up BMP (row alignment = %d samples) ... ",
|
||||||
PIXFORMATSTR[format], align);
|
PIXFORMATSTR[format], align);
|
||||||
doBmpTest("bmp", width, align, height, format, false);
|
doBmpTest("bmp", width, align, height, format, true);
|
||||||
System.out.println("OK.");
|
System.out.println("OK.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C)2009-2014, 2017-2019, 2022-2025 D. R. Commander.
|
* Copyright (C)2009-2014, 2017-2019, 2022-2026 D. R. Commander.
|
||||||
* All Rights Reserved.
|
* All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -1194,14 +1194,14 @@ static int bmpTest(void)
|
|||||||
|
|
||||||
printf("%s Top-Down PPM (row alignment = %d samples) ... ",
|
printf("%s Top-Down PPM (row alignment = %d samples) ... ",
|
||||||
pixFormatStr[format], align);
|
pixFormatStr[format], align);
|
||||||
if (doBmpTest("ppm", width, align, height, format, 1) == -1)
|
if (doBmpTest("ppm", width, align, height, format, 0) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
printf("OK.\n");
|
printf("OK.\n");
|
||||||
|
|
||||||
if (precision == 8) {
|
if (precision == 8) {
|
||||||
printf("%s Bottom-Up BMP (row alignment = %d samples) ... ",
|
printf("%s Bottom-Up BMP (row alignment = %d samples) ... ",
|
||||||
pixFormatStr[format], align);
|
pixFormatStr[format], align);
|
||||||
if (doBmpTest("bmp", width, align, height, format, 0) == -1)
|
if (doBmpTest("bmp", width, align, height, format, 1) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
printf("OK.\n");
|
printf("OK.\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user