| 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 | 13 |
| 14 #include "vp9/encoder/vp9_aq_complexity.h" |
| 14 #include "vp9/encoder/vp9_aq_variance.h" | 15 #include "vp9/encoder/vp9_aq_variance.h" |
| 15 #include "vp9/encoder/vp9_encodeframe.h" | 16 #include "vp9/encoder/vp9_encodeframe.h" |
| 16 #include "vp9/common/vp9_seg_common.h" | 17 #include "vp9/common/vp9_seg_common.h" |
| 17 #include "vp9/encoder/vp9_segmentation.h" | 18 #include "vp9/encoder/vp9_segmentation.h" |
| 18 | 19 |
| 19 #define AQ_C_SEGMENTS 5 | 20 #define AQ_C_SEGMENTS 5 |
| 20 #define DEFAULT_AQ2_SEG 3 // Neutral Q segment | 21 #define DEFAULT_AQ2_SEG 3 // Neutral Q segment |
| 21 #define AQ_C_STRENGTHS 3 | 22 #define AQ_C_STRENGTHS 3 |
| 22 static const double aq_c_q_adj_factor[AQ_C_STRENGTHS][AQ_C_SEGMENTS] = | 23 static const double aq_c_q_adj_factor[AQ_C_STRENGTHS][AQ_C_SEGMENTS] = |
| 23 { {1.75, 1.25, 1.05, 1.00, 0.90}, | 24 { {1.75, 1.25, 1.05, 1.00, 0.90}, |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 154 } |
| 154 } | 155 } |
| 155 | 156 |
| 156 // Fill in the entires in the segment map corresponding to this SB64. | 157 // Fill in the entires in the segment map corresponding to this SB64. |
| 157 for (y = 0; y < ymis; y++) { | 158 for (y = 0; y < ymis; y++) { |
| 158 for (x = 0; x < xmis; x++) { | 159 for (x = 0; x < xmis; x++) { |
| 159 cpi->segmentation_map[mi_offset + y * cm->mi_cols + x] = segment; | 160 cpi->segmentation_map[mi_offset + y * cm->mi_cols + x] = segment; |
| 160 } | 161 } |
| 161 } | 162 } |
| 162 } | 163 } |
| OLD | NEW |