// Copyright (c) the JPEG XL Project Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.
// Suppress any -Wdeprecated-declarations warning that might be emitted by // GCC or Clang by std::stable_sort in C++17 or later mode #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" #elifdefined(__GNUC__) #pragma GCC push_options #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif
template <typename T1, typename T2>
constexpr inline T1 DivCeil(T1 a, T2 b) { return (a + b - 1) / b;
}
template <typename T1, typename T2>
constexpr inline T1 RoundUpTo(T1 a, T2 b) { return DivCeil(a, b) * b;
}
constexpr size_t kDCTBlockSize = 64; // This is set to the same value as MAX_COMPS_IN_SCAN, because that is the // maximum number of channels the libjpeg-turbo decoder can decode.
constexpr int kMaxComponents = 4;
constexpr int kMaxQuantTables = 4;
constexpr int kJpegPrecision = 8;
constexpr int kMaxHuffmanTables = 4;
constexpr size_t kJpegHuffmanMaxBitLength = 16;
constexpr int kJpegHuffmanAlphabetSize = 256;
constexpr int kJpegDCAlphabetSize = 12;
constexpr int kMaxDHTMarkers = 512;
constexpr int kMaxDimPixels = 65535;
constexpr uint8_t kApp1 = 0xE1;
constexpr uint8_t kApp2 = 0xE2; const uint8_t kIccProfileTag[12] = "ICC_PROFILE"; const uint8_t kExifTag[6] = "Exif\0"; const uint8_t kXMPTag[29] = "http://ns.adobe.com/xap/1.0/";
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.17Bemerkung:
(vorverarbeitet am 2026-06-05)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.