summaryrefslogtreecommitdiff
path: root/vp8/common/reconintra4x4.h
diff options
context:
space:
mode:
authorScott LaVarnway <slavarnway@google.com>2012-02-28 14:12:30 -0500
committerScott LaVarnway <slavarnway@google.com>2012-02-28 14:12:30 -0500
commitbcba86e2e9c03da484addb984db40ff61bd21569 (patch)
tree3d3f1a6586873f540abde6755c1416ed07239fe6 /vp8/common/reconintra4x4.h
parentf2bd11faa40cd55b3a8a02fea6f64ff0a9124df8 (diff)
downloadlibvpx-bcba86e2e9c03da484addb984db40ff61bd21569.tar
libvpx-bcba86e2e9c03da484addb984db40ff61bd21569.tar.gz
libvpx-bcba86e2e9c03da484addb984db40ff61bd21569.tar.bz2
libvpx-bcba86e2e9c03da484addb984db40ff61bd21569.zip
Eliminated reconintra_mt.c
Reworked the code to use vp8_build_intra_predictors_mby_s, vp8_intra_prediction_down_copy, and vp8_intra4x4_predict_d_c functions instead. vp8_intra4x4_predict_d_c is a decoder-only version of vp8_intra4x4_predict. Future commits will fix this code duplication. Change-Id: Ifb4507103b7c83f8b94a872345191c49240154f5
Diffstat (limited to 'vp8/common/reconintra4x4.h')
-rw-r--r--vp8/common/reconintra4x4.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/vp8/common/reconintra4x4.h b/vp8/common/reconintra4x4.h
index b528df6d5..d2b0d4346 100644
--- a/vp8/common/reconintra4x4.h
+++ b/vp8/common/reconintra4x4.h
@@ -11,9 +11,22 @@
#ifndef __INC_RECONINTRA4x4_H
#define __INC_RECONINTRA4x4_H
+#include "vp8/common/blockd.h"
-struct macroblockd;
+static void intra_prediction_down_copy(MACROBLOCKD *xd,
+ unsigned char *above_right_src)
+{
+ int dst_stride = xd->dst.y_stride;
+ unsigned char *above_right_dst = xd->dst.y_buffer - dst_stride + 16;
-extern void vp8_intra_prediction_down_copy(struct macroblockd *x);
+ unsigned int *src_ptr = (unsigned int *)above_right_src;
+ unsigned int *dst_ptr0 = (unsigned int *)(above_right_dst + 4 * dst_stride);
+ unsigned int *dst_ptr1 = (unsigned int *)(above_right_dst + 8 * dst_stride);
+ unsigned int *dst_ptr2 = (unsigned int *)(above_right_dst + 12 * dst_stride);
+
+ *dst_ptr0 = *src_ptr;
+ *dst_ptr1 = *src_ptr;
+ *dst_ptr2 = *src_ptr;
+}
#endif