vp8_enc_stubs_sse2.c 1.0 KB

12345678910111213141516171819202122232425262728
  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. #include "vpx_config.h"
  11. #include "vp8_rtcd.h"
  12. #include "vpx_ports/x86.h"
  13. #include "vp8/encoder/block.h"
  14. int vp8_mbblock_error_sse2_impl(short *coeff_ptr, short *dcoef_ptr, int dc);
  15. int vp8_mbblock_error_sse2(MACROBLOCK *mb, int dc) {
  16. short *coeff_ptr = mb->block[0].coeff;
  17. short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff;
  18. return vp8_mbblock_error_sse2_impl(coeff_ptr, dcoef_ptr, dc);
  19. }
  20. int vp8_mbuverror_sse2_impl(short *s_ptr, short *d_ptr);
  21. int vp8_mbuverror_sse2(MACROBLOCK *mb) {
  22. short *s_ptr = &mb->coeff[256];
  23. short *d_ptr = &mb->e_mbd.dqcoeff[256];
  24. return vp8_mbuverror_sse2_impl(s_ptr, d_ptr);
  25. }