OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 #include <limits.h> | 11 #include <limits.h> |
12 #include <math.h> | 12 #include <math.h> |
| 13 #include "vpx_dsp/vpx_dsp_common.h" |
13 #include "vpx_ports/system_state.h" | 14 #include "vpx_ports/system_state.h" |
14 | 15 |
15 #include "vp9/encoder/vp9_aq_complexity.h" | 16 #include "vp9/encoder/vp9_aq_complexity.h" |
16 #include "vp9/encoder/vp9_aq_variance.h" | 17 #include "vp9/encoder/vp9_aq_variance.h" |
17 #include "vp9/encoder/vp9_encodeframe.h" | 18 #include "vp9/encoder/vp9_encodeframe.h" |
18 #include "vp9/common/vp9_seg_common.h" | 19 #include "vp9/common/vp9_seg_common.h" |
19 #include "vp9/encoder/vp9_segmentation.h" | 20 #include "vp9/encoder/vp9_segmentation.h" |
20 | 21 |
21 #define AQ_C_SEGMENTS 5 | 22 #define AQ_C_SEGMENTS 5 |
22 #define DEFAULT_AQ2_SEG 3 // Neutral Q segment | 23 #define DEFAULT_AQ2_SEG 3 // Neutral Q segment |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 } | 156 } |
156 } | 157 } |
157 | 158 |
158 // Fill in the entires in the segment map corresponding to this SB64. | 159 // Fill in the entires in the segment map corresponding to this SB64. |
159 for (y = 0; y < ymis; y++) { | 160 for (y = 0; y < ymis; y++) { |
160 for (x = 0; x < xmis; x++) { | 161 for (x = 0; x < xmis; x++) { |
161 cpi->segmentation_map[mi_offset + y * cm->mi_cols + x] = segment; | 162 cpi->segmentation_map[mi_offset + y * cm->mi_cols + x] = segment; |
162 } | 163 } |
163 } | 164 } |
164 } | 165 } |
OLD | NEW |