Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* |
michael@0 | 2 | * Copyright (c) 2012 The WebM project authors. All Rights Reserved. |
michael@0 | 3 | * |
michael@0 | 4 | * Use of this source code is governed by a BSD-style license |
michael@0 | 5 | * that can be found in the LICENSE file in the root of the source |
michael@0 | 6 | * tree. An additional intellectual property rights grant can be found |
michael@0 | 7 | * in the file PATENTS. All contributing project authors may |
michael@0 | 8 | * be found in the AUTHORS file in the root of the source tree. |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | |
michael@0 | 12 | #include "vpx_config.h" |
michael@0 | 13 | #include "vp8_rtcd.h" |
michael@0 | 14 | #include "vpx_ports/x86.h" |
michael@0 | 15 | #include "vp8/encoder/block.h" |
michael@0 | 16 | |
michael@0 | 17 | int vp8_mbblock_error_xmm_impl(short *coeff_ptr, short *dcoef_ptr, int dc); |
michael@0 | 18 | int vp8_mbblock_error_xmm(MACROBLOCK *mb, int dc) |
michael@0 | 19 | { |
michael@0 | 20 | short *coeff_ptr = mb->block[0].coeff; |
michael@0 | 21 | short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff; |
michael@0 | 22 | return vp8_mbblock_error_xmm_impl(coeff_ptr, dcoef_ptr, dc); |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | int vp8_mbuverror_xmm_impl(short *s_ptr, short *d_ptr); |
michael@0 | 26 | int vp8_mbuverror_xmm(MACROBLOCK *mb) |
michael@0 | 27 | { |
michael@0 | 28 | short *s_ptr = &mb->coeff[256]; |
michael@0 | 29 | short *d_ptr = &mb->e_mbd.dqcoeff[256]; |
michael@0 | 30 | return vp8_mbuverror_xmm_impl(s_ptr, d_ptr); |
michael@0 | 31 | } |
michael@0 | 32 | |
michael@0 | 33 | void vp8_subtract_b_sse2_impl(unsigned char *z, int src_stride, |
michael@0 | 34 | short *diff, unsigned char *predictor, |
michael@0 | 35 | int pitch); |
michael@0 | 36 | void vp8_subtract_b_sse2(BLOCK *be, BLOCKD *bd, int pitch) |
michael@0 | 37 | { |
michael@0 | 38 | unsigned char *z = *(be->base_src) + be->src; |
michael@0 | 39 | unsigned int src_stride = be->src_stride; |
michael@0 | 40 | short *diff = &be->src_diff[0]; |
michael@0 | 41 | unsigned char *predictor = &bd->predictor[0]; |
michael@0 | 42 | vp8_subtract_b_sse2_impl(z, src_stride, diff, predictor, pitch); |
michael@0 | 43 | } |