diff options
author | Johann <johannkoenig@google.com> | 2012-11-30 12:25:01 -0800 |
---|---|---|
committer | Johann <johannkoenig@google.com> | 2012-12-03 12:50:09 -0800 |
commit | 0d793ccfb6da3fe6eeeb19e37ad06427b3779b68 (patch) | |
tree | 133797caba5a30baec44fa4fd5577032fdc5a076 /vpx_scale | |
parent | 66323307029f9e9c9ed3f40aa225019e1f074f20 (diff) | |
download | libvpx-0d793ccfb6da3fe6eeeb19e37ad06427b3779b68.tar.gz libvpx-0d793ccfb6da3fe6eeeb19e37ad06427b3779b68.tar.bz2 libvpx-0d793ccfb6da3fe6eeeb19e37ad06427b3779b68.zip |
Update ARM for vpx_scale changes
Refactor asm_offsets for vpx_scale.
Change-Id: I2db0eeb28c8e757bd033c6614a1e5319a1a204a5
Diffstat (limited to 'vpx_scale')
-rw-r--r-- | vpx_scale/arm/neon/vp8_vpxyv12_copy_y_neon.asm | 2 | ||||
-rw-r--r-- | vpx_scale/arm/neon/vp8_vpxyv12_copyframe_func_neon.asm | 2 | ||||
-rw-r--r-- | vpx_scale/arm/neon/vp8_vpxyv12_copysrcframe_func_neon.asm | 2 | ||||
-rw-r--r-- | vpx_scale/arm/neon/vp8_vpxyv12_extendframeborders_neon.asm | 2 | ||||
-rw-r--r-- | vpx_scale/arm/neon/yv12extend_arm.c | 2 | ||||
-rw-r--r-- | vpx_scale/vpx_scale.mk | 3 | ||||
-rw-r--r-- | vpx_scale/vpx_scale_asm_offsets.c | 40 |
7 files changed, 48 insertions, 5 deletions
diff --git a/vpx_scale/arm/neon/vp8_vpxyv12_copy_y_neon.asm b/vpx_scale/arm/neon/vp8_vpxyv12_copy_y_neon.asm index 9189641b1..cc1789a82 100644 --- a/vpx_scale/arm/neon/vp8_vpxyv12_copy_y_neon.asm +++ b/vpx_scale/arm/neon/vp8_vpxyv12_copy_y_neon.asm @@ -15,7 +15,7 @@ REQUIRE8 PRESERVE8 - INCLUDE asm_com_offsets.asm + INCLUDE vpx_scale_asm_offsets.asm AREA ||.text||, CODE, READONLY, ALIGN=2 diff --git a/vpx_scale/arm/neon/vp8_vpxyv12_copyframe_func_neon.asm b/vpx_scale/arm/neon/vp8_vpxyv12_copyframe_func_neon.asm index e55d076d9..3f17883b4 100644 --- a/vpx_scale/arm/neon/vp8_vpxyv12_copyframe_func_neon.asm +++ b/vpx_scale/arm/neon/vp8_vpxyv12_copyframe_func_neon.asm @@ -14,7 +14,7 @@ REQUIRE8 PRESERVE8 - INCLUDE asm_com_offsets.asm + INCLUDE vpx_scale_asm_offsets.asm AREA ||.text||, CODE, READONLY, ALIGN=2 diff --git a/vpx_scale/arm/neon/vp8_vpxyv12_copysrcframe_func_neon.asm b/vpx_scale/arm/neon/vp8_vpxyv12_copysrcframe_func_neon.asm index ec64dbc4e..d452ad255 100644 --- a/vpx_scale/arm/neon/vp8_vpxyv12_copysrcframe_func_neon.asm +++ b/vpx_scale/arm/neon/vp8_vpxyv12_copysrcframe_func_neon.asm @@ -14,7 +14,7 @@ REQUIRE8 PRESERVE8 - INCLUDE asm_com_offsets.asm + INCLUDE vpx_scale_asm_offsets.asm AREA ||.text||, CODE, READONLY, ALIGN=2 ;Note: This function is used to copy source data in src_buffer[i] at beginning of diff --git a/vpx_scale/arm/neon/vp8_vpxyv12_extendframeborders_neon.asm b/vpx_scale/arm/neon/vp8_vpxyv12_extendframeborders_neon.asm index ebc4242b2..b2eb9eb0f 100644 --- a/vpx_scale/arm/neon/vp8_vpxyv12_extendframeborders_neon.asm +++ b/vpx_scale/arm/neon/vp8_vpxyv12_extendframeborders_neon.asm @@ -14,7 +14,7 @@ REQUIRE8 PRESERVE8 - INCLUDE asm_com_offsets.asm + INCLUDE vpx_scale_asm_offsets.asm AREA ||.text||, CODE, READONLY, ALIGN=2 ;void vp8_yv12_extend_frame_borders_neon (YV12_BUFFER_CONFIG *ybf); diff --git a/vpx_scale/arm/neon/yv12extend_arm.c b/vpx_scale/arm/neon/yv12extend_arm.c index eabd4951a..4535b8fa1 100644 --- a/vpx_scale/arm/neon/yv12extend_arm.c +++ b/vpx_scale/arm/neon/yv12extend_arm.c @@ -8,7 +8,7 @@ * be found in the AUTHORS file in the root of the source tree. */ -#include "./vpx_rtcd.h" +#include "./vpx_scale_rtcd.h" extern void vp8_yv12_copy_frame_func_neon(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc); diff --git a/vpx_scale/vpx_scale.mk b/vpx_scale/vpx_scale.mk index 6c93f9f19..5e04a8090 100644 --- a/vpx_scale/vpx_scale.mk +++ b/vpx_scale/vpx_scale.mk @@ -17,4 +17,7 @@ SCALE_SRCS-$(HAVE_NEON) += arm/neon/yv12extend_arm.c SCALE_SRCS-no += $(SCALE_SRCS_REMOVE-yes) +$(eval $(call asm_offsets_template,\ + vpx_scale_asm_offsets.asm, vpx_scale/vpx_scale_asm_offsets.c)) + $(eval $(call rtcd_h_template,vpx_scale_rtcd,vpx_scale/vpx_scale_rtcd.sh)) diff --git a/vpx_scale/vpx_scale_asm_offsets.c b/vpx_scale/vpx_scale_asm_offsets.c new file mode 100644 index 000000000..caa9e80ff --- /dev/null +++ b/vpx_scale/vpx_scale_asm_offsets.c @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2011 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 "./vpx_config.h" +#include "vpx/vpx_codec.h" +#include "vpx_ports/asm_offsets.h" +#include "vpx_scale/yv12config.h" + +BEGIN + +/* vpx_scale */ +DEFINE(yv12_buffer_config_y_width, offsetof(YV12_BUFFER_CONFIG, y_width)); +DEFINE(yv12_buffer_config_y_height, offsetof(YV12_BUFFER_CONFIG, y_height)); +DEFINE(yv12_buffer_config_y_stride, offsetof(YV12_BUFFER_CONFIG, y_stride)); +DEFINE(yv12_buffer_config_uv_width, offsetof(YV12_BUFFER_CONFIG, uv_width)); +DEFINE(yv12_buffer_config_uv_height, offsetof(YV12_BUFFER_CONFIG, uv_height)); +DEFINE(yv12_buffer_config_uv_stride, offsetof(YV12_BUFFER_CONFIG, uv_stride)); +DEFINE(yv12_buffer_config_y_buffer, offsetof(YV12_BUFFER_CONFIG, y_buffer)); +DEFINE(yv12_buffer_config_u_buffer, offsetof(YV12_BUFFER_CONFIG, u_buffer)); +DEFINE(yv12_buffer_config_v_buffer, offsetof(YV12_BUFFER_CONFIG, v_buffer)); +DEFINE(yv12_buffer_config_border, offsetof(YV12_BUFFER_CONFIG, border)); +DEFINE(VP8BORDERINPIXELS_VAL, VP8BORDERINPIXELS); + +END + +/* add asserts for any offset that is not supported by assembly code */ +/* add asserts for any size that is not supported by assembly code */ + +#if HAVE_NEON +/* vp8_yv12_extend_frame_borders_neon makes several assumptions based on this */ +ct_assert(VP8BORDERINPIXELS_VAL, VP8BORDERINPIXELS == 32) +#endif |