reconintra4x4.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2010 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. #ifndef VP8_COMMON_RECONINTRA4X4_H_
  11. #define VP8_COMMON_RECONINTRA4X4_H_
  12. #include "vp8/common/blockd.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. static void intra_prediction_down_copy(MACROBLOCKD *xd,
  17. unsigned char *above_right_src)
  18. {
  19. int dst_stride = xd->dst.y_stride;
  20. unsigned char *above_right_dst = xd->dst.y_buffer - dst_stride + 16;
  21. unsigned int *src_ptr = (unsigned int *)above_right_src;
  22. unsigned int *dst_ptr0 = (unsigned int *)(above_right_dst + 4 * dst_stride);
  23. unsigned int *dst_ptr1 = (unsigned int *)(above_right_dst + 8 * dst_stride);
  24. unsigned int *dst_ptr2 = (unsigned int *)(above_right_dst + 12 * dst_stride);
  25. *dst_ptr0 = *src_ptr;
  26. *dst_ptr1 = *src_ptr;
  27. *dst_ptr2 = *src_ptr;
  28. }
  29. #ifdef __cplusplus
  30. } // extern "C"
  31. #endif
  32. #endif // VP8_COMMON_RECONINTRA4X4_H_