1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp8/common/postproc.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +/* 1.5 + * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license 1.8 + * that can be found in the LICENSE file in the root of the source 1.9 + * tree. An additional intellectual property rights grant can be found 1.10 + * in the file PATENTS. All contributing project authors may 1.11 + * be found in the AUTHORS file in the root of the source tree. 1.12 + */ 1.13 + 1.14 + 1.15 +#ifndef POSTPROC_H 1.16 +#define POSTPROC_H 1.17 + 1.18 +#include "vpx_ports/mem.h" 1.19 +struct postproc_state 1.20 +{ 1.21 + int last_q; 1.22 + int last_noise; 1.23 + char noise[3072]; 1.24 + int last_base_qindex; 1.25 + int last_frame_valid; 1.26 + DECLARE_ALIGNED(16, char, blackclamp[16]); 1.27 + DECLARE_ALIGNED(16, char, whiteclamp[16]); 1.28 + DECLARE_ALIGNED(16, char, bothclamp[16]); 1.29 +}; 1.30 +#include "onyxc_int.h" 1.31 +#include "ppflags.h" 1.32 +int vp8_post_proc_frame(struct VP8Common *oci, YV12_BUFFER_CONFIG *dest, 1.33 + vp8_ppflags_t *flags); 1.34 + 1.35 + 1.36 +void vp8_de_noise(struct VP8Common *oci, 1.37 + YV12_BUFFER_CONFIG *source, 1.38 + YV12_BUFFER_CONFIG *post, 1.39 + int q, 1.40 + int low_var_thresh, 1.41 + int flag); 1.42 + 1.43 +void vp8_deblock(struct VP8Common *oci, 1.44 + YV12_BUFFER_CONFIG *source, 1.45 + YV12_BUFFER_CONFIG *post, 1.46 + int q, 1.47 + int low_var_thresh, 1.48 + int flag); 1.49 + 1.50 +#define MFQE_PRECISION 4 1.51 + 1.52 +void vp8_multiframe_quality_enhance(struct VP8Common *cm); 1.53 +#endif