qt 6.5.1 original
33
tests/auto/gui/image/qimage/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#####################################################################
|
||||
## tst_qimage Test:
|
||||
#####################################################################
|
||||
|
||||
# Collect test data
|
||||
file(GLOB_RECURSE test_data_glob
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
images/*)
|
||||
list(APPEND test_data ${test_data_glob})
|
||||
|
||||
qt_internal_add_test(tst_qimage
|
||||
SOURCES
|
||||
tst_qimage.cpp
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::Gui
|
||||
Qt::GuiPrivate
|
||||
TESTDATA ${test_data}
|
||||
)
|
||||
|
||||
qt_internal_extend_target(tst_qimage CONDITION WIN32
|
||||
LIBRARIES
|
||||
gdi32
|
||||
user32
|
||||
)
|
||||
|
||||
qt_internal_extend_target(tst_qimage CONDITION APPLE
|
||||
LIBRARIES
|
||||
${FWCoreGraphics}
|
||||
)
|
BIN
tests/auto/gui/image/qimage/images/image.bmp
Normal file
After Width: | Height: | Size: 306 B |
BIN
tests/auto/gui/image/qimage/images/image.gif
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
tests/auto/gui/image/qimage/images/image.ico
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
tests/auto/gui/image/qimage/images/image.jpg
Normal file
After Width: | Height: | Size: 696 B |
8
tests/auto/gui/image/qimage/images/image.pbm
Normal file
@ -0,0 +1,8 @@
|
||||
P1
|
||||
16 6
|
||||
1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
|
||||
1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
|
||||
1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
|
||||
1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
|
||||
1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
|
||||
1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
|
10
tests/auto/gui/image/qimage/images/image.pgm
Normal file
@ -0,0 +1,10 @@
|
||||
P2
|
||||
24 7
|
||||
15
|
||||
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
||||
0 3 3 3 3 0 0 7 7 7 7 0 0 11 11 11 11 0 0 15 15 15 15 0
|
||||
0 3 0 0 0 0 0 7 0 0 0 0 0 11 0 0 0 0 0 15 0 0 15 0
|
||||
0 3 3 3 0 0 0 7 7 7 0 0 0 11 11 11 0 0 0 15 15 15 15 0
|
||||
0 3 0 0 0 0 0 7 0 0 0 0 0 11 0 0 0 0 0 15 0 0 0 0
|
||||
0 3 0 0 0 0 0 7 7 7 7 0 0 11 11 11 11 0 0 15 0 0 0 0
|
||||
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
BIN
tests/auto/gui/image/qimage/images/image.png
Normal file
After Width: | Height: | Size: 549 B |
7
tests/auto/gui/image/qimage/images/image.ppm
Normal file
@ -0,0 +1,7 @@
|
||||
P3
|
||||
4 4
|
||||
15
|
||||
0 0 0 0 0 0 0 0 0 15 0 15
|
||||
0 0 0 0 15 7 0 0 0 0 0 0
|
||||
0 0 0 0 0 0 0 15 7 0 0 0
|
||||
15 0 15 0 0 0 0 0 0 0 0 0
|
5
tests/auto/gui/image/qimage/images/image.xbm
Normal file
@ -0,0 +1,5 @@
|
||||
#define Cloverleaf_width 9
|
||||
#define Cloverleaf_height 9
|
||||
static unsigned char Cloverleaf_bits[] = {
|
||||
0xc6, 0x00, 0x29, 0x01, 0x29, 0x01, 0xfe, 0x00, 0x28, 0x00, 0xfe, 0x00,
|
||||
0x29, 0x01, 0x29, 0x01, 0xc6, 0x00, };
|
261
tests/auto/gui/image/qimage/images/image.xpm
Normal file
@ -0,0 +1,261 @@
|
||||
/* XPM */
|
||||
static char * foo_xpm[] = {
|
||||
"256 256 2 1",
|
||||
" c None",
|
||||
". c #E22626",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................",
|
||||
"................................................................................................................................................................................................................................................................"};
|
BIN
tests/auto/gui/image/qimage/images/jpeg_exif_QTBUG-45865.jpg
Normal file
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 910 B |
After Width: | Height: | Size: 910 B |
After Width: | Height: | Size: 964 B |
After Width: | Height: | Size: 910 B |
After Width: | Height: | Size: 910 B |
After Width: | Height: | Size: 910 B |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 995 B |
After Width: | Height: | Size: 912 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 987 B |
After Width: | Height: | Size: 991 B |
BIN
tests/auto/gui/image/qimage/images/jpeg_exif_utf8_comment.jpg
Normal file
After Width: | Height: | Size: 705 B |