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