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

Side by Side Diff: source/libvpx/vp8/encoder/x86/vp8_enc_stubs_sse2.c

Issue 11555023: libvpx: Add VP9 decoder. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 8 years 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
11 11
12 #include "vpx_config.h" 12 #include "vpx_config.h"
13 #include "vpx_rtcd.h" 13 #include "vp8_rtcd.h"
14 #include "vpx_ports/x86.h" 14 #include "vpx_ports/x86.h"
15 #include "vp8/encoder/block.h" 15 #include "vp8/encoder/block.h"
16 16
17 int vp8_mbblock_error_xmm_impl(short *coeff_ptr, short *dcoef_ptr, int dc); 17 int vp8_mbblock_error_xmm_impl(short *coeff_ptr, short *dcoef_ptr, int dc);
18 int vp8_mbblock_error_xmm(MACROBLOCK *mb, int dc) 18 int vp8_mbblock_error_xmm(MACROBLOCK *mb, int dc)
19 { 19 {
20 short *coeff_ptr = mb->block[0].coeff; 20 short *coeff_ptr = mb->block[0].coeff;
21 short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff; 21 short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff;
22 return vp8_mbblock_error_xmm_impl(coeff_ptr, dcoef_ptr, dc); 22 return vp8_mbblock_error_xmm_impl(coeff_ptr, dcoef_ptr, dc);
23 } 23 }
(...skipping 10 matching lines...) Expand all
34 short *diff, unsigned char *predictor, 34 short *diff, unsigned char *predictor,
35 int pitch); 35 int pitch);
36 void vp8_subtract_b_sse2(BLOCK *be, BLOCKD *bd, int pitch) 36 void vp8_subtract_b_sse2(BLOCK *be, BLOCKD *bd, int pitch)
37 { 37 {
38 unsigned char *z = *(be->base_src) + be->src; 38 unsigned char *z = *(be->base_src) + be->src;
39 unsigned int src_stride = be->src_stride; 39 unsigned int src_stride = be->src_stride;
40 short *diff = &be->src_diff[0]; 40 short *diff = &be->src_diff[0];
41 unsigned char *predictor = &bd->predictor[0]; 41 unsigned char *predictor = &bd->predictor[0];
42 vp8_subtract_b_sse2_impl(z, src_stride, diff, predictor, pitch); 42 vp8_subtract_b_sse2_impl(z, src_stride, diff, predictor, pitch);
43 } 43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698