Steinar Midtskogen | a9d41e8 | 2017-03-17 12:48:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
| 3 | * |
| 4 | * This source code is subject to the terms of the BSD 2 Clause License and |
| 5 | * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
| 6 | * was not distributed with this source code in the LICENSE file, you can |
| 7 | * obtain it at www.aomedia.org/license/software. If the Alliance for Open |
| 8 | * Media Patent License 1.0 was not distributed with this source code in the |
| 9 | * PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
| 10 | */ |
| 11 | #ifndef AV1_COMMON_DERING_H_ |
| 12 | #define AV1_COMMON_DERING_H_ |
| 13 | |
Jean-Marc Valin | 5f5c132 | 2017-03-21 16:20:21 -0400 | [diff] [blame^] | 14 | #define CDEF_MAX_STRENGTHS 16 |
| 15 | #define CDEF_STRENGTH_BITS 7 |
Steinar Midtskogen | a9d41e8 | 2017-03-17 12:48:15 +0100 | [diff] [blame] | 16 | |
| 17 | #define DERING_STRENGTHS 21 |
| 18 | #define CLPF_STRENGTHS 4 |
| 19 | |
| 20 | #include "./aom_config.h" |
| 21 | #include "aom/aom_integer.h" |
| 22 | #include "aom_ports/mem.h" |
| 23 | #include "av1/common/od_dering.h" |
| 24 | #include "av1/common/onyxc_int.h" |
| 25 | #include "./od_dering.h" |
| 26 | |
| 27 | #ifdef __cplusplus |
| 28 | extern "C" { |
| 29 | #endif |
| 30 | |
| 31 | extern int dering_level_table[DERING_STRENGTHS]; |
| 32 | |
Steinar Midtskogen | a9d41e8 | 2017-03-17 12:48:15 +0100 | [diff] [blame] | 33 | int sb_all_skip(const AV1_COMMON *const cm, int mi_row, int mi_col); |
| 34 | int sb_compute_dering_list(const AV1_COMMON *const cm, int mi_row, int mi_col, |
| 35 | dering_list *dlist); |
| 36 | void av1_cdef_frame(YV12_BUFFER_CONFIG *frame, AV1_COMMON *cm, MACROBLOCKD *xd, |
Jean-Marc Valin | 5f5c132 | 2017-03-21 16:20:21 -0400 | [diff] [blame^] | 37 | int clpf_strength_u, int clpf_strength_v); |
Steinar Midtskogen | a9d41e8 | 2017-03-17 12:48:15 +0100 | [diff] [blame] | 38 | |
| 39 | void av1_cdef_search(YV12_BUFFER_CONFIG *frame, const YV12_BUFFER_CONFIG *ref, |
| 40 | AV1_COMMON *cm, MACROBLOCKD *xd); |
| 41 | |
| 42 | #ifdef __cplusplus |
| 43 | } // extern "C" |
| 44 | #endif |
| 45 | #endif // AV1_COMMON_DERING_H_ |