summaryrefslogtreecommitdiff
path: root/vp8/encoder/arm/neon/picklpf_arm.c
diff options
context:
space:
mode:
authorFritz Koenig <frkoenig@google.com>2011-09-20 10:51:06 -0700
committerFritz Koenig <frkoenig@google.com>2011-09-20 10:51:06 -0700
commitbd0c3409a8910d5d08ead81425cd6a02b229c8a3 (patch)
tree477c5d2ad9327f5b34959024d9100f27f956e579 /vp8/encoder/arm/neon/picklpf_arm.c
parent6829e62718a2970f2c62b4ace717acb46776ef73 (diff)
downloadlibvpx-bd0c3409a8910d5d08ead81425cd6a02b229c8a3.tar
libvpx-bd0c3409a8910d5d08ead81425cd6a02b229c8a3.tar.gz
libvpx-bd0c3409a8910d5d08ead81425cd6a02b229c8a3.tar.bz2
libvpx-bd0c3409a8910d5d08ead81425cd6a02b229c8a3.zip
Move neon only arm functions under arm/neon.
These files don't contain generic arm code, so should only be compiled by neon. Change-Id: Ie712823aa04d4235e7cfe7a3b725e73ee4c3e564
Diffstat (limited to 'vp8/encoder/arm/neon/picklpf_arm.c')
-rw-r--r--vp8/encoder/arm/neon/picklpf_arm.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/vp8/encoder/arm/neon/picklpf_arm.c b/vp8/encoder/arm/neon/picklpf_arm.c
new file mode 100644
index 000000000..3fb370c3d
--- /dev/null
+++ b/vp8/encoder/arm/neon/picklpf_arm.c
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+
+#include "vp8/common/onyxc_int.h"
+#include "vp8/encoder/onyx_int.h"
+#include "vp8/encoder/quantize.h"
+#include "vpx_mem/vpx_mem.h"
+#include "vpx_scale/yv12extend.h"
+#include "vpx_scale/vpxscale.h"
+#include "vp8/common/alloccommon.h"
+
+extern void vp8_memcpy_neon(unsigned char *dst_ptr, unsigned char *src_ptr, int sz);
+
+
+void
+vpxyv12_copy_partial_frame_neon(YV12_BUFFER_CONFIG *src_ybc, YV12_BUFFER_CONFIG *dst_ybc, int Fraction)
+{
+ unsigned char *src_y, *dst_y;
+ int yheight;
+ int ystride;
+ int border;
+ int yoffset;
+ int linestocopy;
+
+ border = src_ybc->border;
+ yheight = src_ybc->y_height;
+ ystride = src_ybc->y_stride;
+
+ linestocopy = (yheight >> (Fraction + 4));
+
+ if (linestocopy < 1)
+ linestocopy = 1;
+
+ linestocopy <<= 4;
+
+ yoffset = ystride * ((yheight >> 5) * 16 - 8);
+ src_y = src_ybc->y_buffer + yoffset;
+ dst_y = dst_ybc->y_buffer + yoffset;
+
+ //vpx_memcpy (dst_y, src_y, ystride * (linestocopy +16));
+ vp8_memcpy_neon((unsigned char *)dst_y, (unsigned char *)src_y, (int)(ystride *(linestocopy + 16)));
+}