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

Side by Side Diff: source/libvpx/vp9/encoder/x86/vp9_highbd_quantize_intrin_sse2.c

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
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 <emmintrin.h> 11 #include <emmintrin.h>
12 12
13 #include "vpx_ports/mem.h"
13 #include "vp9/common/vp9_common.h" 14 #include "vp9/common/vp9_common.h"
14 15
15 #if CONFIG_VP9_HIGHBITDEPTH 16 #if CONFIG_VP9_HIGHBITDEPTH
16 // from vp9_idct.h: typedef int32_t tran_low_t; 17 // from vp9_idct.h: typedef int32_t tran_low_t;
17 void vp9_highbd_quantize_b_sse2(const tran_low_t *coeff_ptr, 18 void vp9_highbd_quantize_b_sse2(const tran_low_t *coeff_ptr,
18 intptr_t count, 19 intptr_t count,
19 int skip_block, 20 int skip_block,
20 const int16_t *zbin_ptr, 21 const int16_t *zbin_ptr,
21 const int16_t *round_ptr, 22 const int16_t *round_ptr,
22 const int16_t *quant_ptr, 23 const int16_t *quant_ptr,
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 qcoeff_ptr[rc] = (tmp ^ coeff_sign) - coeff_sign; 172 qcoeff_ptr[rc] = (tmp ^ coeff_sign) - coeff_sign;
172 dqcoeff_ptr[rc] = qcoeff_ptr[rc] * dequant_ptr[rc != 0] / 2; 173 dqcoeff_ptr[rc] = qcoeff_ptr[rc] * dequant_ptr[rc != 0] / 2;
173 174
174 if (tmp) 175 if (tmp)
175 eob = iscan[idx_arr[i]] > eob ? iscan[idx_arr[i]] : eob; 176 eob = iscan[idx_arr[i]] > eob ? iscan[idx_arr[i]] : eob;
176 } 177 }
177 } 178 }
178 *eob_ptr = eob + 1; 179 *eob_ptr = eob + 1;
179 } 180 }
180 #endif 181 #endif
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/x86/vp9_error_intrin_avx2.c ('k') | source/libvpx/vp9/encoder/x86/vp9_highbd_variance_impl_sse2.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698