pgx.h (857B)
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_EXTRAS_DEC_PGX_H_ 7 #define LIB_EXTRAS_DEC_PGX_H_ 8 9 // Decodes PGX pixels in memory. 10 11 #include <stddef.h> 12 #include <stdint.h> 13 14 #include "lib/extras/dec/color_hints.h" 15 #include "lib/extras/packed_image.h" 16 #include "lib/jxl/base/data_parallel.h" 17 #include "lib/jxl/base/span.h" 18 #include "lib/jxl/base/status.h" 19 20 namespace jxl { 21 22 struct SizeConstraints; 23 24 namespace extras { 25 26 // Decodes `bytes` into `ppf`. 27 Status DecodeImagePGX(Span<const uint8_t> bytes, const ColorHints& color_hints, 28 PackedPixelFile* ppf, 29 const SizeConstraints* constraints = nullptr); 30 31 } // namespace extras 32 } // namespace jxl 33 34 #endif // LIB_EXTRAS_DEC_PGX_H_