1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vpx_scale/vpx_scale_asm_offsets.c Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +/* 1.5 + * Copyright (c) 2011 The WebM project authors. All Rights Reserved. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license 1.8 + * that can be found in the LICENSE file in the root of the source 1.9 + * tree. An additional intellectual property rights grant can be found 1.10 + * in the file PATENTS. All contributing project authors may 1.11 + * be found in the AUTHORS file in the root of the source tree. 1.12 + */ 1.13 + 1.14 + 1.15 +#include "./vpx_config.h" 1.16 +#include "vpx/vpx_codec.h" 1.17 +#include "vpx_ports/asm_offsets.h" 1.18 +#include "vpx_scale/yv12config.h" 1.19 + 1.20 +BEGIN 1.21 + 1.22 +/* vpx_scale */ 1.23 +DEFINE(yv12_buffer_config_y_width, offsetof(YV12_BUFFER_CONFIG, y_width)); 1.24 +DEFINE(yv12_buffer_config_y_height, offsetof(YV12_BUFFER_CONFIG, y_height)); 1.25 +DEFINE(yv12_buffer_config_y_stride, offsetof(YV12_BUFFER_CONFIG, y_stride)); 1.26 +DEFINE(yv12_buffer_config_uv_width, offsetof(YV12_BUFFER_CONFIG, uv_width)); 1.27 +DEFINE(yv12_buffer_config_uv_height, offsetof(YV12_BUFFER_CONFIG, uv_height)); 1.28 +DEFINE(yv12_buffer_config_uv_stride, offsetof(YV12_BUFFER_CONFIG, uv_stride)); 1.29 +DEFINE(yv12_buffer_config_y_buffer, offsetof(YV12_BUFFER_CONFIG, y_buffer)); 1.30 +DEFINE(yv12_buffer_config_u_buffer, offsetof(YV12_BUFFER_CONFIG, u_buffer)); 1.31 +DEFINE(yv12_buffer_config_v_buffer, offsetof(YV12_BUFFER_CONFIG, v_buffer)); 1.32 +DEFINE(yv12_buffer_config_border, offsetof(YV12_BUFFER_CONFIG, border)); 1.33 +DEFINE(VP8BORDERINPIXELS_VAL, VP8BORDERINPIXELS); 1.34 + 1.35 +END 1.36 + 1.37 +/* add asserts for any offset that is not supported by assembly code */ 1.38 +/* add asserts for any size that is not supported by assembly code */ 1.39 + 1.40 +#if HAVE_NEON 1.41 +/* vp8_yv12_extend_frame_borders_neon makes several assumptions based on this */ 1.42 +ct_assert(VP8BORDERINPIXELS_VAL, VP8BORDERINPIXELS == 32) 1.43 +#endif