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

Side by Side Diff: source/libvpx/vp9/common/vp9_quant_common.c

Issue 1217053002: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 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
« no previous file with comments | « source/libvpx/vp9/common/vp9_onyxc_int.h ('k') | source/libvpx/vp9/common/vp9_reconintra.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) 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
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
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_onyxc_int.h ('k') | source/libvpx/vp9/common/vp9_reconintra.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698