libjxl

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

blending.h (824B)


      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_BLENDING_H_
      7 #define LIB_JXL_BLENDING_H_
      8 
      9 #include <vector>
     10 
     11 #include "lib/jxl/dec_patch_dictionary.h"
     12 #include "lib/jxl/frame_header.h"
     13 #include "lib/jxl/image_metadata.h"
     14 
     15 namespace jxl {
     16 
     17 bool NeedsBlending(const FrameHeader& frame_header);
     18 
     19 Status PerformBlending(const float* const* bg, const float* const* fg,
     20                        float* const* out, size_t x0, size_t xsize,
     21                        const PatchBlending& color_blending,
     22                        const PatchBlending* ec_blending,
     23                        const std::vector<ExtraChannelInfo>& extra_channel_info);
     24 
     25 }  // namespace jxl
     26 
     27 #endif  // LIB_JXL_BLENDING_H_