1/* 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11#ifndef VP9_COMMON_VP9_POSTPROC_H_ 12#define VP9_COMMON_VP9_POSTPROC_H_ 13 14#include "vpx_ports/mem.h" 15#include "vpx_scale/yv12config.h" 16#include "vp9/common/vp9_blockd.h" 17#include "vp9/common/vp9_mfqe.h" 18#include "vp9/common/vp9_ppflags.h" 19 20#ifdef __cplusplus 21extern "C" { 22#endif 23 24struct postproc_state { 25 int last_q; 26 int last_noise; 27 int last_base_qindex; 28 int last_frame_valid; 29 MODE_INFO *prev_mip; 30 MODE_INFO *prev_mi; 31 int clamp; 32 uint8_t *limits; 33 int8_t *generated_noise; 34}; 35 36struct VP9Common; 37 38#define MFQE_PRECISION 4 39 40int vp9_post_proc_frame(struct VP9Common *cm, YV12_BUFFER_CONFIG *dest, 41 vp9_ppflags_t *flags); 42 43void vp9_denoise(const YV12_BUFFER_CONFIG *src, YV12_BUFFER_CONFIG *dst, int q, 44 uint8_t *limits); 45 46void vp9_deblock(const YV12_BUFFER_CONFIG *src, YV12_BUFFER_CONFIG *dst, int q, 47 uint8_t *limits); 48 49#ifdef __cplusplus 50} // extern "C" 51#endif 52 53#endif // VP9_COMMON_VP9_POSTPROC_H_ 54