1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp8/encoder/x86/vp8_enc_stubs_sse2.c Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +/* 1.5 + * Copyright (c) 2012 The WebM project authors. All Rights Reserved. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license 1.8 + * that can be found in the LICENSE file in the root of the source 1.9 + * tree. An additional intellectual property rights grant can be found 1.10 + * in the file PATENTS. All contributing project authors may 1.11 + * be found in the AUTHORS file in the root of the source tree. 1.12 + */ 1.13 + 1.14 + 1.15 +#include "vpx_config.h" 1.16 +#include "vp8_rtcd.h" 1.17 +#include "vpx_ports/x86.h" 1.18 +#include "vp8/encoder/block.h" 1.19 + 1.20 +int vp8_mbblock_error_xmm_impl(short *coeff_ptr, short *dcoef_ptr, int dc); 1.21 +int vp8_mbblock_error_xmm(MACROBLOCK *mb, int dc) 1.22 +{ 1.23 + short *coeff_ptr = mb->block[0].coeff; 1.24 + short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff; 1.25 + return vp8_mbblock_error_xmm_impl(coeff_ptr, dcoef_ptr, dc); 1.26 +} 1.27 + 1.28 +int vp8_mbuverror_xmm_impl(short *s_ptr, short *d_ptr); 1.29 +int vp8_mbuverror_xmm(MACROBLOCK *mb) 1.30 +{ 1.31 + short *s_ptr = &mb->coeff[256]; 1.32 + short *d_ptr = &mb->e_mbd.dqcoeff[256]; 1.33 + return vp8_mbuverror_xmm_impl(s_ptr, d_ptr); 1.34 +} 1.35 + 1.36 +void vp8_subtract_b_sse2_impl(unsigned char *z, int src_stride, 1.37 + short *diff, unsigned char *predictor, 1.38 + int pitch); 1.39 +void vp8_subtract_b_sse2(BLOCK *be, BLOCKD *bd, int pitch) 1.40 +{ 1.41 + unsigned char *z = *(be->base_src) + be->src; 1.42 + unsigned int src_stride = be->src_stride; 1.43 + short *diff = &be->src_diff[0]; 1.44 + unsigned char *predictor = &bd->predictor[0]; 1.45 + vp8_subtract_b_sse2_impl(z, src_stride, diff, predictor, pitch); 1.46 +}