Debian Codegraph @

tests/uncompressed_decode.h

raw
1 /*
2 libheif integration tests for uncompressed decoder
3
4 MIT License
5
6 Copyright (c) 2023 Brad Hards <[email protected]>
7
8 Permission is hereby granted, free of charge, to any person obtaining a copy
9 of this software and associated documentation files (the "Software"), to deal
10 in the Software without restriction, including without limitation the rights
11 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the Software is
13 furnished to do so, subject to the following conditions:
14
15 The above copyright notice and this permission notice shall be included in all
16 copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 SOFTWARE.
25 */
26
27 #define FILES_RGB \
28 "uncompressed_comp_ABGR.heif", "uncompressed_comp_ABGR.heif", \
29 "uncompressed_comp_RGB.heif", "uncompressed_comp_RGB_tiled.heif", \
30 "uncompressed_comp_RGB_tiled_row_tile_align.heif", \
31 "uncompressed_comp_RGxB.heif", "uncompressed_comp_RGxB_tiled.heif", \
32 "uncompressed_pix_ABGR.heif", "uncompressed_pix_ABGR_tiled.heif", \
33 "uncompressed_pix_RGB.heif", "uncompressed_pix_RGB_tiled.heif", \
34 "uncompressed_pix_RGB_tiled_row_tile_align.heif", \
35 "uncompressed_pix_RGxB.heif", "uncompressed_pix_RGxB_tiled.heif", \
36 "uncompressed_row_ABGR.heif", "uncompressed_row_ABGR_tiled.heif", \
37 "uncompressed_row_RGB.heif", "uncompressed_row_RGB_tiled.heif", \
38 "uncompressed_row_RGB_tiled_row_tile_align.heif", \
39 "uncompressed_row_RGxB.heif", "uncompressed_row_RGxB_tiled.heif", \
40 "uncompressed_tile_ABGR_tiled.heif", \
41 "uncompressed_tile_RGB_tiled.heif", \
42 "uncompressed_tile_RGB_tiled_row_tile_align.heif", \
43 "uncompressed_tile_RGxB_tiled.heif", \
44 "uncompressed_pix_R8G8B8A8_bsz0_psz10_tiled.heif", \
45 "uncompressed_pix_R8G8B8A8_bsz0_psz5_tiled.heif", \
46 "uncompressed_pix_R8G8B8_bsz0_psz10_tiled.heif", \
47 "uncompressed_pix_R8G8B8_bsz0_psz5_tiled.heif"
48
49 #if HAVE_BROTLI
50 #define BROTLI_FILES "rgb_generic_compressed_brotli.heif",
51 #else
52 #define BROTLI_FILES
53 #endif
54
55 #define FILES_GENERIC_COMPRESSED \
56 "rgb_generic_compressed_defl.heif", BROTLI_FILES \
57 "rgb_generic_compressed_tile_deflate.heif", "rgb_generic_compressed_zlib.heif", \
58 "rgb_generic_compressed_zlib_rows.heif", "rgb_generic_compressed_zlib_tiled.heif"
59
60 #define FILES_16BIT_RGB \
61 "uncompressed_comp_B16R16G16.heif", "uncompressed_comp_B16R16G16_tiled.heif", \
62 "uncompressed_pix_B16R16G16.heif", "uncompressed_pix_B16R16G16_tiled.heif", \
63 "uncompressed_row_B16R16G16.heif", "uncompressed_row_B16R16G16_tiled.heif", \
64 "uncompressed_tile_B16R16G16_tiled.heif"
65
66 #define FILES_7BIT_RGB \
67 "uncompressed_comp_R7+1G7+1B7+1_tiled.heif", "uncompressed_comp_R7G7B7_tiled.heif", \
68 "uncompressed_comp_R7G7+1B7_tiled.heif", \
69 "uncompressed_pix_R7+1G7+1B7+1_tiled.heif", "uncompressed_pix_R7G7B7_tiled.heif", \
70 "uncompressed_pix_R7G7+1B7_tiled.heif", \
71 "uncompressed_row_R7+1G7+1B7+1_tiled.heif", "uncompressed_row_R7G7B7_tiled.heif", \
72 "uncompressed_row_R7G7+1B7_tiled.heif", \
73 "uncompressed_tile_R7+1G7+1B7+1_tiled.heif", "uncompressed_tile_R7G7B7_tiled.heif", \
74 "uncompressed_tile_R7G7+1B7_tiled.heif"
75
76 #define FILES_565_RGB \
77 "uncompressed_comp_R5G6B5_tiled.heif", \
78 "uncompressed_pix_R5G6B5_tiled.heif", \
79 "uncompressed_row_R5G6B5_tiled.heif", \
80 "uncompressed_tile_R5G6B5_tiled.heif"
81
82 #define FILES FILES_RGB, FILES_16BIT_RGB, FILES_7BIT_RGB, FILES_565_RGB
83
84 #define MONO_FILES \
85 "uncompressed_comp_M.heif", "uncompressed_comp_M_tiled.heif", \
86 "uncompressed_pix_M.heif", "uncompressed_pix_M_tiled.heif", \
87 "uncompressed_row_M.heif", "uncompressed_row_M_tiled.heif", \
88 "uncompressed_tile_M_tiled.heif"
89
90 #define YUV_422_FILES \
91 "uncompressed_comp_VUY_422.heif", "uncompressed_comp_YUV_422.heif", "uncompressed_comp_YVU_422.heif", \
92 "uncompressed_mix_VUY_422.heif", "uncompressed_mix_YUV_422.heif", "uncompressed_mix_YVU_422.heif"
93
94 #define YUV_16BIT_422_FILES \
95 "uncompressed_comp_Y16U16V16_422.heif", "uncompressed_mix_Y16U16V16_422.heif"
96
97 #define YUV_420_FILES \
98 "uncompressed_comp_VUY_420.heif", "uncompressed_comp_YUV_420.heif", "uncompressed_comp_YVU_420.heif", \
99 "uncompressed_mix_VUY_420.heif", "uncompressed_mix_YUV_420.heif", "uncompressed_mix_YVU_420.heif"
100
101 #define YUV_16BIT_420_FILES \
102 "uncompressed_comp_Y16U16V16_420.heif", "uncompressed_mix_Y16U16V16_420.heif"
103
104 #define YUV_FILES \
105 "uncompressed_comp_YUV_tiled.heif", \
106 "uncompressed_pix_YUV_tiled.heif", \
107 "uncompressed_row_YUV_tiled.heif", \
108 "uncompressed_tile_YUV_tiled.heif"
109
110 #define ALL_YUV_FILES \
111 YUV_422_FILES, YUV_420_FILES, YUV_16BIT_422_FILES, YUV_16BIT_420_FILES, YUV_FILES
112
113 #if 0
114 \
115 "uncompressed_comp_p.heif", \
116 "uncompressed_comp_p_tiled.heif", \
117 "uncompressed_pix_p.heif", \
118 "uncompressed_pix_p_tiled.heif", \
119 "uncompressed_row_p.heif", \
120 "uncompressed_row_p_tiled.heif", \
121 "uncompressed_tile_p_tiled.heif"
122
123 #endif