Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1030)

Side by Side Diff: source/libvpx/vp8/encoder/denoising.h

Issue 375983002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp8/encoder/bitstream.h ('k') | source/libvpx/vp8/encoder/denoising.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 #ifndef VP8_ENCODER_DENOISING_H_ 11 #ifndef VP8_ENCODER_DENOISING_H_
12 #define VP8_ENCODER_DENOISING_H_ 12 #define VP8_ENCODER_DENOISING_H_
13 13
14 #include "block.h" 14 #include "block.h"
15 #include "vp8/common/loopfilter.h" 15 #include "vp8/common/loopfilter.h"
16 16
17 #ifdef __cplusplus 17 #ifdef __cplusplus
18 extern "C" { 18 extern "C" {
19 #endif 19 #endif
20 20
21 #define SUM_DIFF_THRESHOLD (16 * 16 * 2) 21 #define SUM_DIFF_THRESHOLD (16 * 16 * 2)
22 #define SUM_DIFF_THRESHOLD_HIGH (16 * 16 * 3) 22 #define SUM_DIFF_THRESHOLD_HIGH (16 * 16 * 3)
23 #define MOTION_MAGNITUDE_THRESHOLD (8*3) 23 #define MOTION_MAGNITUDE_THRESHOLD (8*3)
24 24
25 #define SUM_DIFF_THRESHOLD_UV (96) // (8 * 8 * 1.5)
26 #define SUM_DIFF_THRESHOLD_HIGH_UV (8 * 8 * 2)
27 #define SUM_DIFF_FROM_AVG_THRESH_UV (8 * 8 * 4)
28 #define MOTION_MAGNITUDE_THRESHOLD_UV (8*3)
29
25 enum vp8_denoiser_decision 30 enum vp8_denoiser_decision
26 { 31 {
27 COPY_BLOCK, 32 COPY_BLOCK,
28 FILTER_BLOCK 33 FILTER_BLOCK
29 }; 34 };
30 35
31 enum vp8_denoiser_filter_state { 36 enum vp8_denoiser_filter_state {
32 kNoFilter, 37 kNoFilter,
33 kFilterZeroMV, 38 kFilterZeroMV,
34 kFilterNonZeroMV 39 kFilterNonZeroMV
(...skipping 21 matching lines...) Expand all
56 loop_filter_info_n *lfi_n, 61 loop_filter_info_n *lfi_n,
57 int mb_row, 62 int mb_row,
58 int mb_col, 63 int mb_col,
59 int block_index); 64 int block_index);
60 65
61 #ifdef __cplusplus 66 #ifdef __cplusplus
62 } // extern "C" 67 } // extern "C"
63 #endif 68 #endif
64 69
65 #endif // VP8_ENCODER_DENOISING_H_ 70 #endif // VP8_ENCODER_DENOISING_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/bitstream.h ('k') | source/libvpx/vp8/encoder/denoising.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698