| 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 |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 return -1; | 259 return -1; |
| 260 } | 260 } |
| 261 #else | 261 #else |
| 262 (void) bit_depth; | 262 (void) bit_depth; |
| 263 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; | 263 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; |
| 264 #endif | 264 #endif |
| 265 } | 265 } |
| 266 | 266 |
| 267 int vp9_get_qindex(const struct segmentation *seg, int segment_id, | 267 int vp9_get_qindex(const struct segmentation *seg, int segment_id, |
| 268 int base_qindex) { | 268 int base_qindex) { |
| 269 if (vp9_segfeature_active(seg, segment_id, SEG_LVL_ALT_Q)) { | 269 if (segfeature_active(seg, segment_id, SEG_LVL_ALT_Q)) { |
| 270 const int data = vp9_get_segdata(seg, segment_id, SEG_LVL_ALT_Q); | 270 const int data = get_segdata(seg, segment_id, SEG_LVL_ALT_Q); |
| 271 const int seg_qindex = seg->abs_delta == SEGMENT_ABSDATA ? | 271 const int seg_qindex = seg->abs_delta == SEGMENT_ABSDATA ? |
| 272 data : base_qindex + data; | 272 data : base_qindex + data; |
| 273 return clamp(seg_qindex, 0, MAXQ); | 273 return clamp(seg_qindex, 0, MAXQ); |
| 274 } else { | 274 } else { |
| 275 return base_qindex; | 275 return base_qindex; |
| 276 } | 276 } |
| 277 } | 277 } |
| 278 | 278 |
| OLD | NEW |