/src/libjxl/lib/jxl/base/status.h
Line | Count | Source |
1 | | // Copyright (c) the JPEG XL Project Authors. All rights reserved. |
2 | | // |
3 | | // Use of this source code is governed by a BSD-style |
4 | | // license that can be found in the LICENSE file. |
5 | | |
6 | | #ifndef LIB_JXL_BASE_STATUS_H_ |
7 | | #define LIB_JXL_BASE_STATUS_H_ |
8 | | |
9 | | // Error handling: Status return type + helper macros. |
10 | | |
11 | | #include <cstdarg> |
12 | | #include <cstdint> |
13 | | #include <cstdio> |
14 | | #include <cstdlib> |
15 | | #include <type_traits> |
16 | | #include <utility> |
17 | | |
18 | | #include "lib/jxl/base/common.h" |
19 | | #include "lib/jxl/base/compiler_specific.h" |
20 | | |
21 | | namespace jxl { |
22 | | |
23 | | // The Verbose level for the library |
24 | | #ifndef JXL_DEBUG_V_LEVEL |
25 | 47.8k | #define JXL_DEBUG_V_LEVEL 0 |
26 | | #endif // JXL_DEBUG_V_LEVEL |
27 | | |
28 | | #ifdef USE_ANDROID_LOGGER |
29 | | #include <android/log.h> |
30 | | #define LIBJXL_ANDROID_LOG_TAG ("libjxl") |
31 | | inline void android_vprintf(const char* format, va_list args) { |
32 | | char* message = nullptr; |
33 | | int res = vasprintf(&message, format, args); |
34 | | if (res != -1) { |
35 | | __android_log_write(ANDROID_LOG_DEBUG, LIBJXL_ANDROID_LOG_TAG, message); |
36 | | free(message); |
37 | | } |
38 | | } |
39 | | #endif |
40 | | |
41 | | // Print a debug message on standard error or android logs. You should use the |
42 | | // JXL_DEBUG macro instead of calling Debug directly. This function returns |
43 | | // false, so it can be used as a return value in JXL_FAILURE. |
44 | | JXL_FORMAT(1, 2) |
45 | 0 | inline JXL_NOINLINE bool Debug(const char* format, ...) { |
46 | 0 | va_list args; |
47 | 0 | va_start(args, format); |
48 | | #ifdef USE_ANDROID_LOGGER |
49 | | android_vprintf(format, args); |
50 | | #else |
51 | 0 | vfprintf(stderr, format, args); |
52 | 0 | #endif |
53 | 0 | va_end(args); |
54 | 0 | return false; |
55 | 0 | } |
56 | | |
57 | | // Print a debug message on standard error if "enabled" is true. "enabled" is |
58 | | // normally a macro that evaluates to 0 or 1 at compile time, so the Debug |
59 | | // function is never called and optimized out in release builds. Note that the |
60 | | // arguments are compiled but not evaluated when enabled is false. The format |
61 | | // string must be a explicit string in the call, for example: |
62 | | // JXL_DEBUG(JXL_DEBUG_MYMODULE, "my module message: %d", some_var); |
63 | | // Add a header at the top of your module's .cc or .h file (depending on whether |
64 | | // you have JXL_DEBUG calls from the .h as well) like this: |
65 | | // #ifndef JXL_DEBUG_MYMODULE |
66 | | // #define JXL_DEBUG_MYMODULE 0 |
67 | | // #endif JXL_DEBUG_MYMODULE |
68 | | #define JXL_DEBUG_TMP(format, ...) \ |
69 | 0 | ::jxl::Debug(("%s:%d: " format "\n"), __FILE__, __LINE__, ##__VA_ARGS__) |
70 | | |
71 | | #define JXL_DEBUG(enabled, format, ...) \ |
72 | 39.5k | do { \ |
73 | 39.5k | if (enabled) { \ |
74 | 0 | JXL_DEBUG_TMP(format, ##__VA_ARGS__); \ |
75 | 0 | } \ |
76 | 39.5k | } while (0) |
77 | | |
78 | | // JXL_DEBUG version that prints the debug message if the global verbose level |
79 | | // defined at compile time by JXL_DEBUG_V_LEVEL is greater or equal than the |
80 | | // passed level. |
81 | | #if JXL_DEBUG_V_LEVEL > 0 |
82 | | #define JXL_DEBUG_V(level, format, ...) \ |
83 | | JXL_DEBUG(level <= JXL_DEBUG_V_LEVEL, format, ##__VA_ARGS__) |
84 | | #else |
85 | | #define JXL_DEBUG_V(level, format, ...) |
86 | | #endif |
87 | | |
88 | | #define JXL_WARNING(format, ...) \ |
89 | 39.5k | JXL_DEBUG(JXL_IS_DEBUG_BUILD, format, ##__VA_ARGS__) |
90 | | |
91 | | #if JXL_IS_DEBUG_BUILD |
92 | | // Exits the program after printing a stack trace when possible. |
93 | | JXL_NORETURN inline JXL_NOINLINE bool Abort() { |
94 | | JXL_PRINT_STACK_TRACE(); |
95 | | JXL_CRASH(); |
96 | | } |
97 | | #endif |
98 | | |
99 | | #if JXL_IS_DEBUG_BUILD |
100 | | #define JXL_DEBUG_ABORT(format, ...) \ |
101 | | do { \ |
102 | | if (JXL_DEBUG_ON_ABORT) { \ |
103 | | ::jxl::Debug(("%s:%d: JXL_DEBUG_ABORT: " format "\n"), __FILE__, \ |
104 | | __LINE__, ##__VA_ARGS__); \ |
105 | | } \ |
106 | | ::jxl::Abort(); \ |
107 | | } while (0); |
108 | | #else |
109 | | #define JXL_DEBUG_ABORT(format, ...) |
110 | | #endif |
111 | | |
112 | | // Use this for code paths that are unreachable unless the code would change |
113 | | // to make it reachable, in which case it will print a warning and abort in |
114 | | // debug builds. In release builds no code is produced for this, so only use |
115 | | // this if this path is really unreachable. |
116 | | #if JXL_IS_DEBUG_BUILD |
117 | | #define JXL_UNREACHABLE(format, ...) \ |
118 | | (::jxl::Debug(("%s:%d: JXL_UNREACHABLE: " format "\n"), __FILE__, __LINE__, \ |
119 | | ##__VA_ARGS__), \ |
120 | | ::jxl::Abort(), JXL_FAILURE(format, ##__VA_ARGS__)) |
121 | | #else // JXL_IS_DEBUG_BUILD |
122 | | #define JXL_UNREACHABLE(format, ...) \ |
123 | 0 | JXL_FAILURE("internal: " format, ##__VA_ARGS__) |
124 | | #endif |
125 | | |
126 | | // Only runs in debug builds (builds where NDEBUG is not |
127 | | // defined). This is useful for slower asserts that we want to run more rarely |
128 | | // than usual. These will run on asan, msan and other debug builds, but not in |
129 | | // opt or release. |
130 | | #if JXL_IS_DEBUG_BUILD |
131 | | #define JXL_DASSERT(condition) \ |
132 | | do { \ |
133 | | if (!(condition)) { \ |
134 | | JXL_DEBUG(JXL_DEBUG_ON_ABORT, "JXL_DASSERT: %s", #condition); \ |
135 | | ::jxl::Abort(); \ |
136 | | } \ |
137 | | } while (0) |
138 | | #else |
139 | | #define JXL_DASSERT(condition) |
140 | | #endif |
141 | | |
142 | | // A jxl::Status value from a StatusCode or Status which prints a debug message |
143 | | // when enabled. |
144 | | #define JXL_STATUS(status, format, ...) \ |
145 | 110k | ::jxl::StatusMessage(::jxl::Status(status), "%s:%d: " format "\n", __FILE__, \ |
146 | 110k | __LINE__, ##__VA_ARGS__) |
147 | | |
148 | | // Notify of an error but discard the resulting Status value. This is only |
149 | | // useful for debug builds or when building with JXL_CRASH_ON_ERROR. |
150 | | #define JXL_NOTIFY_ERROR(format, ...) \ |
151 | 0 | (void)JXL_STATUS(::jxl::StatusCode::kGenericError, "JXL_ERROR: " format, \ |
152 | 0 | ##__VA_ARGS__) |
153 | | |
154 | | // An error Status with a message. The JXL_STATUS() macro will return a Status |
155 | | // object with a kGenericError/kUnsupported/kNotEnoughBytes code, but the comma |
156 | | // operator helps with clang-tidy inference and potentially with optimizations. |
157 | | #define JXL_FAILURE(format, ...) \ |
158 | 23.2k | ((void)JXL_STATUS(::jxl::StatusCode::kGenericError, "JXL_FAILURE: " format, \ |
159 | 23.2k | ##__VA_ARGS__), \ |
160 | 23.2k | ::jxl::Status(::jxl::StatusCode::kGenericError)) |
161 | | #define JXL_UNSUPPORTED(format, ...) \ |
162 | 0 | ((void)JXL_STATUS(::jxl::StatusCode::kUnsupported, \ |
163 | 0 | "JXL_UNSUPPORTED: " format, ##__VA_ARGS__), \ |
164 | 0 | ::jxl::Status(::jxl::StatusCode::kUnsupported)) |
165 | | #define JXL_NOT_ENOUGH_BYTES(format, ...) \ |
166 | 87.5k | ((void)JXL_STATUS(::jxl::StatusCode::kNotEnoughBytes, \ |
167 | 87.5k | "JXL_NOT_ENOUGH_BYTES: " format, ##__VA_ARGS__), \ |
168 | 87.5k | ::jxl::Status(::jxl::StatusCode::kNotEnoughBytes)) |
169 | | |
170 | | // Always evaluates the status exactly once, so can be used for non-debug calls. |
171 | | // Returns from the current context if the passed Status expression is an error |
172 | | // (fatal or non-fatal). The return value is the passed Status. |
173 | | #define JXL_RETURN_IF_ERROR(status) \ |
174 | 423M | do { \ |
175 | 423M | ::jxl::Status jxl_return_if_error_status = (status); \ encode.cc:JxlEncoder::ProcessOneEnqueuedInput()::$_0::operator()() const Line | Count | Source | 175 | 3.07k | ::jxl::Status jxl_return_if_error_status = (status); \ |
enc_fields.cc:jxl::WriteCodestreamHeaders(jxl::CodecMetadata*, jxl::BitWriter*, jxl::AuxOut*)::$_0::operator()() const Line | Count | Source | 175 | 3.07k | ::jxl::Status jxl_return_if_error_status = (status); \ |
Unexecuted instantiation: enc_icc_codec.cc:jxl::WriteICC(jxl::Span<unsigned char const>, jxl::BitWriter*, jxl::LayerType, jxl::AuxOut*)::$_0::operator()() const Unexecuted instantiation: enc_ans.cc:jxl::BuildAndEncodeHistograms(JxlMemoryManagerStruct*, jxl::HistogramParams const&, unsigned long, std::__1::vector<std::__1::vector<jxl::Token, std::__1::allocator<jxl::Token> >, std::__1::allocator<std::__1::vector<jxl::Token, std::__1::allocator<jxl::Token> > > >&, jxl::EntropyEncodingData*, jxl::BitWriter*, jxl::LayerType, jxl::AuxOut*)::$_0::operator()() const::{lambda()#1}::operator()() constenc_ans.cc:jxl::EntropyEncodingData::BuildAndStoreANSEncodingData(JxlMemoryManagerStruct*, jxl::HistogramParams::ANSHistogramStrategy, jxl::Histogram const&, jxl::BitWriter*)::$_0::operator()() const Line | Count | Source | 175 | 18.6k | ::jxl::Status jxl_return_if_error_status = (status); \ |
enc_context_map.cc:jxl::EncodeContextMap(std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > const&, unsigned long, jxl::BitWriter*, jxl::LayerType, jxl::AuxOut*)::$_0::operator()() const Line | Count | Source | 175 | 37.9k | ::jxl::Status jxl_return_if_error_status = (status); \ |
enc_context_map.cc:jxl::EncodeContextMap(std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > const&, unsigned long, jxl::BitWriter*, jxl::LayerType, jxl::AuxOut*)::$_1::operator()() const Line | Count | Source | 175 | 42.3k | ::jxl::Status jxl_return_if_error_status = (status); \ |
enc_frame.cc:jxl::(anonymous namespace)::EncodeGroups(jxl::FrameHeader const&, jxl::PassesEncoderState*, jxl::ModularFrameEncoder*, jxl::ThreadPool*, std::__1::vector<std::__1::unique_ptr<jxl::BitWriter, std::__1::default_delete<jxl::BitWriter> >, std::__1::allocator<std::__1::unique_ptr<jxl::BitWriter, std::__1::default_delete<jxl::BitWriter> > > >*, jxl::AuxOut*)::$_0::operator()(unsigned int, unsigned long) const::{lambda()#1}::operator()() constLine | Count | Source | 175 | 3.02k | ::jxl::Status jxl_return_if_error_status = (status); \ |
enc_frame.cc:jxl::(anonymous namespace)::EncodeGroups(jxl::FrameHeader const&, jxl::PassesEncoderState*, jxl::ModularFrameEncoder*, jxl::ThreadPool*, std::__1::vector<std::__1::unique_ptr<jxl::BitWriter, std::__1::default_delete<jxl::BitWriter> >, std::__1::allocator<std::__1::unique_ptr<jxl::BitWriter, std::__1::default_delete<jxl::BitWriter> > > >*, jxl::AuxOut*)::$_0::operator()(unsigned int, unsigned long) const::{lambda()#2}::operator()() constLine | Count | Source | 175 | 2.89k | ::jxl::Status jxl_return_if_error_status = (status); \ |
enc_frame.cc:jxl::(anonymous namespace)::EncodeGlobalACInfo(jxl::PassesEncoderState*, jxl::BitWriter*, jxl::ModularFrameEncoder*, jxl::AuxOut*)::$_0::operator()() const Line | Count | Source | 175 | 1.14k | ::jxl::Status jxl_return_if_error_status = (status); \ |
enc_frame.cc:jxl::(anonymous namespace)::EncodeGlobalACInfo(jxl::PassesEncoderState*, jxl::BitWriter*, jxl::ModularFrameEncoder*, jxl::AuxOut*)::$_1::operator()() const Line | Count | Source | 175 | 3.02k | ::jxl::Status jxl_return_if_error_status = (status); \ |
enc_frame.cc:jxl::(anonymous namespace)::EncodeGroups(jxl::FrameHeader const&, jxl::PassesEncoderState*, jxl::ModularFrameEncoder*, jxl::ThreadPool*, std::__1::vector<std::__1::unique_ptr<jxl::BitWriter, std::__1::default_delete<jxl::BitWriter> >, std::__1::allocator<std::__1::unique_ptr<jxl::BitWriter, std::__1::default_delete<jxl::BitWriter> > > >*, jxl::AuxOut*)::$_1::operator()() const Line | Count | Source | 175 | 12.1k | ::jxl::Status jxl_return_if_error_status = (status); \ |
Unexecuted instantiation: enc_frame.cc:jxl::(anonymous namespace)::EncodeFrameStreaming(JxlMemoryManagerStruct*, jxl::CompressParams const&, jxl::FrameInfo const&, jxl::CodecMetadata const*, jxl::JxlEncoderChunkedFrameAdapter&, JxlCmsInterface const&, jxl::ThreadPool*, JxlEncoderOutputProcessorWrapper*, jxl::AuxOut*)::$_0::operator()() const Unexecuted instantiation: enc_frame.cc:jxl::(anonymous namespace)::OutputAcGlobal(jxl::PassesEncoderState&, jxl::FrameDimensions const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >*, JxlEncoderOutputProcessorWrapper*, jxl::AuxOut*)::$_0::operator()() const Unexecuted instantiation: enc_frame.cc:jxl::(anonymous namespace)::OutputAcGlobal(jxl::PassesEncoderState&, jxl::FrameDimensions const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >*, JxlEncoderOutputProcessorWrapper*, jxl::AuxOut*)::$_1::operator()() const Unexecuted instantiation: enc_frame.cc:jxl::(anonymous namespace)::OutputAcGlobal(jxl::PassesEncoderState&, jxl::FrameDimensions const&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> >*, JxlEncoderOutputProcessorWrapper*, jxl::AuxOut*)::$_2::operator()() const Unexecuted instantiation: enc_frame.cc:jxl::(anonymous namespace)::EncodeTOC(JxlMemoryManagerStruct*, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > const&, jxl::AuxOut*)::$_0::operator()() const enc_modular.cc:jxl::ModularFrameEncoder::EncodeGlobalInfo(bool, jxl::BitWriter*, jxl::AuxOut*)::$_0::operator()() const Line | Count | Source | 175 | 19.6k | ::jxl::Status jxl_return_if_error_status = (status); \ |
Unexecuted instantiation: enc_group.cc:jxl::EncodeGroupTokenizedCoefficients(unsigned long, unsigned long, unsigned long, jxl::PassesEncoderState const&, jxl::BitWriter*, jxl::AuxOut*)::$_0::operator()() const |
176 | 423M | if (!jxl_return_if_error_status) { \ |
177 | 102k | (void)::jxl::StatusMessage( \ |
178 | 102k | jxl_return_if_error_status, \ |
179 | 102k | "%s:%d: JXL_RETURN_IF_ERROR code=%d: %s\n", __FILE__, __LINE__, \ |
180 | 102k | static_cast<int>(jxl_return_if_error_status.code()), #status); \ |
181 | 102k | return jxl_return_if_error_status; \ |
182 | 102k | } \ |
183 | 423M | } while (0) |
184 | | |
185 | | // As above, but without calling StatusMessage. Intended for bundles (see |
186 | | // fields.h), which have numerous call sites (-> relevant for code size) and do |
187 | | // not want to generate excessive messages when decoding partial headers. |
188 | | #define JXL_QUIET_RETURN_IF_ERROR(status) \ |
189 | 68.3M | do { \ |
190 | 68.3M | ::jxl::Status jxl_return_if_error_status = (status); \ |
191 | 68.3M | if (!jxl_return_if_error_status) { \ |
192 | 67.1k | return jxl_return_if_error_status; \ |
193 | 67.1k | } \ |
194 | 68.3M | } while (0) |
195 | | |
196 | | #if JXL_IS_DEBUG_BUILD |
197 | | // Debug: fatal check. |
198 | | #define JXL_ENSURE(condition) \ |
199 | | do { \ |
200 | | if (!(condition)) { \ |
201 | | ::jxl::Debug("JXL_ENSURE: %s", #condition); \ |
202 | | ::jxl::Abort(); \ |
203 | | } \ |
204 | | } while (0) |
205 | | #else |
206 | | // Release: non-fatal check of condition. If false, just return an error. |
207 | | #define JXL_ENSURE(condition) \ |
208 | 358M | do { \ |
209 | 358M | if (!(condition)) { \ |
210 | 0 | return JXL_FAILURE("JXL_ENSURE: %s", #condition); \ |
211 | 0 | } \ |
212 | 358M | } while (0) |
213 | | #endif |
214 | | |
215 | | enum class StatusCode : int32_t { |
216 | | // Non-fatal errors (negative values). |
217 | | kNotEnoughBytes = -1, |
218 | | |
219 | | // The only non-error status code. |
220 | | kOk = 0, |
221 | | |
222 | | // Fatal-errors (positive values) |
223 | | kGenericError = 1, |
224 | | kUnsupported = 2, |
225 | | }; |
226 | | |
227 | | // Drop-in replacement for bool that raises compiler warnings if not used |
228 | | // after being returned from a function. Example: |
229 | | // Status LoadFile(...) { return true; } is more compact than |
230 | | // bool JXL_MUST_USE_RESULT LoadFile(...) { return true; } |
231 | | // In case of error, the status can carry an extra error code in its value which |
232 | | // is split between fatal and non-fatal error codes. |
233 | | class JXL_MUST_USE_RESULT Status { |
234 | | public: |
235 | | // We want implicit constructor from bool to allow returning "true" or "false" |
236 | | // on a function when using Status. "true" means kOk while "false" means a |
237 | | // generic fatal error. |
238 | | // NOLINTNEXTLINE(google-explicit-constructor) |
239 | | constexpr Status(bool ok) |
240 | 469M | : code_(ok ? StatusCode::kOk : StatusCode::kGenericError) {} |
241 | | |
242 | | // NOLINTNEXTLINE(google-explicit-constructor) |
243 | 71.6M | constexpr Status(StatusCode code) : code_(code) {} |
244 | | |
245 | | // We also want implicit cast to bool to check for return values of functions. |
246 | | // NOLINTNEXTLINE(google-explicit-constructor) |
247 | 550M | constexpr operator bool() const { return code_ == StatusCode::kOk; } |
248 | | |
249 | 316k | constexpr StatusCode code() const { return code_; } |
250 | | |
251 | | // Returns whether the status code is a fatal error. |
252 | 207k | constexpr bool IsFatalError() const { |
253 | 207k | return static_cast<int32_t>(code_) > 0; |
254 | 207k | } |
255 | | |
256 | | private: |
257 | | StatusCode code_; |
258 | | }; |
259 | | |
260 | 40.6k | static constexpr Status OkStatus() { return Status(StatusCode::kOk); }encode.cc:jxl::OkStatus() Line | Count | Source | 260 | 40.6k | static constexpr Status OkStatus() { return Status(StatusCode::kOk); } |
Unexecuted instantiation: enc_fields.cc:jxl::OkStatus() Unexecuted instantiation: enc_bit_writer.cc:jxl::OkStatus() Unexecuted instantiation: enc_icc_codec.cc:jxl::OkStatus() Unexecuted instantiation: enc_ans.cc:jxl::OkStatus() Unexecuted instantiation: enc_huffman.cc:jxl::OkStatus() Unexecuted instantiation: enc_huffman_tree.cc:jxl::OkStatus() Unexecuted instantiation: enc_ans_simd.cc:jxl::OkStatus() Unexecuted instantiation: enc_cluster.cc:jxl::OkStatus() Unexecuted instantiation: enc_context_map.cc:jxl::OkStatus() Unexecuted instantiation: enc_lz77.cc:jxl::OkStatus() Unexecuted instantiation: enc_fast_lossless.cc:jxl::OkStatus() Unexecuted instantiation: enc_frame.cc:jxl::OkStatus() Unexecuted instantiation: enc_modular.cc:jxl::OkStatus() Unexecuted instantiation: enc_patch_dictionary.cc:jxl::OkStatus() Unexecuted instantiation: enc_debug_image.cc:jxl::OkStatus() Unexecuted instantiation: enc_dot_dictionary.cc:jxl::OkStatus() Unexecuted instantiation: enc_detect_dots.cc:jxl::OkStatus() Unexecuted instantiation: enc_convolve_separable5.cc:jxl::OkStatus() Unexecuted instantiation: enc_linalg.cc:jxl::OkStatus() Unexecuted instantiation: enc_gaborish.cc:jxl::OkStatus() Unexecuted instantiation: enc_quant_weights.cc:jxl::OkStatus() Unexecuted instantiation: enc_modular_simd.cc:jxl::OkStatus() Unexecuted instantiation: enc_coeff_order.cc:jxl::OkStatus() Unexecuted instantiation: enc_toc.cc:jxl::OkStatus() Unexecuted instantiation: enc_xyb.cc:jxl::OkStatus() Unexecuted instantiation: enc_image_bundle.cc:jxl::OkStatus() Unexecuted instantiation: enc_external_image.cc:jxl::OkStatus() Unexecuted instantiation: enc_photon_noise.cc:jxl::OkStatus() Unexecuted instantiation: enc_noise.cc:jxl::OkStatus() Unexecuted instantiation: enc_heuristics.cc:jxl::OkStatus() Unexecuted instantiation: butteraugli.cc:jxl::OkStatus() Unexecuted instantiation: enc_adaptive_quantization.cc:jxl::OkStatus() Unexecuted instantiation: enc_butteraugli_comparator.cc:jxl::OkStatus() Unexecuted instantiation: enc_cache.cc:jxl::OkStatus() Unexecuted instantiation: enc_group.cc:jxl::OkStatus() Unexecuted instantiation: enc_progressive_split.cc:jxl::OkStatus() Unexecuted instantiation: enc_splines.cc:jxl::OkStatus() Unexecuted instantiation: enc_chroma_from_luma.cc:jxl::OkStatus() Unexecuted instantiation: enc_ac_strategy.cc:jxl::OkStatus() Unexecuted instantiation: enc_entropy_coder.cc:jxl::OkStatus() Unexecuted instantiation: enc_aux_out.cc:jxl::OkStatus() Unexecuted instantiation: jxl_cms.cc:jxl::OkStatus() Unexecuted instantiation: enc_jpeg_data.cc:jxl::OkStatus() Unexecuted instantiation: enc_jpeg_data_reader.cc:jxl::OkStatus() Unexecuted instantiation: enc_jpeg_huffman_decode.cc:jxl::OkStatus() Unexecuted instantiation: enc_encoding.cc:jxl::OkStatus() Unexecuted instantiation: enc_ma.cc:jxl::OkStatus() Unexecuted instantiation: enc_rct.cc:jxl::OkStatus() Unexecuted instantiation: enc_transform.cc:jxl::OkStatus() Unexecuted instantiation: enc_palette.cc:jxl::OkStatus() Unexecuted instantiation: enc_squeeze.cc:jxl::OkStatus() Unexecuted instantiation: ac_strategy.cc:jxl::OkStatus() Unexecuted instantiation: ans_common.cc:jxl::OkStatus() Unexecuted instantiation: chroma_from_luma.cc:jxl::OkStatus() Unexecuted instantiation: coeff_order.cc:jxl::OkStatus() Unexecuted instantiation: color_encoding_internal.cc:jxl::OkStatus() Unexecuted instantiation: compressed_dc.cc:jxl::OkStatus() Unexecuted instantiation: convolve_slow.cc:jxl::OkStatus() Unexecuted instantiation: convolve_symmetric5.cc:jxl::OkStatus() Unexecuted instantiation: dec_ans.cc:jxl::OkStatus() Unexecuted instantiation: dec_bit_reader.cc:jxl::OkStatus() Unexecuted instantiation: dec_cache.cc:jxl::OkStatus() Unexecuted instantiation: blending.cc:jxl::OkStatus() Unexecuted instantiation: dec_context_map.cc:jxl::OkStatus() Unexecuted instantiation: dec_external_image.cc:jxl::OkStatus() Unexecuted instantiation: dec_frame.cc:jxl::OkStatus() Unexecuted instantiation: dec_group.cc:jxl::OkStatus() Unexecuted instantiation: dec_huffman.cc:jxl::OkStatus() Unexecuted instantiation: dec_modular.cc:jxl::OkStatus() Unexecuted instantiation: dec_noise.cc:jxl::OkStatus() Unexecuted instantiation: dec_patch_dictionary.cc:jxl::OkStatus() Unexecuted instantiation: dec_xyb.cc:jxl::OkStatus() Unexecuted instantiation: decode.cc:jxl::OkStatus() Unexecuted instantiation: entropy_coder.cc:jxl::OkStatus() Unexecuted instantiation: epf.cc:jxl::OkStatus() Unexecuted instantiation: fields.cc:jxl::OkStatus() Unexecuted instantiation: frame_header.cc:jxl::OkStatus() Unexecuted instantiation: headers.cc:jxl::OkStatus() Unexecuted instantiation: icc_codec.cc:jxl::OkStatus() Unexecuted instantiation: icc_codec_common.cc:jxl::OkStatus() Unexecuted instantiation: image.cc:jxl::OkStatus() Unexecuted instantiation: image_bundle.cc:jxl::OkStatus() Unexecuted instantiation: image_metadata.cc:jxl::OkStatus() Unexecuted instantiation: image_ops.cc:jxl::OkStatus() Unexecuted instantiation: loop_filter.cc:jxl::OkStatus() Unexecuted instantiation: luminance.cc:jxl::OkStatus() Unexecuted instantiation: memory_manager_internal.cc:jxl::OkStatus() Unexecuted instantiation: dec_ma.cc:jxl::OkStatus() Unexecuted instantiation: encoding.cc:jxl::OkStatus() Unexecuted instantiation: modular_image.cc:jxl::OkStatus() Unexecuted instantiation: squeeze.cc:jxl::OkStatus() Unexecuted instantiation: squeeze_params.cc:jxl::OkStatus() Unexecuted instantiation: transform.cc:jxl::OkStatus() Unexecuted instantiation: rct.cc:jxl::OkStatus() Unexecuted instantiation: palette.cc:jxl::OkStatus() Unexecuted instantiation: opsin_params.cc:jxl::OkStatus() Unexecuted instantiation: passes_state.cc:jxl::OkStatus() Unexecuted instantiation: quant_weights.cc:jxl::OkStatus() Unexecuted instantiation: quantizer.cc:jxl::OkStatus() Unexecuted instantiation: render_pipeline.cc:jxl::OkStatus() Unexecuted instantiation: low_memory_render_pipeline.cc:jxl::OkStatus() Unexecuted instantiation: dec_group_border.cc:jxl::OkStatus() Unexecuted instantiation: simple_render_pipeline.cc:jxl::OkStatus() Unexecuted instantiation: stage_blending.cc:jxl::OkStatus() Unexecuted instantiation: render_pipeline_stage.cc:jxl::OkStatus() Unexecuted instantiation: stage_chroma_upsampling.cc:jxl::OkStatus() Unexecuted instantiation: stage_cms.cc:jxl::OkStatus() Unexecuted instantiation: stage_epf.cc:jxl::OkStatus() Unexecuted instantiation: stage_from_linear.cc:jxl::OkStatus() Unexecuted instantiation: stage_gaborish.cc:jxl::OkStatus() Unexecuted instantiation: stage_noise.cc:jxl::OkStatus() Unexecuted instantiation: stage_patches.cc:jxl::OkStatus() Unexecuted instantiation: stage_splines.cc:jxl::OkStatus() Unexecuted instantiation: stage_spot.cc:jxl::OkStatus() Unexecuted instantiation: stage_to_linear.cc:jxl::OkStatus() Unexecuted instantiation: stage_tone_mapping.cc:jxl::OkStatus() Unexecuted instantiation: stage_upsampling.cc:jxl::OkStatus() Unexecuted instantiation: stage_write.cc:jxl::OkStatus() Unexecuted instantiation: stage_xyb.cc:jxl::OkStatus() Unexecuted instantiation: stage_ycbcr.cc:jxl::OkStatus() Unexecuted instantiation: splines.cc:jxl::OkStatus() Unexecuted instantiation: toc.cc:jxl::OkStatus() Unexecuted instantiation: decode_to_jpeg.cc:jxl::OkStatus() Unexecuted instantiation: dec_jpeg_data.cc:jxl::OkStatus() Unexecuted instantiation: dec_jpeg_data_writer.cc:jxl::OkStatus() Unexecuted instantiation: jpeg_data.cc:jxl::OkStatus() |
261 | | |
262 | | // Helper function to create a Status and print the debug message or abort when |
263 | | // needed. |
264 | | inline JXL_FORMAT(2, 3) Status |
265 | 213k | StatusMessage(const Status status, const char* format, ...) { |
266 | | // This block will be optimized out when JXL_IS_DEBUG_BUILD is disabled. |
267 | 213k | if ((JXL_IS_DEBUG_BUILD && status.IsFatalError()) || |
268 | 0 | (JXL_DEBUG_ON_ALL_ERROR && !status)) { |
269 | 0 | va_list args; |
270 | 0 | va_start(args, format); |
271 | | #ifdef USE_ANDROID_LOGGER |
272 | | android_vprintf(format, args); |
273 | | #else |
274 | 0 | vfprintf(stderr, format, args); |
275 | 0 | #endif |
276 | 0 | va_end(args); |
277 | 0 | } |
278 | | #if JXL_CRASH_ON_ERROR |
279 | | // JXL_CRASH_ON_ERROR means to Abort() only on non-fatal errors. |
280 | | if (status.IsFatalError()) { |
281 | | ::jxl::Abort(); |
282 | | } |
283 | | #endif // JXL_CRASH_ON_ERROR |
284 | 213k | return status; |
285 | 213k | } |
286 | | |
287 | | template <typename T> |
288 | | class JXL_MUST_USE_RESULT StatusOr { |
289 | | static_assert(!std::is_convertible<StatusCode, T>::value && |
290 | | !std::is_convertible<T, StatusCode>::value, |
291 | | "You cannot make a StatusOr with a type convertible from or to " |
292 | | "StatusCode"); |
293 | | static_assert(std::is_move_constructible<T>::value && |
294 | | std::is_move_assignable<T>::value, |
295 | | "T must be move constructible and move assignable"); |
296 | | |
297 | | public: |
298 | | // NOLINTNEXTLINE(google-explicit-constructor) |
299 | 50 | StatusOr(StatusCode code) : code_(code) { |
300 | 50 | JXL_DASSERT(code_ != StatusCode::kOk); |
301 | 50 | } Unexecuted instantiation: jxl::StatusOr<jxl::PaddedBytes>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<JxlOutputProcessorBuffer>::StatusOr(jxl::StatusCode) Unexecuted instantiation: enc_ans.cc:jxl::StatusOr<jxl::(anonymous namespace)::ANSEncodingHistogram>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<float>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<unsigned long>::StatusOr(jxl::StatusCode) jxl::StatusOr<jxl::Plane<int> >::StatusOr(jxl::StatusCode) Line | Count | Source | 299 | 6 | StatusOr(StatusCode code) : code_(code) { | 300 | 6 | JXL_DASSERT(code_ != StatusCode::kOk); | 301 | 6 | } |
Unexecuted instantiation: jxl::StatusOr<jxl::Plane<unsigned char> >::StatusOr(jxl::StatusCode) jxl::StatusOr<jxl::Image3<float> >::StatusOr(jxl::StatusCode) Line | Count | Source | 299 | 6 | StatusOr(StatusCode code) : code_(code) { | 300 | 6 | JXL_DASSERT(code_ != StatusCode::kOk); | 301 | 6 | } |
jxl::StatusOr<jxl::Plane<float> >::StatusOr(jxl::StatusCode) Line | Count | Source | 299 | 7 | StatusOr(StatusCode code) : code_(code) { | 300 | 7 | JXL_DASSERT(code_ != StatusCode::kOk); | 301 | 7 | } |
Unexecuted instantiation: jxl::StatusOr<jxl::Image3<int> >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<int>, std::__1::default_delete<jxl::ACImageT<int> > > >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::ModularStreamId>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<bool>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ModularFrameEncoder, std::__1::default_delete<jxl::ModularFrameEncoder> > >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<std::__1::vector<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > >, std::__1::allocator<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > > > > >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::Image3<unsigned char> >::StatusOr(jxl::StatusCode) Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<std::__1::vector<jxl::(anonymous namespace)::ConnectedComponent, std::__1::allocator<jxl::(anonymous namespace)::ConnectedComponent> > >::StatusOr(jxl::StatusCode) Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<jxl::(anonymous namespace)::GaussianEllipse>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::AlignedArray<jxl::GroupDecCache> >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ButteraugliComparator, std::__1::default_delete<jxl::ButteraugliComparator> > >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::ImageBundle>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::jpeg::JPEGData, std::__1::default_delete<jxl::jpeg::JPEGData> > >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<std::__1::vector<jxl::PropertyDecisionNode, std::__1::allocator<jxl::PropertyDecisionNode> > >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::AcStrategyImage>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::Plane<signed char> >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::ColorCorrelationMap>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::ANSSymbolReader>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::Plane<hwy::float16_t> >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::Plane<unsigned int> >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::Plane<short> >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::Image3<short> >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<short>, std::__1::default_delete<jxl::ACImageT<short> > > >::StatusOr(jxl::StatusCode) Unexecuted instantiation: dec_group.cc:jxl::StatusOr<jxl::(anonymous namespace)::GetBlockFromEncoder>::StatusOr(jxl::StatusCode) jxl::StatusOr<jxl::AlignedMemory>::StatusOr(jxl::StatusCode) Line | Count | Source | 299 | 13 | StatusOr(StatusCode code) : code_(code) { | 300 | 13 | JXL_DASSERT(code_ != StatusCode::kOk); | 301 | 13 | } |
jxl::StatusOr<jxl::Channel>::StatusOr(jxl::StatusCode) Line | Count | Source | 299 | 6 | StatusOr(StatusCode code) : code_(code) { | 300 | 6 | JXL_DASSERT(code_ != StatusCode::kOk); | 301 | 6 | } |
jxl::StatusOr<jxl::Image>::StatusOr(jxl::StatusCode) Line | Count | Source | 299 | 6 | StatusOr(StatusCode code) : code_(code) { | 300 | 6 | JXL_DASSERT(code_ != StatusCode::kOk); | 301 | 6 | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::RenderPipeline, std::__1::default_delete<jxl::RenderPipeline> > >::StatusOr(jxl::StatusCode) Line | Count | Source | 299 | 6 | StatusOr(StatusCode code) : code_(code) { | 300 | 6 | JXL_DASSERT(code_ != StatusCode::kOk); | 301 | 6 | } |
Unexecuted instantiation: low_memory_render_pipeline.cc:jxl::StatusOr<jxl::(anonymous namespace)::Rows>::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::RectT<long> >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::RectT<unsigned long> >::StatusOr(jxl::StatusCode) Unexecuted instantiation: jxl::StatusOr<jxl::QuantizedSpline>::StatusOr(jxl::StatusCode) |
302 | | |
303 | | // NOLINTNEXTLINE(google-explicit-constructor) |
304 | 50 | StatusOr(Status status) : StatusOr(status.code()) {}Unexecuted instantiation: jxl::StatusOr<jxl::PaddedBytes>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<JxlOutputProcessorBuffer>::StatusOr(jxl::Status) Unexecuted instantiation: enc_ans.cc:jxl::StatusOr<jxl::(anonymous namespace)::ANSEncodingHistogram>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<float>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<unsigned long>::StatusOr(jxl::Status) jxl::StatusOr<jxl::Plane<int> >::StatusOr(jxl::Status) Line | Count | Source | 304 | 6 | StatusOr(Status status) : StatusOr(status.code()) {} |
Unexecuted instantiation: jxl::StatusOr<jxl::Plane<unsigned char> >::StatusOr(jxl::Status) jxl::StatusOr<jxl::Image3<float> >::StatusOr(jxl::Status) Line | Count | Source | 304 | 6 | StatusOr(Status status) : StatusOr(status.code()) {} |
jxl::StatusOr<jxl::Plane<float> >::StatusOr(jxl::Status) Line | Count | Source | 304 | 7 | StatusOr(Status status) : StatusOr(status.code()) {} |
Unexecuted instantiation: jxl::StatusOr<jxl::Image3<int> >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<int>, std::__1::default_delete<jxl::ACImageT<int> > > >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::ModularStreamId>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<bool>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ModularFrameEncoder, std::__1::default_delete<jxl::ModularFrameEncoder> > >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<std::__1::vector<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > >, std::__1::allocator<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > > > > >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::Image3<unsigned char> >::StatusOr(jxl::Status) Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<std::__1::vector<jxl::(anonymous namespace)::ConnectedComponent, std::__1::allocator<jxl::(anonymous namespace)::ConnectedComponent> > >::StatusOr(jxl::Status) Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<jxl::(anonymous namespace)::GaussianEllipse>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::AlignedArray<jxl::GroupDecCache> >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ButteraugliComparator, std::__1::default_delete<jxl::ButteraugliComparator> > >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::ImageBundle>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::jpeg::JPEGData, std::__1::default_delete<jxl::jpeg::JPEGData> > >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<std::__1::vector<jxl::PropertyDecisionNode, std::__1::allocator<jxl::PropertyDecisionNode> > >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::AcStrategyImage>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::Plane<signed char> >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::ColorCorrelationMap>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::ANSSymbolReader>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::Plane<hwy::float16_t> >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::Plane<unsigned int> >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::Plane<short> >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::Image3<short> >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<short>, std::__1::default_delete<jxl::ACImageT<short> > > >::StatusOr(jxl::Status) Unexecuted instantiation: dec_group.cc:jxl::StatusOr<jxl::(anonymous namespace)::GetBlockFromEncoder>::StatusOr(jxl::Status) jxl::StatusOr<jxl::AlignedMemory>::StatusOr(jxl::Status) Line | Count | Source | 304 | 13 | StatusOr(Status status) : StatusOr(status.code()) {} |
jxl::StatusOr<jxl::Channel>::StatusOr(jxl::Status) Line | Count | Source | 304 | 6 | StatusOr(Status status) : StatusOr(status.code()) {} |
jxl::StatusOr<jxl::Image>::StatusOr(jxl::Status) Line | Count | Source | 304 | 6 | StatusOr(Status status) : StatusOr(status.code()) {} |
jxl::StatusOr<std::__1::unique_ptr<jxl::RenderPipeline, std::__1::default_delete<jxl::RenderPipeline> > >::StatusOr(jxl::Status) Line | Count | Source | 304 | 6 | StatusOr(Status status) : StatusOr(status.code()) {} |
Unexecuted instantiation: low_memory_render_pipeline.cc:jxl::StatusOr<jxl::(anonymous namespace)::Rows>::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::RectT<long> >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::RectT<unsigned long> >::StatusOr(jxl::Status) Unexecuted instantiation: jxl::StatusOr<jxl::QuantizedSpline>::StatusOr(jxl::Status) |
305 | | |
306 | | // NOLINTNEXTLINE(google-explicit-constructor) |
307 | 71.4M | StatusOr(T&& value) : code_(StatusCode::kOk) { |
308 | 71.4M | new (&storage_.data_) T(std::move(value)); |
309 | 71.4M | } jxl::StatusOr<jxl::PaddedBytes>::StatusOr(jxl::PaddedBytes&&) Line | Count | Source | 307 | 8.63k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 8.63k | new (&storage_.data_) T(std::move(value)); | 309 | 8.63k | } |
jxl::StatusOr<JxlOutputProcessorBuffer>::StatusOr(JxlOutputProcessorBuffer&&) Line | Count | Source | 307 | 9.84k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 9.84k | new (&storage_.data_) T(std::move(value)); | 309 | 9.84k | } |
enc_ans.cc:jxl::StatusOr<jxl::(anonymous namespace)::ANSEncodingHistogram>::StatusOr(jxl::(anonymous namespace)::ANSEncodingHistogram&&) Line | Count | Source | 307 | 729k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 729k | new (&storage_.data_) T(std::move(value)); | 309 | 729k | } |
jxl::StatusOr<float>::StatusOr(float&&) Line | Count | Source | 307 | 694k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 694k | new (&storage_.data_) T(std::move(value)); | 309 | 694k | } |
jxl::StatusOr<unsigned long>::StatusOr(unsigned long&&) Line | Count | Source | 307 | 283k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 283k | new (&storage_.data_) T(std::move(value)); | 309 | 283k | } |
jxl::StatusOr<jxl::Plane<int> >::StatusOr(jxl::Plane<int>&&) Line | Count | Source | 307 | 1.18M | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 1.18M | new (&storage_.data_) T(std::move(value)); | 309 | 1.18M | } |
jxl::StatusOr<jxl::Plane<unsigned char> >::StatusOr(jxl::Plane<unsigned char>&&) Line | Count | Source | 307 | 133k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 133k | new (&storage_.data_) T(std::move(value)); | 309 | 133k | } |
jxl::StatusOr<jxl::Image3<float> >::StatusOr(jxl::Image3<float>&&) Line | Count | Source | 307 | 172k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 172k | new (&storage_.data_) T(std::move(value)); | 309 | 172k | } |
jxl::StatusOr<jxl::Plane<float> >::StatusOr(jxl::Plane<float>&&) Line | Count | Source | 307 | 32.2M | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 32.2M | new (&storage_.data_) T(std::move(value)); | 309 | 32.2M | } |
jxl::StatusOr<jxl::Image3<int> >::StatusOr(jxl::Image3<int>&&) Line | Count | Source | 307 | 12.0k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 12.0k | new (&storage_.data_) T(std::move(value)); | 309 | 12.0k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<int>, std::__1::default_delete<jxl::ACImageT<int> > > >::StatusOr(std::__1::unique_ptr<jxl::ACImageT<int>, std::__1::default_delete<jxl::ACImageT<int> > >&&) Line | Count | Source | 307 | 3.82k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 3.82k | new (&storage_.data_) T(std::move(value)); | 309 | 3.82k | } |
jxl::StatusOr<jxl::ModularStreamId>::StatusOr(jxl::ModularStreamId&&) Line | Count | Source | 307 | 3.06k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 3.06k | new (&storage_.data_) T(std::move(value)); | 309 | 3.06k | } |
jxl::StatusOr<bool>::StatusOr(bool&&) Line | Count | Source | 307 | 1.04k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 1.04k | new (&storage_.data_) T(std::move(value)); | 309 | 1.04k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ModularFrameEncoder, std::__1::default_delete<jxl::ModularFrameEncoder> > >::StatusOr(std::__1::unique_ptr<jxl::ModularFrameEncoder, std::__1::default_delete<jxl::ModularFrameEncoder> >&&) Line | Count | Source | 307 | 3.93k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 3.93k | new (&storage_.data_) T(std::move(value)); | 309 | 3.93k | } |
jxl::StatusOr<std::__1::vector<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > >, std::__1::allocator<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > > > > >::StatusOr(std::__1::vector<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > >, std::__1::allocator<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > > > >&&) Line | Count | Source | 307 | 3.80k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 3.80k | new (&storage_.data_) T(std::move(value)); | 309 | 3.80k | } |
Unexecuted instantiation: jxl::StatusOr<jxl::Image3<unsigned char> >::StatusOr(jxl::Image3<unsigned char>&&) Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<std::__1::vector<jxl::(anonymous namespace)::ConnectedComponent, std::__1::allocator<jxl::(anonymous namespace)::ConnectedComponent> > >::StatusOr(std::__1::vector<jxl::(anonymous namespace)::ConnectedComponent, std::__1::allocator<jxl::(anonymous namespace)::ConnectedComponent> >&&) Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<jxl::(anonymous namespace)::GaussianEllipse>::StatusOr(jxl::(anonymous namespace)::GaussianEllipse&&) jxl::StatusOr<jxl::AlignedArray<jxl::GroupDecCache> >::StatusOr(jxl::AlignedArray<jxl::GroupDecCache>&&) Line | Count | Source | 307 | 9.06k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 9.06k | new (&storage_.data_) T(std::move(value)); | 309 | 9.06k | } |
Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ButteraugliComparator, std::__1::default_delete<jxl::ButteraugliComparator> > >::StatusOr(std::__1::unique_ptr<jxl::ButteraugliComparator, std::__1::default_delete<jxl::ButteraugliComparator> >&&) Unexecuted instantiation: jxl::StatusOr<jxl::ImageBundle>::StatusOr(jxl::ImageBundle&&) Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::jpeg::JPEGData, std::__1::default_delete<jxl::jpeg::JPEGData> > >::StatusOr(std::__1::unique_ptr<jxl::jpeg::JPEGData, std::__1::default_delete<jxl::jpeg::JPEGData> >&&) jxl::StatusOr<std::__1::vector<jxl::PropertyDecisionNode, std::__1::allocator<jxl::PropertyDecisionNode> > >::StatusOr(std::__1::vector<jxl::PropertyDecisionNode, std::__1::allocator<jxl::PropertyDecisionNode> >&&) Line | Count | Source | 307 | 4.83k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 4.83k | new (&storage_.data_) T(std::move(value)); | 309 | 4.83k | } |
jxl::StatusOr<jxl::AcStrategyImage>::StatusOr(jxl::AcStrategyImage&&) Line | Count | Source | 307 | 42.0k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 42.0k | new (&storage_.data_) T(std::move(value)); | 309 | 42.0k | } |
jxl::StatusOr<jxl::Plane<signed char> >::StatusOr(jxl::Plane<signed char>&&) Line | Count | Source | 307 | 84.0k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 84.0k | new (&storage_.data_) T(std::move(value)); | 309 | 84.0k | } |
jxl::StatusOr<jxl::ColorCorrelationMap>::StatusOr(jxl::ColorCorrelationMap&&) Line | Count | Source | 307 | 42.0k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 42.0k | new (&storage_.data_) T(std::move(value)); | 309 | 42.0k | } |
jxl::StatusOr<jxl::ANSSymbolReader>::StatusOr(jxl::ANSSymbolReader&&) Line | Count | Source | 307 | 123k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 123k | new (&storage_.data_) T(std::move(value)); | 309 | 123k | } |
Unexecuted instantiation: jxl::StatusOr<jxl::Plane<hwy::float16_t> >::StatusOr(jxl::Plane<hwy::float16_t>&&) Unexecuted instantiation: jxl::StatusOr<jxl::Plane<unsigned int> >::StatusOr(jxl::Plane<unsigned int>&&) jxl::StatusOr<jxl::Plane<short> >::StatusOr(jxl::Plane<short>&&) Line | Count | Source | 307 | 12.7k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 12.7k | new (&storage_.data_) T(std::move(value)); | 309 | 12.7k | } |
jxl::StatusOr<jxl::Image3<short> >::StatusOr(jxl::Image3<short>&&) Line | Count | Source | 307 | 4.26k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 4.26k | new (&storage_.data_) T(std::move(value)); | 309 | 4.26k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<short>, std::__1::default_delete<jxl::ACImageT<short> > > >::StatusOr(std::__1::unique_ptr<jxl::ACImageT<short>, std::__1::default_delete<jxl::ACImageT<short> > >&&) Line | Count | Source | 307 | 4.26k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 4.26k | new (&storage_.data_) T(std::move(value)); | 309 | 4.26k | } |
dec_group.cc:jxl::StatusOr<jxl::(anonymous namespace)::GetBlockFromEncoder>::StatusOr(jxl::(anonymous namespace)::GetBlockFromEncoder&&) Line | Count | Source | 307 | 23.4k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 23.4k | new (&storage_.data_) T(std::move(value)); | 309 | 23.4k | } |
jxl::StatusOr<jxl::AlignedMemory>::StatusOr(jxl::AlignedMemory&&) Line | Count | Source | 307 | 33.9M | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 33.9M | new (&storage_.data_) T(std::move(value)); | 309 | 33.9M | } |
jxl::StatusOr<jxl::Channel>::StatusOr(jxl::Channel&&) Line | Count | Source | 307 | 813k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 813k | new (&storage_.data_) T(std::move(value)); | 309 | 813k | } |
jxl::StatusOr<jxl::Image>::StatusOr(jxl::Image&&) Line | Count | Source | 307 | 135k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 135k | new (&storage_.data_) T(std::move(value)); | 309 | 135k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::RenderPipeline, std::__1::default_delete<jxl::RenderPipeline> > >::StatusOr(std::__1::unique_ptr<jxl::RenderPipeline, std::__1::default_delete<jxl::RenderPipeline> >&&) Line | Count | Source | 307 | 43.2k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 43.2k | new (&storage_.data_) T(std::move(value)); | 309 | 43.2k | } |
jxl::StatusOr<jxl::RectT<long> >::StatusOr(jxl::RectT<long>&&) Line | Count | Source | 307 | 209k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 209k | new (&storage_.data_) T(std::move(value)); | 309 | 209k | } |
low_memory_render_pipeline.cc:jxl::StatusOr<jxl::(anonymous namespace)::Rows>::StatusOr(jxl::(anonymous namespace)::Rows&&) Line | Count | Source | 307 | 58.8k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 58.8k | new (&storage_.data_) T(std::move(value)); | 309 | 58.8k | } |
jxl::StatusOr<jxl::RectT<unsigned long> >::StatusOr(jxl::RectT<unsigned long>&&) Line | Count | Source | 307 | 344k | StatusOr(T&& value) : code_(StatusCode::kOk) { | 308 | 344k | new (&storage_.data_) T(std::move(value)); | 309 | 344k | } |
Unexecuted instantiation: jxl::StatusOr<jxl::QuantizedSpline>::StatusOr(jxl::QuantizedSpline&&) |
310 | | |
311 | | StatusOr(StatusOr&& other) noexcept { |
312 | | if (other.ok()) { |
313 | | new (&storage_.data_) T(std::move(other.storage_.data_)); |
314 | | } |
315 | | code_ = other.code_; |
316 | | } |
317 | | |
318 | | StatusOr& operator=(StatusOr&& other) noexcept { |
319 | | if (this == &other) return *this; |
320 | | if (ok() && other.ok()) { |
321 | | storage_.data_ = std::move(other.storage_.data_); |
322 | | } else if (other.ok()) { |
323 | | new (&storage_.data_) T(std::move(other.storage_.data_)); |
324 | | } else if (ok()) { |
325 | | storage_.data_.~T(); |
326 | | } |
327 | | code_ = other.code_; |
328 | | return *this; |
329 | | } |
330 | | |
331 | | StatusOr(const StatusOr&) = delete; |
332 | | StatusOr operator=(const StatusOr&) = delete; |
333 | | |
334 | 0 | bool ok() const { return code_ == StatusCode::kOk; } |
335 | 71.4M | Status status() const { return code_; }jxl::StatusOr<jxl::AlignedMemory>::status() const Line | Count | Source | 335 | 33.9M | Status status() const { return code_; } |
Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::jpeg::JPEGData, std::__1::default_delete<jxl::jpeg::JPEGData> > >::status() const jxl::StatusOr<JxlOutputProcessorBuffer>::status() const Line | Count | Source | 335 | 9.84k | Status status() const { return code_; } |
jxl::StatusOr<jxl::Image3<float> >::status() const Line | Count | Source | 335 | 172k | Status status() const { return code_; } |
jxl::StatusOr<jxl::Plane<float> >::status() const Line | Count | Source | 335 | 32.2M | Status status() const { return code_; } |
jxl::StatusOr<jxl::PaddedBytes>::status() const Line | Count | Source | 335 | 8.63k | Status status() const { return code_; } |
jxl::StatusOr<unsigned long>::status() const Line | Count | Source | 335 | 283k | Status status() const { return code_; } |
enc_ans.cc:jxl::StatusOr<jxl::(anonymous namespace)::ANSEncodingHistogram>::status() const Line | Count | Source | 335 | 729k | Status status() const { return code_; } |
jxl::StatusOr<float>::status() const Line | Count | Source | 335 | 694k | Status status() const { return code_; } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ModularFrameEncoder, std::__1::default_delete<jxl::ModularFrameEncoder> > >::status() const Line | Count | Source | 335 | 3.93k | Status status() const { return code_; } |
jxl::StatusOr<jxl::AcStrategyImage>::status() const Line | Count | Source | 335 | 42.0k | Status status() const { return code_; } |
jxl::StatusOr<jxl::Plane<int> >::status() const Line | Count | Source | 335 | 1.18M | Status status() const { return code_; } |
jxl::StatusOr<jxl::Plane<unsigned char> >::status() const Line | Count | Source | 335 | 133k | Status status() const { return code_; } |
jxl::StatusOr<jxl::ColorCorrelationMap>::status() const Line | Count | Source | 335 | 42.0k | Status status() const { return code_; } |
jxl::StatusOr<jxl::Image3<int> >::status() const Line | Count | Source | 335 | 12.0k | Status status() const { return code_; } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<int>, std::__1::default_delete<jxl::ACImageT<int> > > >::status() const Line | Count | Source | 335 | 3.82k | Status status() const { return code_; } |
jxl::StatusOr<bool>::status() const Line | Count | Source | 335 | 1.04k | Status status() const { return code_; } |
jxl::StatusOr<jxl::ModularStreamId>::status() const Line | Count | Source | 335 | 3.06k | Status status() const { return code_; } |
jxl::StatusOr<jxl::Image>::status() const Line | Count | Source | 335 | 135k | Status status() const { return code_; } |
jxl::StatusOr<std::__1::vector<jxl::PropertyDecisionNode, std::__1::allocator<jxl::PropertyDecisionNode> > >::status() const Line | Count | Source | 335 | 4.83k | Status status() const { return code_; } |
jxl::StatusOr<jxl::Channel>::status() const Line | Count | Source | 335 | 813k | Status status() const { return code_; } |
jxl::StatusOr<std::__1::vector<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > >, std::__1::allocator<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > > > > >::status() const Line | Count | Source | 335 | 3.80k | Status status() const { return code_; } |
Unexecuted instantiation: jxl::StatusOr<jxl::Image3<unsigned char> >::status() const Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<jxl::(anonymous namespace)::GaussianEllipse>::status() const Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<std::__1::vector<jxl::(anonymous namespace)::ConnectedComponent, std::__1::allocator<jxl::(anonymous namespace)::ConnectedComponent> > >::status() const Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ButteraugliComparator, std::__1::default_delete<jxl::ButteraugliComparator> > >::status() const jxl::StatusOr<jxl::AlignedArray<jxl::GroupDecCache> >::status() const Line | Count | Source | 335 | 9.06k | Status status() const { return code_; } |
Unexecuted instantiation: jxl::StatusOr<jxl::ImageBundle>::status() const jxl::StatusOr<jxl::Plane<signed char> >::status() const Line | Count | Source | 335 | 84.0k | Status status() const { return code_; } |
jxl::StatusOr<jxl::ANSSymbolReader>::status() const Line | Count | Source | 335 | 123k | Status status() const { return code_; } |
jxl::StatusOr<std::__1::unique_ptr<jxl::RenderPipeline, std::__1::default_delete<jxl::RenderPipeline> > >::status() const Line | Count | Source | 335 | 43.2k | Status status() const { return code_; } |
Unexecuted instantiation: jxl::StatusOr<jxl::Plane<hwy::float16_t> >::status() const Unexecuted instantiation: jxl::StatusOr<jxl::Plane<unsigned int> >::status() const jxl::StatusOr<jxl::Plane<short> >::status() const Line | Count | Source | 335 | 12.7k | Status status() const { return code_; } |
jxl::StatusOr<jxl::Image3<short> >::status() const Line | Count | Source | 335 | 4.26k | Status status() const { return code_; } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<short>, std::__1::default_delete<jxl::ACImageT<short> > > >::status() const Line | Count | Source | 335 | 4.26k | Status status() const { return code_; } |
dec_group.cc:jxl::StatusOr<jxl::(anonymous namespace)::GetBlockFromEncoder>::status() const Line | Count | Source | 335 | 23.4k | Status status() const { return code_; } |
jxl::StatusOr<jxl::RectT<long> >::status() const Line | Count | Source | 335 | 209k | Status status() const { return code_; } |
jxl::StatusOr<jxl::RectT<unsigned long> >::status() const Line | Count | Source | 335 | 344k | Status status() const { return code_; } |
low_memory_render_pipeline.cc:jxl::StatusOr<jxl::(anonymous namespace)::Rows>::status() const Line | Count | Source | 335 | 58.8k | Status status() const { return code_; } |
|
336 | | |
337 | | // Only call this if you are absolutely sure that `ok()` is true. |
338 | | // Never call this manually: rely on JXL_ASSIGN_OR. |
339 | 71.4M | T value_() && { |
340 | 71.4M | JXL_DASSERT(ok()); |
341 | 71.4M | return std::move(storage_.data_); |
342 | 71.4M | } jxl::StatusOr<jxl::AlignedMemory>::value_() && Line | Count | Source | 339 | 33.9M | T value_() && { | 340 | 33.9M | JXL_DASSERT(ok()); | 341 | 33.9M | return std::move(storage_.data_); | 342 | 33.9M | } |
jxl::StatusOr<jxl::PaddedBytes>::value_() && Line | Count | Source | 339 | 8.63k | T value_() && { | 340 | 8.63k | JXL_DASSERT(ok()); | 341 | 8.63k | return std::move(storage_.data_); | 342 | 8.63k | } |
Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::jpeg::JPEGData, std::__1::default_delete<jxl::jpeg::JPEGData> > >::value_() && jxl::StatusOr<JxlOutputProcessorBuffer>::value_() && Line | Count | Source | 339 | 9.84k | T value_() && { | 340 | 9.84k | JXL_DASSERT(ok()); | 341 | 9.84k | return std::move(storage_.data_); | 342 | 9.84k | } |
jxl::StatusOr<jxl::Image3<float> >::value_() && Line | Count | Source | 339 | 172k | T value_() && { | 340 | 172k | JXL_DASSERT(ok()); | 341 | 172k | return std::move(storage_.data_); | 342 | 172k | } |
jxl::StatusOr<jxl::Plane<float> >::value_() && Line | Count | Source | 339 | 32.2M | T value_() && { | 340 | 32.2M | JXL_DASSERT(ok()); | 341 | 32.2M | return std::move(storage_.data_); | 342 | 32.2M | } |
jxl::StatusOr<unsigned long>::value_() && Line | Count | Source | 339 | 283k | T value_() && { | 340 | 283k | JXL_DASSERT(ok()); | 341 | 283k | return std::move(storage_.data_); | 342 | 283k | } |
enc_ans.cc:jxl::StatusOr<jxl::(anonymous namespace)::ANSEncodingHistogram>::value_() && Line | Count | Source | 339 | 729k | T value_() && { | 340 | 729k | JXL_DASSERT(ok()); | 341 | 729k | return std::move(storage_.data_); | 342 | 729k | } |
jxl::StatusOr<float>::value_() && Line | Count | Source | 339 | 694k | T value_() && { | 340 | 694k | JXL_DASSERT(ok()); | 341 | 694k | return std::move(storage_.data_); | 342 | 694k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ModularFrameEncoder, std::__1::default_delete<jxl::ModularFrameEncoder> > >::value_() && Line | Count | Source | 339 | 3.93k | T value_() && { | 340 | 3.93k | JXL_DASSERT(ok()); | 341 | 3.93k | return std::move(storage_.data_); | 342 | 3.93k | } |
jxl::StatusOr<jxl::AcStrategyImage>::value_() && Line | Count | Source | 339 | 42.0k | T value_() && { | 340 | 42.0k | JXL_DASSERT(ok()); | 341 | 42.0k | return std::move(storage_.data_); | 342 | 42.0k | } |
jxl::StatusOr<jxl::Plane<int> >::value_() && Line | Count | Source | 339 | 1.18M | T value_() && { | 340 | 1.18M | JXL_DASSERT(ok()); | 341 | 1.18M | return std::move(storage_.data_); | 342 | 1.18M | } |
jxl::StatusOr<jxl::Plane<unsigned char> >::value_() && Line | Count | Source | 339 | 133k | T value_() && { | 340 | 133k | JXL_DASSERT(ok()); | 341 | 133k | return std::move(storage_.data_); | 342 | 133k | } |
jxl::StatusOr<jxl::ColorCorrelationMap>::value_() && Line | Count | Source | 339 | 42.0k | T value_() && { | 340 | 42.0k | JXL_DASSERT(ok()); | 341 | 42.0k | return std::move(storage_.data_); | 342 | 42.0k | } |
jxl::StatusOr<jxl::Image3<int> >::value_() && Line | Count | Source | 339 | 12.0k | T value_() && { | 340 | 12.0k | JXL_DASSERT(ok()); | 341 | 12.0k | return std::move(storage_.data_); | 342 | 12.0k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<int>, std::__1::default_delete<jxl::ACImageT<int> > > >::value_() && Line | Count | Source | 339 | 3.82k | T value_() && { | 340 | 3.82k | JXL_DASSERT(ok()); | 341 | 3.82k | return std::move(storage_.data_); | 342 | 3.82k | } |
jxl::StatusOr<bool>::value_() && Line | Count | Source | 339 | 1.04k | T value_() && { | 340 | 1.04k | JXL_DASSERT(ok()); | 341 | 1.04k | return std::move(storage_.data_); | 342 | 1.04k | } |
jxl::StatusOr<jxl::ModularStreamId>::value_() && Line | Count | Source | 339 | 3.06k | T value_() && { | 340 | 3.06k | JXL_DASSERT(ok()); | 341 | 3.06k | return std::move(storage_.data_); | 342 | 3.06k | } |
jxl::StatusOr<jxl::Image>::value_() && Line | Count | Source | 339 | 135k | T value_() && { | 340 | 135k | JXL_DASSERT(ok()); | 341 | 135k | return std::move(storage_.data_); | 342 | 135k | } |
jxl::StatusOr<std::__1::vector<jxl::PropertyDecisionNode, std::__1::allocator<jxl::PropertyDecisionNode> > >::value_() && Line | Count | Source | 339 | 4.83k | T value_() && { | 340 | 4.83k | JXL_DASSERT(ok()); | 341 | 4.83k | return std::move(storage_.data_); | 342 | 4.83k | } |
jxl::StatusOr<jxl::Channel>::value_() && Line | Count | Source | 339 | 813k | T value_() && { | 340 | 813k | JXL_DASSERT(ok()); | 341 | 813k | return std::move(storage_.data_); | 342 | 813k | } |
jxl::StatusOr<std::__1::vector<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > >, std::__1::allocator<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > > > > >::value_() && Line | Count | Source | 339 | 3.80k | T value_() && { | 340 | 3.80k | JXL_DASSERT(ok()); | 341 | 3.80k | return std::move(storage_.data_); | 342 | 3.80k | } |
Unexecuted instantiation: jxl::StatusOr<jxl::Image3<unsigned char> >::value_() && Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<jxl::(anonymous namespace)::GaussianEllipse>::value_() && Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<std::__1::vector<jxl::(anonymous namespace)::ConnectedComponent, std::__1::allocator<jxl::(anonymous namespace)::ConnectedComponent> > >::value_() && Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ButteraugliComparator, std::__1::default_delete<jxl::ButteraugliComparator> > >::value_() && jxl::StatusOr<jxl::AlignedArray<jxl::GroupDecCache> >::value_() && Line | Count | Source | 339 | 9.06k | T value_() && { | 340 | 9.06k | JXL_DASSERT(ok()); | 341 | 9.06k | return std::move(storage_.data_); | 342 | 9.06k | } |
Unexecuted instantiation: jxl::StatusOr<jxl::ImageBundle>::value_() && jxl::StatusOr<jxl::Plane<signed char> >::value_() && Line | Count | Source | 339 | 84.0k | T value_() && { | 340 | 84.0k | JXL_DASSERT(ok()); | 341 | 84.0k | return std::move(storage_.data_); | 342 | 84.0k | } |
jxl::StatusOr<jxl::ANSSymbolReader>::value_() && Line | Count | Source | 339 | 123k | T value_() && { | 340 | 123k | JXL_DASSERT(ok()); | 341 | 123k | return std::move(storage_.data_); | 342 | 123k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::RenderPipeline, std::__1::default_delete<jxl::RenderPipeline> > >::value_() && Line | Count | Source | 339 | 43.2k | T value_() && { | 340 | 43.2k | JXL_DASSERT(ok()); | 341 | 43.2k | return std::move(storage_.data_); | 342 | 43.2k | } |
Unexecuted instantiation: jxl::StatusOr<jxl::Plane<hwy::float16_t> >::value_() && Unexecuted instantiation: jxl::StatusOr<jxl::Plane<unsigned int> >::value_() && jxl::StatusOr<jxl::Plane<short> >::value_() && Line | Count | Source | 339 | 12.7k | T value_() && { | 340 | 12.7k | JXL_DASSERT(ok()); | 341 | 12.7k | return std::move(storage_.data_); | 342 | 12.7k | } |
jxl::StatusOr<jxl::Image3<short> >::value_() && Line | Count | Source | 339 | 4.26k | T value_() && { | 340 | 4.26k | JXL_DASSERT(ok()); | 341 | 4.26k | return std::move(storage_.data_); | 342 | 4.26k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<short>, std::__1::default_delete<jxl::ACImageT<short> > > >::value_() && Line | Count | Source | 339 | 4.26k | T value_() && { | 340 | 4.26k | JXL_DASSERT(ok()); | 341 | 4.26k | return std::move(storage_.data_); | 342 | 4.26k | } |
dec_group.cc:jxl::StatusOr<jxl::(anonymous namespace)::GetBlockFromEncoder>::value_() && Line | Count | Source | 339 | 23.4k | T value_() && { | 340 | 23.4k | JXL_DASSERT(ok()); | 341 | 23.4k | return std::move(storage_.data_); | 342 | 23.4k | } |
jxl::StatusOr<jxl::RectT<long> >::value_() && Line | Count | Source | 339 | 209k | T value_() && { | 340 | 209k | JXL_DASSERT(ok()); | 341 | 209k | return std::move(storage_.data_); | 342 | 209k | } |
jxl::StatusOr<jxl::RectT<unsigned long> >::value_() && Line | Count | Source | 339 | 344k | T value_() && { | 340 | 344k | JXL_DASSERT(ok()); | 341 | 344k | return std::move(storage_.data_); | 342 | 344k | } |
low_memory_render_pipeline.cc:jxl::StatusOr<jxl::(anonymous namespace)::Rows>::value_() && Line | Count | Source | 339 | 58.8k | T value_() && { | 340 | 58.8k | JXL_DASSERT(ok()); | 341 | 58.8k | return std::move(storage_.data_); | 342 | 58.8k | } |
|
343 | | |
344 | 71.4M | ~StatusOr() { |
345 | 71.4M | if (code_ == StatusCode::kOk) { |
346 | 71.4M | storage_.data_.~T(); |
347 | 71.4M | } |
348 | 71.4M | } jxl::StatusOr<jxl::AlignedMemory>::~StatusOr() Line | Count | Source | 344 | 33.9M | ~StatusOr() { | 345 | 33.9M | if (code_ == StatusCode::kOk) { | 346 | 33.9M | storage_.data_.~T(); | 347 | 33.9M | } | 348 | 33.9M | } |
jxl::StatusOr<jxl::PaddedBytes>::~StatusOr() Line | Count | Source | 344 | 8.63k | ~StatusOr() { | 345 | 8.63k | if (code_ == StatusCode::kOk) { | 346 | 8.63k | storage_.data_.~T(); | 347 | 8.63k | } | 348 | 8.63k | } |
Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::jpeg::JPEGData, std::__1::default_delete<jxl::jpeg::JPEGData> > >::~StatusOr() jxl::StatusOr<JxlOutputProcessorBuffer>::~StatusOr() Line | Count | Source | 344 | 9.84k | ~StatusOr() { | 345 | 9.84k | if (code_ == StatusCode::kOk) { | 346 | 9.84k | storage_.data_.~T(); | 347 | 9.84k | } | 348 | 9.84k | } |
jxl::StatusOr<unsigned long>::~StatusOr() Line | Count | Source | 344 | 283k | ~StatusOr() { | 345 | 283k | if (code_ == StatusCode::kOk) { | 346 | 283k | storage_.data_.~T(); | 347 | 283k | } | 348 | 283k | } |
enc_ans.cc:jxl::StatusOr<jxl::(anonymous namespace)::ANSEncodingHistogram>::~StatusOr() Line | Count | Source | 344 | 729k | ~StatusOr() { | 345 | 729k | if (code_ == StatusCode::kOk) { | 346 | 729k | storage_.data_.~T(); | 347 | 729k | } | 348 | 729k | } |
jxl::StatusOr<float>::~StatusOr() Line | Count | Source | 344 | 694k | ~StatusOr() { | 345 | 694k | if (code_ == StatusCode::kOk) { | 346 | 694k | storage_.data_.~T(); | 347 | 694k | } | 348 | 694k | } |
jxl::StatusOr<jxl::Plane<float> >::~StatusOr() Line | Count | Source | 344 | 32.2M | ~StatusOr() { | 345 | 32.2M | if (code_ == StatusCode::kOk) { | 346 | 32.2M | storage_.data_.~T(); | 347 | 32.2M | } | 348 | 32.2M | } |
jxl::StatusOr<jxl::Image3<float> >::~StatusOr() Line | Count | Source | 344 | 172k | ~StatusOr() { | 345 | 172k | if (code_ == StatusCode::kOk) { | 346 | 172k | storage_.data_.~T(); | 347 | 172k | } | 348 | 172k | } |
jxl::StatusOr<jxl::Image3<int> >::~StatusOr() Line | Count | Source | 344 | 12.0k | ~StatusOr() { | 345 | 12.0k | if (code_ == StatusCode::kOk) { | 346 | 12.0k | storage_.data_.~T(); | 347 | 12.0k | } | 348 | 12.0k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<int>, std::__1::default_delete<jxl::ACImageT<int> > > >::~StatusOr() Line | Count | Source | 344 | 3.82k | ~StatusOr() { | 345 | 3.82k | if (code_ == StatusCode::kOk) { | 346 | 3.82k | storage_.data_.~T(); | 347 | 3.82k | } | 348 | 3.82k | } |
jxl::StatusOr<jxl::Plane<unsigned char> >::~StatusOr() Line | Count | Source | 344 | 133k | ~StatusOr() { | 345 | 133k | if (code_ == StatusCode::kOk) { | 346 | 133k | storage_.data_.~T(); | 347 | 133k | } | 348 | 133k | } |
jxl::StatusOr<jxl::ColorCorrelationMap>::~StatusOr() Line | Count | Source | 344 | 42.0k | ~StatusOr() { | 345 | 42.0k | if (code_ == StatusCode::kOk) { | 346 | 42.0k | storage_.data_.~T(); | 347 | 42.0k | } | 348 | 42.0k | } |
jxl::StatusOr<jxl::Plane<int> >::~StatusOr() Line | Count | Source | 344 | 1.18M | ~StatusOr() { | 345 | 1.18M | if (code_ == StatusCode::kOk) { | 346 | 1.18M | storage_.data_.~T(); | 347 | 1.18M | } | 348 | 1.18M | } |
jxl::StatusOr<jxl::AcStrategyImage>::~StatusOr() Line | Count | Source | 344 | 42.0k | ~StatusOr() { | 345 | 42.0k | if (code_ == StatusCode::kOk) { | 346 | 42.0k | storage_.data_.~T(); | 347 | 42.0k | } | 348 | 42.0k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ModularFrameEncoder, std::__1::default_delete<jxl::ModularFrameEncoder> > >::~StatusOr() Line | Count | Source | 344 | 3.93k | ~StatusOr() { | 345 | 3.93k | if (code_ == StatusCode::kOk) { | 346 | 3.93k | storage_.data_.~T(); | 347 | 3.93k | } | 348 | 3.93k | } |
jxl::StatusOr<bool>::~StatusOr() Line | Count | Source | 344 | 1.04k | ~StatusOr() { | 345 | 1.04k | if (code_ == StatusCode::kOk) { | 346 | 1.04k | storage_.data_.~T(); | 347 | 1.04k | } | 348 | 1.04k | } |
jxl::StatusOr<jxl::ModularStreamId>::~StatusOr() Line | Count | Source | 344 | 3.06k | ~StatusOr() { | 345 | 3.06k | if (code_ == StatusCode::kOk) { | 346 | 3.06k | storage_.data_.~T(); | 347 | 3.06k | } | 348 | 3.06k | } |
jxl::StatusOr<jxl::Image>::~StatusOr() Line | Count | Source | 344 | 135k | ~StatusOr() { | 345 | 135k | if (code_ == StatusCode::kOk) { | 346 | 135k | storage_.data_.~T(); | 347 | 135k | } | 348 | 135k | } |
jxl::StatusOr<std::__1::vector<jxl::PropertyDecisionNode, std::__1::allocator<jxl::PropertyDecisionNode> > >::~StatusOr() Line | Count | Source | 344 | 4.83k | ~StatusOr() { | 345 | 4.83k | if (code_ == StatusCode::kOk) { | 346 | 4.83k | storage_.data_.~T(); | 347 | 4.83k | } | 348 | 4.83k | } |
jxl::StatusOr<jxl::Channel>::~StatusOr() Line | Count | Source | 344 | 813k | ~StatusOr() { | 345 | 813k | if (code_ == StatusCode::kOk) { | 346 | 813k | storage_.data_.~T(); | 347 | 813k | } | 348 | 813k | } |
jxl::StatusOr<std::__1::vector<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > >, std::__1::allocator<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > > > > >::~StatusOr() Line | Count | Source | 344 | 3.80k | ~StatusOr() { | 345 | 3.80k | if (code_ == StatusCode::kOk) { | 346 | 3.80k | storage_.data_.~T(); | 347 | 3.80k | } | 348 | 3.80k | } |
Unexecuted instantiation: jxl::StatusOr<jxl::Image3<unsigned char> >::~StatusOr() Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<jxl::(anonymous namespace)::GaussianEllipse>::~StatusOr() Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<std::__1::vector<jxl::(anonymous namespace)::ConnectedComponent, std::__1::allocator<jxl::(anonymous namespace)::ConnectedComponent> > >::~StatusOr() Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ButteraugliComparator, std::__1::default_delete<jxl::ButteraugliComparator> > >::~StatusOr() jxl::StatusOr<jxl::AlignedArray<jxl::GroupDecCache> >::~StatusOr() Line | Count | Source | 344 | 9.06k | ~StatusOr() { | 345 | 9.06k | if (code_ == StatusCode::kOk) { | 346 | 9.06k | storage_.data_.~T(); | 347 | 9.06k | } | 348 | 9.06k | } |
Unexecuted instantiation: jxl::StatusOr<jxl::ImageBundle>::~StatusOr() jxl::StatusOr<jxl::Plane<signed char> >::~StatusOr() Line | Count | Source | 344 | 84.0k | ~StatusOr() { | 345 | 84.0k | if (code_ == StatusCode::kOk) { | 346 | 84.0k | storage_.data_.~T(); | 347 | 84.0k | } | 348 | 84.0k | } |
jxl::StatusOr<jxl::ANSSymbolReader>::~StatusOr() Line | Count | Source | 344 | 123k | ~StatusOr() { | 345 | 123k | if (code_ == StatusCode::kOk) { | 346 | 123k | storage_.data_.~T(); | 347 | 123k | } | 348 | 123k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::RenderPipeline, std::__1::default_delete<jxl::RenderPipeline> > >::~StatusOr() Line | Count | Source | 344 | 43.2k | ~StatusOr() { | 345 | 43.2k | if (code_ == StatusCode::kOk) { | 346 | 43.2k | storage_.data_.~T(); | 347 | 43.2k | } | 348 | 43.2k | } |
Unexecuted instantiation: jxl::StatusOr<jxl::Plane<hwy::float16_t> >::~StatusOr() Unexecuted instantiation: jxl::StatusOr<jxl::Plane<unsigned int> >::~StatusOr() jxl::StatusOr<jxl::Plane<short> >::~StatusOr() Line | Count | Source | 344 | 12.7k | ~StatusOr() { | 345 | 12.7k | if (code_ == StatusCode::kOk) { | 346 | 12.7k | storage_.data_.~T(); | 347 | 12.7k | } | 348 | 12.7k | } |
jxl::StatusOr<jxl::Image3<short> >::~StatusOr() Line | Count | Source | 344 | 4.26k | ~StatusOr() { | 345 | 4.26k | if (code_ == StatusCode::kOk) { | 346 | 4.26k | storage_.data_.~T(); | 347 | 4.26k | } | 348 | 4.26k | } |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<short>, std::__1::default_delete<jxl::ACImageT<short> > > >::~StatusOr() Line | Count | Source | 344 | 4.26k | ~StatusOr() { | 345 | 4.26k | if (code_ == StatusCode::kOk) { | 346 | 4.26k | storage_.data_.~T(); | 347 | 4.26k | } | 348 | 4.26k | } |
dec_group.cc:jxl::StatusOr<jxl::(anonymous namespace)::GetBlockFromEncoder>::~StatusOr() Line | Count | Source | 344 | 23.4k | ~StatusOr() { | 345 | 23.4k | if (code_ == StatusCode::kOk) { | 346 | 23.4k | storage_.data_.~T(); | 347 | 23.4k | } | 348 | 23.4k | } |
jxl::StatusOr<jxl::RectT<long> >::~StatusOr() Line | Count | Source | 344 | 209k | ~StatusOr() { | 345 | 209k | if (code_ == StatusCode::kOk) { | 346 | 209k | storage_.data_.~T(); | 347 | 209k | } | 348 | 209k | } |
jxl::StatusOr<jxl::RectT<unsigned long> >::~StatusOr() Line | Count | Source | 344 | 344k | ~StatusOr() { | 345 | 344k | if (code_ == StatusCode::kOk) { | 346 | 344k | storage_.data_.~T(); | 347 | 344k | } | 348 | 344k | } |
low_memory_render_pipeline.cc:jxl::StatusOr<jxl::(anonymous namespace)::Rows>::~StatusOr() Line | Count | Source | 344 | 58.8k | ~StatusOr() { | 345 | 58.8k | if (code_ == StatusCode::kOk) { | 346 | 58.8k | storage_.data_.~T(); | 347 | 58.8k | } | 348 | 58.8k | } |
|
349 | | |
350 | | private: |
351 | | union Storage { |
352 | | char placeholder_; |
353 | | T data_; |
354 | 71.4M | Storage() {}jxl::StatusOr<jxl::PaddedBytes>::Storage::Storage() Line | Count | Source | 354 | 8.63k | Storage() {} |
jxl::StatusOr<JxlOutputProcessorBuffer>::Storage::Storage() Line | Count | Source | 354 | 9.84k | Storage() {} |
enc_ans.cc:jxl::StatusOr<jxl::(anonymous namespace)::ANSEncodingHistogram>::Storage::Storage() Line | Count | Source | 354 | 729k | Storage() {} |
jxl::StatusOr<float>::Storage::Storage() Line | Count | Source | 354 | 694k | Storage() {} |
jxl::StatusOr<unsigned long>::Storage::Storage() Line | Count | Source | 354 | 283k | Storage() {} |
jxl::StatusOr<jxl::Plane<int> >::Storage::Storage() Line | Count | Source | 354 | 1.18M | Storage() {} |
jxl::StatusOr<jxl::Plane<unsigned char> >::Storage::Storage() Line | Count | Source | 354 | 133k | Storage() {} |
jxl::StatusOr<jxl::Image3<float> >::Storage::Storage() Line | Count | Source | 354 | 172k | Storage() {} |
jxl::StatusOr<jxl::Plane<float> >::Storage::Storage() Line | Count | Source | 354 | 32.2M | Storage() {} |
jxl::StatusOr<jxl::Image3<int> >::Storage::Storage() Line | Count | Source | 354 | 12.0k | Storage() {} |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<int>, std::__1::default_delete<jxl::ACImageT<int> > > >::Storage::Storage() Line | Count | Source | 354 | 3.82k | Storage() {} |
jxl::StatusOr<jxl::ModularStreamId>::Storage::Storage() Line | Count | Source | 354 | 3.06k | Storage() {} |
jxl::StatusOr<bool>::Storage::Storage() Line | Count | Source | 354 | 1.04k | Storage() {} |
jxl::StatusOr<std::__1::unique_ptr<jxl::ModularFrameEncoder, std::__1::default_delete<jxl::ModularFrameEncoder> > >::Storage::Storage() Line | Count | Source | 354 | 3.93k | Storage() {} |
jxl::StatusOr<std::__1::vector<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > >, std::__1::allocator<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > > > > >::Storage::Storage() Line | Count | Source | 354 | 3.80k | Storage() {} |
Unexecuted instantiation: jxl::StatusOr<jxl::Image3<unsigned char> >::Storage::Storage() Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<std::__1::vector<jxl::(anonymous namespace)::ConnectedComponent, std::__1::allocator<jxl::(anonymous namespace)::ConnectedComponent> > >::Storage::Storage() Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<jxl::(anonymous namespace)::GaussianEllipse>::Storage::Storage() jxl::StatusOr<jxl::AlignedArray<jxl::GroupDecCache> >::Storage::Storage() Line | Count | Source | 354 | 9.06k | Storage() {} |
Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ButteraugliComparator, std::__1::default_delete<jxl::ButteraugliComparator> > >::Storage::Storage() Unexecuted instantiation: jxl::StatusOr<jxl::ImageBundle>::Storage::Storage() Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::jpeg::JPEGData, std::__1::default_delete<jxl::jpeg::JPEGData> > >::Storage::Storage() jxl::StatusOr<std::__1::vector<jxl::PropertyDecisionNode, std::__1::allocator<jxl::PropertyDecisionNode> > >::Storage::Storage() Line | Count | Source | 354 | 4.83k | Storage() {} |
jxl::StatusOr<jxl::AcStrategyImage>::Storage::Storage() Line | Count | Source | 354 | 42.0k | Storage() {} |
jxl::StatusOr<jxl::Plane<signed char> >::Storage::Storage() Line | Count | Source | 354 | 84.0k | Storage() {} |
jxl::StatusOr<jxl::ColorCorrelationMap>::Storage::Storage() Line | Count | Source | 354 | 42.0k | Storage() {} |
jxl::StatusOr<jxl::ANSSymbolReader>::Storage::Storage() Line | Count | Source | 354 | 123k | Storage() {} |
Unexecuted instantiation: jxl::StatusOr<jxl::Plane<hwy::float16_t> >::Storage::Storage() Unexecuted instantiation: jxl::StatusOr<jxl::Plane<unsigned int> >::Storage::Storage() jxl::StatusOr<jxl::Plane<short> >::Storage::Storage() Line | Count | Source | 354 | 12.7k | Storage() {} |
jxl::StatusOr<jxl::Image3<short> >::Storage::Storage() Line | Count | Source | 354 | 4.26k | Storage() {} |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<short>, std::__1::default_delete<jxl::ACImageT<short> > > >::Storage::Storage() Line | Count | Source | 354 | 4.26k | Storage() {} |
dec_group.cc:jxl::StatusOr<jxl::(anonymous namespace)::GetBlockFromEncoder>::Storage::Storage() Line | Count | Source | 354 | 23.4k | Storage() {} |
jxl::StatusOr<jxl::AlignedMemory>::Storage::Storage() Line | Count | Source | 354 | 33.9M | Storage() {} |
jxl::StatusOr<jxl::Channel>::Storage::Storage() Line | Count | Source | 354 | 813k | Storage() {} |
jxl::StatusOr<jxl::Image>::Storage::Storage() Line | Count | Source | 354 | 135k | Storage() {} |
jxl::StatusOr<std::__1::unique_ptr<jxl::RenderPipeline, std::__1::default_delete<jxl::RenderPipeline> > >::Storage::Storage() Line | Count | Source | 354 | 43.2k | Storage() {} |
low_memory_render_pipeline.cc:jxl::StatusOr<jxl::(anonymous namespace)::Rows>::Storage::Storage() Line | Count | Source | 354 | 58.8k | Storage() {} |
jxl::StatusOr<jxl::RectT<long> >::Storage::Storage() Line | Count | Source | 354 | 209k | Storage() {} |
jxl::StatusOr<jxl::RectT<unsigned long> >::Storage::Storage() Line | Count | Source | 354 | 344k | Storage() {} |
Unexecuted instantiation: jxl::StatusOr<jxl::QuantizedSpline>::Storage::Storage() |
355 | 71.4M | ~Storage() {}jxl::StatusOr<jxl::AlignedMemory>::Storage::~Storage() Line | Count | Source | 355 | 33.9M | ~Storage() {} |
jxl::StatusOr<jxl::PaddedBytes>::Storage::~Storage() Line | Count | Source | 355 | 8.63k | ~Storage() {} |
Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::jpeg::JPEGData, std::__1::default_delete<jxl::jpeg::JPEGData> > >::Storage::~Storage() jxl::StatusOr<JxlOutputProcessorBuffer>::Storage::~Storage() Line | Count | Source | 355 | 9.84k | ~Storage() {} |
jxl::StatusOr<unsigned long>::Storage::~Storage() Line | Count | Source | 355 | 283k | ~Storage() {} |
enc_ans.cc:jxl::StatusOr<jxl::(anonymous namespace)::ANSEncodingHistogram>::Storage::~Storage() Line | Count | Source | 355 | 729k | ~Storage() {} |
jxl::StatusOr<float>::Storage::~Storage() Line | Count | Source | 355 | 694k | ~Storage() {} |
jxl::StatusOr<jxl::Plane<float> >::Storage::~Storage() Line | Count | Source | 355 | 32.2M | ~Storage() {} |
jxl::StatusOr<jxl::Image3<float> >::Storage::~Storage() Line | Count | Source | 355 | 172k | ~Storage() {} |
jxl::StatusOr<jxl::Image3<int> >::Storage::~Storage() Line | Count | Source | 355 | 12.0k | ~Storage() {} |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<int>, std::__1::default_delete<jxl::ACImageT<int> > > >::Storage::~Storage() Line | Count | Source | 355 | 3.82k | ~Storage() {} |
jxl::StatusOr<jxl::Plane<unsigned char> >::Storage::~Storage() Line | Count | Source | 355 | 133k | ~Storage() {} |
jxl::StatusOr<jxl::ColorCorrelationMap>::Storage::~Storage() Line | Count | Source | 355 | 42.0k | ~Storage() {} |
jxl::StatusOr<jxl::Plane<int> >::Storage::~Storage() Line | Count | Source | 355 | 1.18M | ~Storage() {} |
jxl::StatusOr<jxl::AcStrategyImage>::Storage::~Storage() Line | Count | Source | 355 | 42.0k | ~Storage() {} |
jxl::StatusOr<std::__1::unique_ptr<jxl::ModularFrameEncoder, std::__1::default_delete<jxl::ModularFrameEncoder> > >::Storage::~Storage() Line | Count | Source | 355 | 3.93k | ~Storage() {} |
jxl::StatusOr<bool>::Storage::~Storage() Line | Count | Source | 355 | 1.04k | ~Storage() {} |
jxl::StatusOr<jxl::ModularStreamId>::Storage::~Storage() Line | Count | Source | 355 | 3.06k | ~Storage() {} |
jxl::StatusOr<jxl::Image>::Storage::~Storage() Line | Count | Source | 355 | 135k | ~Storage() {} |
jxl::StatusOr<std::__1::vector<jxl::PropertyDecisionNode, std::__1::allocator<jxl::PropertyDecisionNode> > >::Storage::~Storage() Line | Count | Source | 355 | 4.83k | ~Storage() {} |
jxl::StatusOr<jxl::Channel>::Storage::~Storage() Line | Count | Source | 355 | 813k | ~Storage() {} |
jxl::StatusOr<std::__1::vector<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > >, std::__1::allocator<std::__1::pair<jxl::QuantizedPatch, std::__1::vector<std::__1::pair<unsigned int, unsigned int>, std::__1::allocator<std::__1::pair<unsigned int, unsigned int> > > > > > >::Storage::~Storage() Line | Count | Source | 355 | 3.80k | ~Storage() {} |
Unexecuted instantiation: jxl::StatusOr<jxl::Image3<unsigned char> >::Storage::~Storage() Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<jxl::(anonymous namespace)::GaussianEllipse>::Storage::~Storage() Unexecuted instantiation: enc_detect_dots.cc:jxl::StatusOr<std::__1::vector<jxl::(anonymous namespace)::ConnectedComponent, std::__1::allocator<jxl::(anonymous namespace)::ConnectedComponent> > >::Storage::~Storage() Unexecuted instantiation: jxl::StatusOr<std::__1::unique_ptr<jxl::ButteraugliComparator, std::__1::default_delete<jxl::ButteraugliComparator> > >::Storage::~Storage() jxl::StatusOr<jxl::AlignedArray<jxl::GroupDecCache> >::Storage::~Storage() Line | Count | Source | 355 | 9.06k | ~Storage() {} |
Unexecuted instantiation: jxl::StatusOr<jxl::ImageBundle>::Storage::~Storage() jxl::StatusOr<jxl::Plane<signed char> >::Storage::~Storage() Line | Count | Source | 355 | 84.0k | ~Storage() {} |
jxl::StatusOr<jxl::ANSSymbolReader>::Storage::~Storage() Line | Count | Source | 355 | 123k | ~Storage() {} |
jxl::StatusOr<std::__1::unique_ptr<jxl::RenderPipeline, std::__1::default_delete<jxl::RenderPipeline> > >::Storage::~Storage() Line | Count | Source | 355 | 43.2k | ~Storage() {} |
Unexecuted instantiation: jxl::StatusOr<jxl::Plane<hwy::float16_t> >::Storage::~Storage() Unexecuted instantiation: jxl::StatusOr<jxl::Plane<unsigned int> >::Storage::~Storage() jxl::StatusOr<jxl::Plane<short> >::Storage::~Storage() Line | Count | Source | 355 | 12.7k | ~Storage() {} |
jxl::StatusOr<jxl::Image3<short> >::Storage::~Storage() Line | Count | Source | 355 | 4.26k | ~Storage() {} |
jxl::StatusOr<std::__1::unique_ptr<jxl::ACImageT<short>, std::__1::default_delete<jxl::ACImageT<short> > > >::Storage::~Storage() Line | Count | Source | 355 | 4.26k | ~Storage() {} |
dec_group.cc:jxl::StatusOr<jxl::(anonymous namespace)::GetBlockFromEncoder>::Storage::~Storage() Line | Count | Source | 355 | 23.4k | ~Storage() {} |
jxl::StatusOr<jxl::RectT<long> >::Storage::~Storage() Line | Count | Source | 355 | 209k | ~Storage() {} |
jxl::StatusOr<jxl::RectT<unsigned long> >::Storage::~Storage() Line | Count | Source | 355 | 344k | ~Storage() {} |
low_memory_render_pipeline.cc:jxl::StatusOr<jxl::(anonymous namespace)::Rows>::Storage::~Storage() Line | Count | Source | 355 | 58.8k | ~Storage() {} |
|
356 | | } storage_; |
357 | | |
358 | | StatusCode code_; |
359 | | }; |
360 | | |
361 | | #define JXL_ASSIGN_OR_RETURN(lhs, statusor) \ |
362 | 71.4M | PRIVATE_JXL_ASSIGN_OR_RETURN_IMPL( \ |
363 | 71.4M | JXL_JOIN(assign_or_return_temporary_variable, __LINE__), lhs, statusor) |
364 | | |
365 | | // NOLINTBEGIN(bugprone-macro-parentheses) |
366 | | #define PRIVATE_JXL_ASSIGN_OR_RETURN_IMPL(name, lhs, statusor) \ |
367 | 71.4M | auto name = statusor; \ |
368 | 71.4M | JXL_RETURN_IF_ERROR(name.status()); \ |
369 | 71.4M | lhs = std::move(name).value_(); |
370 | | // NOLINTEND(bugprone-macro-parentheses) |
371 | | |
372 | | #define JXL_ASSIGN_OR_QUIT(lhs, statusor, message) \ |
373 | 0 | PRIVATE_JXL_ASSIGN_OR_QUIT_IMPL( \ |
374 | 0 | JXL_JOIN(assign_or_temporary_variable, __LINE__), lhs, statusor, \ |
375 | 0 | message) |
376 | | |
377 | | // NOLINTBEGIN(bugprone-macro-parentheses) |
378 | | #define PRIVATE_JXL_ASSIGN_OR_QUIT_IMPL(name, lhs, statusor, message) \ |
379 | 0 | auto name = statusor; \ |
380 | 0 | if (!name.ok()) { \ |
381 | 0 | QUIT(message); \ |
382 | 0 | } \ |
383 | 0 | lhs = std::move(name).value_(); |
384 | | // NOLINTEND(bugprone-macro-parentheses) |
385 | | |
386 | | } // namespace jxl |
387 | | |
388 | | #endif // LIB_JXL_BASE_STATUS_H_ |