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

Side by Side Diff: source/libvpx/vp9/common/x86/vp9_idct_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) 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
11 #include "./vp9_rtcd.h"
12 #include "vpx_ports/mem.h"
11 #include "vp9/common/x86/vp9_idct_intrin_sse2.h" 13 #include "vp9/common/x86/vp9_idct_intrin_sse2.h"
12 #include "vp9/common/vp9_idct.h" 14 #include "vp9/common/vp9_idct.h"
13 15
14 #define RECON_AND_STORE4X4(dest, in_x) \ 16 #define RECON_AND_STORE4X4(dest, in_x) \
15 { \ 17 { \
16 __m128i d0 = _mm_cvtsi32_si128(*(const int *)(dest)); \ 18 __m128i d0 = _mm_cvtsi32_si128(*(const int *)(dest)); \
17 d0 = _mm_unpacklo_epi8(d0, zero); \ 19 d0 = _mm_unpacklo_epi8(d0, zero); \
18 d0 = _mm_add_epi16(in_x, d0); \ 20 d0 = _mm_add_epi16(in_x, d0); \
19 d0 = _mm_packus_epi16(d0, d0); \ 21 d0 = _mm_packus_epi16(d0, d0); \
20 *(int *)(dest) = _mm_cvtsi128_si32(d0); \ 22 *(int *)(dest) = _mm_cvtsi128_si32(d0); \
(...skipping 4225 matching lines...) Expand 10 before | Expand all | Expand 10 after
4246 vp9_highbd_idct16(temp_in, temp_out, bd); 4248 vp9_highbd_idct16(temp_in, temp_out, bd);
4247 for (j = 0; j < 16; ++j) { 4249 for (j = 0; j < 16; ++j) {
4248 dest[j * stride + i] = highbd_clip_pixel_add( 4250 dest[j * stride + i] = highbd_clip_pixel_add(
4249 dest[j * stride + i], ROUND_POWER_OF_TWO(temp_out[j], 6), bd); 4251 dest[j * stride + i], ROUND_POWER_OF_TWO(temp_out[j], 6), bd);
4250 } 4252 }
4251 } 4253 }
4252 } 4254 }
4253 } 4255 }
4254 4256
4255 #endif // CONFIG_VP9_HIGHBITDEPTH 4257 #endif // CONFIG_VP9_HIGHBITDEPTH
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698