• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 VP8_COMMON_POSTPROC_H_
12 #define VP8_COMMON_POSTPROC_H_
13 
14 #include "vpx_ports/mem.h"
15 struct postproc_state {
16   int last_q;
17   int last_noise;
18   int last_base_qindex;
19   int last_frame_valid;
20   int clamp;
21   int8_t *generated_noise;
22 };
23 #include "onyxc_int.h"
24 #include "ppflags.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 int vp8_post_proc_frame(struct VP8Common *oci, YV12_BUFFER_CONFIG *dest,
30                         vp8_ppflags_t *flags);
31 
32 void vp8_de_noise(struct VP8Common *oci, YV12_BUFFER_CONFIG *source,
33                   YV12_BUFFER_CONFIG *post, int q, int low_var_thresh, int flag,
34                   int uvfilter);
35 
36 void vp8_deblock(struct VP8Common *oci, YV12_BUFFER_CONFIG *source,
37                  YV12_BUFFER_CONFIG *post, int q, int low_var_thresh, int flag);
38 
39 #define MFQE_PRECISION 4
40 
41 void vp8_multiframe_quality_enhance(struct VP8Common *cm);
42 #ifdef __cplusplus
43 }  // extern "C"
44 #endif
45 
46 #endif  // VP8_COMMON_POSTPROC_H_
47