reconintra4x4.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 VPX_VP8_COMMON_RECONINTRA4X4_H_
  11. #define VPX_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. int dst_stride = xd->dst.y_stride;
  19. unsigned char *above_right_dst = xd->dst.y_buffer - dst_stride + 16;
  20. unsigned int *src_ptr = (unsigned int *)above_right_src;
  21. unsigned int *dst_ptr0 = (unsigned int *)(above_right_dst + 4 * dst_stride);
  22. unsigned int *dst_ptr1 = (unsigned int *)(above_right_dst + 8 * dst_stride);
  23. unsigned int *dst_ptr2 = (unsigned int *)(above_right_dst + 12 * dst_stride);
  24. *dst_ptr0 = *src_ptr;
  25. *dst_ptr1 = *src_ptr;
  26. *dst_ptr2 = *src_ptr;
  27. }
  28. void vp8_intra4x4_predict(unsigned char *above, unsigned char *yleft,
  29. int left_stride, B_PREDICTION_MODE b_mode,
  30. unsigned char *dst, int dst_stride,
  31. unsigned char top_left);
  32. void vp8_init_intra4x4_predictors_internal(void);
  33. #ifdef __cplusplus
  34. } // extern "C"
  35. #endif
  36. #endif // VPX_VP8_COMMON_RECONINTRA4X4_H_