michael@0: /* michael@0: * Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: #include "vpx_config.h" michael@0: #include "vp8_rtcd.h" michael@0: michael@0: void vp8_idct_dequant_0_2x_sse2 michael@0: (short *q, short *dq , michael@0: unsigned char *dst, int dst_stride); michael@0: void vp8_idct_dequant_full_2x_sse2 michael@0: (short *q, short *dq , michael@0: unsigned char *dst, int dst_stride); michael@0: michael@0: void vp8_dequant_idct_add_y_block_sse2 michael@0: (short *q, short *dq, michael@0: unsigned char *dst, int stride, char *eobs) michael@0: { michael@0: int i; michael@0: michael@0: for (i = 0; i < 4; i++) michael@0: { michael@0: if (((short *)(eobs))[0]) michael@0: { michael@0: if (((short *)(eobs))[0] & 0xfefe) michael@0: vp8_idct_dequant_full_2x_sse2 (q, dq, dst, stride); michael@0: else michael@0: vp8_idct_dequant_0_2x_sse2 (q, dq, dst, stride); michael@0: } michael@0: if (((short *)(eobs))[1]) michael@0: { michael@0: if (((short *)(eobs))[1] & 0xfefe) michael@0: vp8_idct_dequant_full_2x_sse2 (q+32, dq, dst+8, stride); michael@0: else michael@0: vp8_idct_dequant_0_2x_sse2 (q+32, dq, dst+8, stride); michael@0: } michael@0: q += 64; michael@0: dst += stride*4; michael@0: eobs += 4; michael@0: } michael@0: } michael@0: michael@0: void vp8_dequant_idct_add_uv_block_sse2 michael@0: (short *q, short *dq, michael@0: unsigned char *dstu, unsigned char *dstv, int stride, char *eobs) michael@0: { michael@0: if (((short *)(eobs))[0]) michael@0: { michael@0: if (((short *)(eobs))[0] & 0xfefe) michael@0: vp8_idct_dequant_full_2x_sse2 (q, dq, dstu, stride); michael@0: else michael@0: vp8_idct_dequant_0_2x_sse2 (q, dq, dstu, stride); michael@0: } michael@0: q += 32; michael@0: dstu += stride*4; michael@0: michael@0: if (((short *)(eobs))[1]) michael@0: { michael@0: if (((short *)(eobs))[1] & 0xfefe) michael@0: vp8_idct_dequant_full_2x_sse2 (q, dq, dstu, stride); michael@0: else michael@0: vp8_idct_dequant_0_2x_sse2 (q, dq, dstu, stride); michael@0: } michael@0: q += 32; michael@0: michael@0: if (((short *)(eobs))[2]) michael@0: { michael@0: if (((short *)(eobs))[2] & 0xfefe) michael@0: vp8_idct_dequant_full_2x_sse2 (q, dq, dstv, stride); michael@0: else michael@0: vp8_idct_dequant_0_2x_sse2 (q, dq, dstv, stride); michael@0: } michael@0: q += 32; michael@0: dstv += stride*4; michael@0: michael@0: if (((short *)(eobs))[3]) michael@0: { michael@0: if (((short *)(eobs))[3] & 0xfefe) michael@0: vp8_idct_dequant_full_2x_sse2 (q, dq, dstv, stride); michael@0: else michael@0: vp8_idct_dequant_0_2x_sse2 (q, dq, dstv, stride); michael@0: } michael@0: }