| 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_EPF_H_ |
| 7 |
#define LIB_JXL_RENDER_PIPELINE_STAGE_EPF_H_ |
| 8 |
|
| 9 |
#include <cstdint> |
| 10 |
#include <memory> |
| 11 |
|
| 12 |
#include "lib/jxl/image.h" |
| 13 |
#include "lib/jxl/loop_filter.h" |
| 14 |
#include "lib/jxl/render_pipeline/render_pipeline_stage.h" |
| 15 |
|
| 16 |
namespace jxl { |
| 17 |
|
| 18 |
enum class EpfStage : uint8_t { Zero, One, Two }; |
| 19 |
|
| 20 |
// Applies the `epf_stage`-th EPF step with the given settings and `sigma`. |
| 21 |
// `sigma` will be accessed with an offset of (kSigmaPadding, kSigmaPadding), |
| 22 |
// and should have (kSigmaBorder, kSigmaBorder) mirrored sigma values available |
| 23 |
// around the main image. See also filters.(h|cc) |
| 24 |
std::unique_ptr<RenderPipelineStage> GetEPFStage(const LoopFilter& lf, |
| 25 |
const ImageF& sigma, |
| 26 |
EpfStage epf_stage); |
| 27 |
} // namespace jxl |
| 28 |
|
| 29 |
#endif // LIB_JXL_RENDER_PIPELINE_STAGE_EPF_H_ |