Debian Codegraph @

lib/jxl/render_pipeline/stage_xyb.h

raw
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_RENDER_PIPELINE_STAGE_XYB_H_
7 #define LIB_JXL_RENDER_PIPELINE_STAGE_XYB_H_
8 #include <stdint.h>
9
10 #include "lib/jxl/dec_xyb.h"
11 #include "lib/jxl/render_pipeline/render_pipeline_stage.h"
12
13 namespace jxl {
14
15 // Converts the color channels from XYB to linear with appropriate primaries.
16 std::unique_ptr<RenderPipelineStage> GetXYBStage(
17 const OutputEncodingInfo& output_encoding_info);
18
19 // Gets a stage to convert with fixed point arithmetic from XYB to sRGB8 and
20 // write to a uint8 buffer.
21 std::unique_ptr<RenderPipelineStage> GetFastXYBTosRGB8Stage(
22 uint8_t* rgb, size_t stride, size_t width, size_t height, bool rgba,
23 bool has_alpha, size_t alpha_c);
24 } // namespace jxl
25
26 #endif // LIB_JXL_RENDER_PIPELINE_STAGE_XYB_H_