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

Side by Side Diff: source/libvpx/vpx_dsp/x86/quantize_sse2.c

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 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/vpx_dsp/x86/inv_wht_sse2.asm ('k') | source/libvpx/vpx_dsp/x86/sad4d_sse2.asm » ('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) 2015 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 #include <xmmintrin.h> 12 #include <xmmintrin.h>
13 13
14 #include "./vpx_dsp_rtcd.h" 14 #include "./vpx_dsp_rtcd.h"
15 #include "vpx/vpx_integer.h" 15 #include "vpx/vpx_integer.h"
16 16
17 void vp9_quantize_b_sse2(const int16_t* coeff_ptr, intptr_t n_coeffs, 17 void vpx_quantize_b_sse2(const int16_t* coeff_ptr, intptr_t n_coeffs,
18 int skip_block, const int16_t* zbin_ptr, 18 int skip_block, const int16_t* zbin_ptr,
19 const int16_t* round_ptr, const int16_t* quant_ptr, 19 const int16_t* round_ptr, const int16_t* quant_ptr,
20 const int16_t* quant_shift_ptr, int16_t* qcoeff_ptr, 20 const int16_t* quant_shift_ptr, int16_t* qcoeff_ptr,
21 int16_t* dqcoeff_ptr, const int16_t* dequant_ptr, 21 int16_t* dqcoeff_ptr, const int16_t* dequant_ptr,
22 uint16_t* eob_ptr, 22 uint16_t* eob_ptr,
23 const int16_t* scan_ptr, 23 const int16_t* scan_ptr,
24 const int16_t* iscan_ptr) { 24 const int16_t* iscan_ptr) {
25 __m128i zero; 25 __m128i zero;
26 (void)scan_ptr; 26 (void)scan_ptr;
27 27
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 do { 214 do {
215 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs), zero); 215 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs), zero);
216 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs) + 1, zero); 216 _mm_store_si128((__m128i*)(dqcoeff_ptr + n_coeffs) + 1, zero);
217 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs), zero); 217 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs), zero);
218 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs) + 1, zero); 218 _mm_store_si128((__m128i*)(qcoeff_ptr + n_coeffs) + 1, zero);
219 n_coeffs += 8 * 2; 219 n_coeffs += 8 * 2;
220 } while (n_coeffs < 0); 220 } while (n_coeffs < 0);
221 *eob_ptr = 0; 221 *eob_ptr = 0;
222 } 222 }
223 } 223 }
OLDNEW
« no previous file with comments | « source/libvpx/vpx_dsp/x86/inv_wht_sse2.asm ('k') | source/libvpx/vpx_dsp/x86/sad4d_sse2.asm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698