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_CHROMA_UPSAMPLING_H_ 7 #define LIB_JXL_RENDER_PIPELINE_STAGE_CHROMA_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/loop_filter.h" 17 #include "lib/jxl/render_pipeline/render_pipeline_stage.h" 18 19 namespace jxl { 20 21 // Applies simple upsampling, either horizontal or vertical, to the given 22 // channel. 23 std::unique_ptr<RenderPipelineStage> GetChromaUpsamplingStage(size_t channel, 24 bool horizontal); 25 } // namespace jxl 26 27 #endif // LIB_JXL_RENDER_PIPELINE_STAGE_CHROMA_UPSAMPLING_H_ 28