libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

common.h (674B)


      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_COMMON_H_
      7 #define LIB_EXTRAS_COMMON_H_
      8 
      9 #include <jxl/codestream_header.h>
     10 #include <jxl/types.h>
     11 
     12 #include <vector>
     13 
     14 #include "lib/jxl/base/status.h"
     15 
     16 namespace jxl {
     17 namespace extras {
     18 
     19 // TODO(sboukortt): consider exposing this as part of the C API.
     20 Status SelectFormat(const std::vector<JxlPixelFormat>& accepted_formats,
     21                     const JxlBasicInfo& basic_info, JxlPixelFormat* format);
     22 
     23 }  // namespace extras
     24 }  // namespace jxl
     25 
     26 #endif  // LIB_EXTRAS_COMMON_H_