| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 | 11 |
| 12 #include "vpx_config.h" | 12 #include "vpx_config.h" |
| 13 #include "vpx/vpx_codec.h" | 13 #include "vpx/vpx_codec.h" |
| 14 #include "vpx_ports/asm_offsets.h" | 14 #include "vpx_ports/asm_offsets.h" |
| 15 #include "vpx_scale/yv12config.h" | |
| 16 #include "vp8/common/blockd.h" | 15 #include "vp8/common/blockd.h" |
| 17 | 16 |
| 18 #if CONFIG_POSTPROC | 17 #if CONFIG_POSTPROC |
| 19 #include "postproc.h" | 18 #include "postproc.h" |
| 20 #endif /* CONFIG_POSTPROC */ | 19 #endif /* CONFIG_POSTPROC */ |
| 21 | 20 |
| 22 BEGIN | 21 BEGIN |
| 23 | 22 |
| 24 /* vpx_scale */ | |
| 25 DEFINE(yv12_buffer_config_y_width, offsetof(YV12_BUFFER_CONFIG, y_w
idth)); | |
| 26 DEFINE(yv12_buffer_config_y_height, offsetof(YV12_BUFFER_CONFIG, y_h
eight)); | |
| 27 DEFINE(yv12_buffer_config_y_stride, offsetof(YV12_BUFFER_CONFIG, y_s
tride)); | |
| 28 DEFINE(yv12_buffer_config_uv_width, offsetof(YV12_BUFFER_CONFIG, uv_
width)); | |
| 29 DEFINE(yv12_buffer_config_uv_height, offsetof(YV12_BUFFER_CONFIG, uv_
height)); | |
| 30 DEFINE(yv12_buffer_config_uv_stride, offsetof(YV12_BUFFER_CONFIG, uv_
stride)); | |
| 31 DEFINE(yv12_buffer_config_y_buffer, offsetof(YV12_BUFFER_CONFIG, y_b
uffer)); | |
| 32 DEFINE(yv12_buffer_config_u_buffer, offsetof(YV12_BUFFER_CONFIG, u_b
uffer)); | |
| 33 DEFINE(yv12_buffer_config_v_buffer, offsetof(YV12_BUFFER_CONFIG, v_b
uffer)); | |
| 34 DEFINE(yv12_buffer_config_border, offsetof(YV12_BUFFER_CONFIG, bor
der)); | |
| 35 DEFINE(VP8BORDERINPIXELS_VAL, VP8BORDERINPIXELS); | |
| 36 | |
| 37 #if CONFIG_POSTPROC | 23 #if CONFIG_POSTPROC |
| 38 /* mfqe.c / filter_by_weight */ | 24 /* mfqe.c / filter_by_weight */ |
| 39 DEFINE(MFQE_PRECISION_VAL, MFQE_PRECISION); | 25 DEFINE(MFQE_PRECISION_VAL, MFQE_PRECISION); |
| 40 #endif /* CONFIG_POSTPROC */ | 26 #endif /* CONFIG_POSTPROC */ |
| 41 | 27 |
| 42 END | 28 END |
| 43 | 29 |
| 44 /* add asserts for any offset that is not supported by assembly code */ | 30 /* add asserts for any offset that is not supported by assembly code */ |
| 45 /* add asserts for any size that is not supported by assembly code */ | 31 /* add asserts for any size that is not supported by assembly code */ |
| 46 | 32 |
| 47 #if HAVE_MEDIA | 33 #if HAVE_MEDIA |
| 48 /* switch case in vp8_intra4x4_predict_armv6 is based on these enumerated values
*/ | 34 /* switch case in vp8_intra4x4_predict_armv6 is based on these enumerated values
*/ |
| 49 ct_assert(B_DC_PRED, B_DC_PRED == 0); | 35 ct_assert(B_DC_PRED, B_DC_PRED == 0); |
| 50 ct_assert(B_TM_PRED, B_TM_PRED == 1); | 36 ct_assert(B_TM_PRED, B_TM_PRED == 1); |
| 51 ct_assert(B_VE_PRED, B_VE_PRED == 2); | 37 ct_assert(B_VE_PRED, B_VE_PRED == 2); |
| 52 ct_assert(B_HE_PRED, B_HE_PRED == 3); | 38 ct_assert(B_HE_PRED, B_HE_PRED == 3); |
| 53 ct_assert(B_LD_PRED, B_LD_PRED == 4); | 39 ct_assert(B_LD_PRED, B_LD_PRED == 4); |
| 54 ct_assert(B_RD_PRED, B_RD_PRED == 5); | 40 ct_assert(B_RD_PRED, B_RD_PRED == 5); |
| 55 ct_assert(B_VR_PRED, B_VR_PRED == 6); | 41 ct_assert(B_VR_PRED, B_VR_PRED == 6); |
| 56 ct_assert(B_VL_PRED, B_VL_PRED == 7); | 42 ct_assert(B_VL_PRED, B_VL_PRED == 7); |
| 57 ct_assert(B_HD_PRED, B_HD_PRED == 8); | 43 ct_assert(B_HD_PRED, B_HD_PRED == 8); |
| 58 ct_assert(B_HU_PRED, B_HU_PRED == 9); | 44 ct_assert(B_HU_PRED, B_HU_PRED == 9); |
| 59 #endif | 45 #endif |
| 60 | 46 |
| 61 #if HAVE_NEON | |
| 62 /* vp8_yv12_extend_frame_borders_neon makes several assumptions based on this */ | |
| 63 ct_assert(VP8BORDERINPIXELS_VAL, VP8BORDERINPIXELS == 32) | |
| 64 #endif | |
| 65 | |
| 66 #if HAVE_SSE2 | 47 #if HAVE_SSE2 |
| 67 #if CONFIG_POSTPROC | 48 #if CONFIG_POSTPROC |
| 68 /* vp8_filter_by_weight16x16 and 8x8 */ | 49 /* vp8_filter_by_weight16x16 and 8x8 */ |
| 69 ct_assert(MFQE_PRECISION_VAL, MFQE_PRECISION == 4) | 50 ct_assert(MFQE_PRECISION_VAL, MFQE_PRECISION == 4) |
| 70 #endif /* CONFIG_POSTPROC */ | 51 #endif /* CONFIG_POSTPROC */ |
| 71 #endif /* HAVE_SSE2 */ | 52 #endif /* HAVE_SSE2 */ |
| OLD | NEW |