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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_dct.c

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 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/encoder/vp9_blockiness.c ('k') | source/libvpx/vp9/encoder/vp9_denoiser.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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 for (j = 0; j < 8; ++j) 410 for (j = 0; j < 8; ++j)
411 coeff_ptr[j + i * 8] /= 2; 411 coeff_ptr[j + i * 8] /= 2;
412 } 412 }
413 413
414 // TODO(jingning) Decide the need of these arguments after the 414 // TODO(jingning) Decide the need of these arguments after the
415 // quantization process is completed. 415 // quantization process is completed.
416 (void)zbin_ptr; 416 (void)zbin_ptr;
417 (void)quant_shift_ptr; 417 (void)quant_shift_ptr;
418 (void)iscan; 418 (void)iscan;
419 419
420 vpx_memset(qcoeff_ptr, 0, n_coeffs * sizeof(*qcoeff_ptr)); 420 memset(qcoeff_ptr, 0, n_coeffs * sizeof(*qcoeff_ptr));
421 vpx_memset(dqcoeff_ptr, 0, n_coeffs * sizeof(*dqcoeff_ptr)); 421 memset(dqcoeff_ptr, 0, n_coeffs * sizeof(*dqcoeff_ptr));
422 422
423 if (!skip_block) { 423 if (!skip_block) {
424 // Quantization pass: All coefficients with index >= zero_flag are 424 // Quantization pass: All coefficients with index >= zero_flag are
425 // skippable. Note: zero_flag can be zero. 425 // skippable. Note: zero_flag can be zero.
426 for (i = 0; i < n_coeffs; i++) { 426 for (i = 0; i < n_coeffs; i++) {
427 const int rc = scan[i]; 427 const int rc = scan[i];
428 const int coeff = coeff_ptr[rc]; 428 const int coeff = coeff_ptr[rc];
429 const int coeff_sign = (coeff >> 31); 429 const int coeff_sign = (coeff >> 31);
430 const int abs_coeff = (coeff ^ coeff_sign) - coeff_sign; 430 const int abs_coeff = (coeff ^ coeff_sign) - coeff_sign;
431 431
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 1582
1583 void vp9_highbd_fdct32x32_c(const int16_t *input, tran_low_t *out, int stride) { 1583 void vp9_highbd_fdct32x32_c(const int16_t *input, tran_low_t *out, int stride) {
1584 vp9_fdct32x32_c(input, out, stride); 1584 vp9_fdct32x32_c(input, out, stride);
1585 } 1585 }
1586 1586
1587 void vp9_highbd_fdct32x32_rd_c(const int16_t *input, tran_low_t *out, 1587 void vp9_highbd_fdct32x32_rd_c(const int16_t *input, tran_low_t *out,
1588 int stride) { 1588 int stride) {
1589 vp9_fdct32x32_rd_c(input, out, stride); 1589 vp9_fdct32x32_rd_c(input, out, stride);
1590 } 1590 }
1591 #endif // CONFIG_VP9_HIGHBITDEPTH 1591 #endif // CONFIG_VP9_HIGHBITDEPTH
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_blockiness.c ('k') | source/libvpx/vp9/encoder/vp9_denoiser.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698