picklpf.h 1.27 KB
Newer Older
Jingning Han's avatar
Jingning Han committed
1
/*
Yaowu Xu's avatar
Yaowu Xu committed
2
 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Jingning Han's avatar
Jingning Han committed
3
 *
Yaowu Xu's avatar
Yaowu Xu committed
4 5 6 7 8 9
 * This source code is subject to the terms of the BSD 2 Clause License and
 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
 * was not distributed with this source code in the LICENSE file, you can
 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
 * Media Patent License 1.0 was not distributed with this source code in the
 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
Jingning Han's avatar
Jingning Han committed
10 11
 */

Yaowu Xu's avatar
Yaowu Xu committed
12 13
#ifndef AV1_ENCODER_PICKLPF_H_
#define AV1_ENCODER_PICKLPF_H_
Jingning Han's avatar
Jingning Han committed
14 15 16 17 18

#ifdef __cplusplus
extern "C" {
#endif

19
#include "av1/encoder/encoder.h"
Jingning Han's avatar
Jingning Han committed
20 21

struct yv12_buffer_config;
Yaowu Xu's avatar
Yaowu Xu committed
22 23
struct AV1_COMP;
int av1_get_max_filter_level(const AV1_COMP *cpi);
24 25
#if CONFIG_UV_LVL
int av1_search_filter_level(const YV12_BUFFER_CONFIG *sd, AV1_COMP *cpi,
26
                            int partial_frame, double *err, int plane, int dir);
27
#else
Yaowu Xu's avatar
Yaowu Xu committed
28 29
int av1_search_filter_level(const YV12_BUFFER_CONFIG *sd, AV1_COMP *cpi,
                            int partial_frame, double *err);
30
#endif
Yaowu Xu's avatar
Yaowu Xu committed
31 32
void av1_pick_filter_level(const struct yv12_buffer_config *sd,
                           struct AV1_COMP *cpi, LPF_PICK_METHOD method);
Jingning Han's avatar
Jingning Han committed
33 34 35 36
#ifdef __cplusplus
}  // extern "C"
#endif

Yaowu Xu's avatar
Yaowu Xu committed
37
#endif  // AV1_ENCODER_PICKLPF_H_