1 /* 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #include "vpx_config.h" 12 #include "vp8_rtcd.h" 13 #include "vpx_ports/x86.h" 14 #include "vp8/encoder/block.h" 15 16 int vp8_mbblock_error_sse2_impl(short *coeff_ptr, short *dcoef_ptr, int dc); vp8_mbblock_error_sse2(MACROBLOCK * mb,int dc)17int vp8_mbblock_error_sse2(MACROBLOCK *mb, int dc) { 18 short *coeff_ptr = mb->block[0].coeff; 19 short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff; 20 return vp8_mbblock_error_sse2_impl(coeff_ptr, dcoef_ptr, dc); 21 } 22 23 int vp8_mbuverror_sse2_impl(short *s_ptr, short *d_ptr); vp8_mbuverror_sse2(MACROBLOCK * mb)24int vp8_mbuverror_sse2(MACROBLOCK *mb) { 25 short *s_ptr = &mb->coeff[256]; 26 short *d_ptr = &mb->e_mbd.dqcoeff[256]; 27 return vp8_mbuverror_sse2_impl(s_ptr, d_ptr); 28 } 29