reconintra4x4.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 INLINE 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. void vp8_intra4x4_predict(unsigned char *Above,
  30. unsigned char *yleft, int left_stride,
  31. B_PREDICTION_MODE b_mode,
  32. unsigned char *dst, int dst_stride,
  33. unsigned char top_left);
  34. void vp8_init_intra4x4_predictors_internal(void);
  35. #ifdef __cplusplus
  36. } // extern "C"
  37. #endif
  38. #endif // VP8_COMMON_RECONINTRA4X4_H_