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

Side by Side Diff: source/libvpx/vp9/common/x86/vp9_idct_intrin_sse2.c

Issue 290653003: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 RECON_AND_STORE(dest, in[0]); 988 RECON_AND_STORE(dest, in[0]);
989 RECON_AND_STORE(dest, in[1]); 989 RECON_AND_STORE(dest, in[1]);
990 RECON_AND_STORE(dest, in[2]); 990 RECON_AND_STORE(dest, in[2]);
991 RECON_AND_STORE(dest, in[3]); 991 RECON_AND_STORE(dest, in[3]);
992 RECON_AND_STORE(dest, in[4]); 992 RECON_AND_STORE(dest, in[4]);
993 RECON_AND_STORE(dest, in[5]); 993 RECON_AND_STORE(dest, in[5]);
994 RECON_AND_STORE(dest, in[6]); 994 RECON_AND_STORE(dest, in[6]);
995 RECON_AND_STORE(dest, in[7]); 995 RECON_AND_STORE(dest, in[7]);
996 } 996 }
997 997
998 void vp9_idct8x8_10_add_sse2(const int16_t *input, uint8_t *dest, int stride) { 998 void vp9_idct8x8_12_add_sse2(const int16_t *input, uint8_t *dest, int stride) {
999 const __m128i zero = _mm_setzero_si128(); 999 const __m128i zero = _mm_setzero_si128();
1000 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); 1000 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING);
1001 const __m128i final_rounding = _mm_set1_epi16(1<<4); 1001 const __m128i final_rounding = _mm_set1_epi16(1<<4);
1002 const __m128i stg1_0 = pair_set_epi16(cospi_28_64, -cospi_4_64); 1002 const __m128i stg1_0 = pair_set_epi16(cospi_28_64, -cospi_4_64);
1003 const __m128i stg1_1 = pair_set_epi16(cospi_4_64, cospi_28_64); 1003 const __m128i stg1_1 = pair_set_epi16(cospi_4_64, cospi_28_64);
1004 const __m128i stg1_2 = pair_set_epi16(-cospi_20_64, cospi_12_64); 1004 const __m128i stg1_2 = pair_set_epi16(-cospi_20_64, cospi_12_64);
1005 const __m128i stg1_3 = pair_set_epi16(cospi_12_64, cospi_20_64); 1005 const __m128i stg1_3 = pair_set_epi16(cospi_12_64, cospi_20_64);
1006 const __m128i stg2_0 = pair_set_epi16(cospi_16_64, cospi_16_64); 1006 const __m128i stg2_0 = pair_set_epi16(cospi_16_64, cospi_16_64);
1007 const __m128i stg2_1 = pair_set_epi16(cospi_16_64, -cospi_16_64); 1007 const __m128i stg2_1 = pair_set_epi16(cospi_16_64, -cospi_16_64);
1008 const __m128i stg2_2 = pair_set_epi16(cospi_24_64, -cospi_8_64); 1008 const __m128i stg2_2 = pair_set_epi16(cospi_24_64, -cospi_8_64);
(...skipping 3140 matching lines...) Expand 10 before | Expand all | Expand 10 after
4149 RECON_AND_STORE(dest, dc_value); 4149 RECON_AND_STORE(dest, dc_value);
4150 RECON_AND_STORE(dest, dc_value); 4150 RECON_AND_STORE(dest, dc_value);
4151 RECON_AND_STORE(dest, dc_value); 4151 RECON_AND_STORE(dest, dc_value);
4152 RECON_AND_STORE(dest, dc_value); 4152 RECON_AND_STORE(dest, dc_value);
4153 RECON_AND_STORE(dest, dc_value); 4153 RECON_AND_STORE(dest, dc_value);
4154 RECON_AND_STORE(dest, dc_value); 4154 RECON_AND_STORE(dest, dc_value);
4155 RECON_AND_STORE(dest, dc_value); 4155 RECON_AND_STORE(dest, dc_value);
4156 dest += 8 - (stride * 32); 4156 dest += 8 - (stride * 32);
4157 } 4157 }
4158 } 4158 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698