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_UPSAMPLING_H_
7 #define LIB_JXL_RENDER_PIPELINE_STAGE_UPSAMPLING_H_
8 #include <math.h>
9 #include <stdint.h>
10 #include <stdio.h>
11 
12 #include <algorithm>
13 #include <utility>
14 #include <vector>
15 
16 #include "lib/jxl/image_metadata.h"
17 #include "lib/jxl/render_pipeline/render_pipeline_stage.h"
18 
19 namespace jxl {
20 
21 // Upsamples the given channel by the given factor.
22 std::unique_ptr<RenderPipelineStage> GetUpsamplingStage(
23     const CustomTransformData& ups_factors, size_t c, size_t shift);
24 }  // namespace jxl
25 
26 #endif  // LIB_JXL_RENDER_PIPELINE_STAGE_UPSAMPLING_H_
27