blob: 3c0a83462bada5162717bfec4ad530c3eb39792d [file] [log] [blame]
Yaowu Xuc27fc142016-08-22 16:08:15 -07001/*
Yaowu Xu9c01aa12016-09-01 14:32:49 -07002 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Yaowu Xuc27fc142016-08-22 16:08:15 -07003 *
Yaowu Xu9c01aa12016-09-01 14:32:49 -07004 * 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.
Yaowu Xuc27fc142016-08-22 16:08:15 -070010 */
11
Yaowu Xuf883b422016-08-30 14:01:10 -070012#ifndef AV1_ENCODER_PICKLPF_H_
13#define AV1_ENCODER_PICKLPF_H_
Yaowu Xuc27fc142016-08-22 16:08:15 -070014
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#include "av1/encoder/encoder.h"
20
21struct yv12_buffer_config;
Yaowu Xuf883b422016-08-30 14:01:10 -070022struct AV1_COMP;
23int av1_get_max_filter_level(const AV1_COMP *cpi);
24int av1_search_filter_level(const YV12_BUFFER_CONFIG *sd, AV1_COMP *cpi,
25 int partial_frame, double *err);
26void av1_pick_filter_level(const struct yv12_buffer_config *sd,
27 struct AV1_COMP *cpi, LPF_PICK_METHOD method);
Yaowu Xuc27fc142016-08-22 16:08:15 -070028#ifdef __cplusplus
29} // extern "C"
30#endif
31
Yaowu Xuf883b422016-08-30 14:01:10 -070032#endif // AV1_ENCODER_PICKLPF_H_