Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* |
michael@0 | 2 | * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
michael@0 | 3 | * |
michael@0 | 4 | * Use of this source code is governed by a BSD-style license |
michael@0 | 5 | * that can be found in the LICENSE file in the root of the source |
michael@0 | 6 | * tree. An additional intellectual property rights grant can be found |
michael@0 | 7 | * in the file PATENTS. All contributing project authors may |
michael@0 | 8 | * be found in the AUTHORS file in the root of the source tree. |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | |
michael@0 | 12 | #include "vpx_config.h" |
michael@0 | 13 | #include "vp8_rtcd.h" |
michael@0 | 14 | #include "vp8/common/blockd.h" |
michael@0 | 15 | #include "vpx_mem/vpx_mem.h" |
michael@0 | 16 | |
michael@0 | 17 | #if HAVE_NEON |
michael@0 | 18 | extern void vp8_build_intra_predictors_mby_neon_func( |
michael@0 | 19 | unsigned char *y_buffer, |
michael@0 | 20 | unsigned char *ypred_ptr, |
michael@0 | 21 | int y_stride, |
michael@0 | 22 | int mode, |
michael@0 | 23 | int Up, |
michael@0 | 24 | int Left); |
michael@0 | 25 | |
michael@0 | 26 | void vp8_build_intra_predictors_mby_neon(MACROBLOCKD *x) |
michael@0 | 27 | { |
michael@0 | 28 | unsigned char *y_buffer = x->dst.y_buffer; |
michael@0 | 29 | unsigned char *ypred_ptr = x->predictor; |
michael@0 | 30 | int y_stride = x->dst.y_stride; |
michael@0 | 31 | int mode = x->mode_info_context->mbmi.mode; |
michael@0 | 32 | int Up = x->up_available; |
michael@0 | 33 | int Left = x->left_available; |
michael@0 | 34 | |
michael@0 | 35 | vp8_build_intra_predictors_mby_neon_func(y_buffer, ypred_ptr, y_stride, mode, Up, Left); |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | extern void vp8_build_intra_predictors_mby_s_neon_func( |
michael@0 | 39 | unsigned char *y_buffer, |
michael@0 | 40 | unsigned char *ypred_ptr, |
michael@0 | 41 | int y_stride, |
michael@0 | 42 | int mode, |
michael@0 | 43 | int Up, |
michael@0 | 44 | int Left); |
michael@0 | 45 | |
michael@0 | 46 | void vp8_build_intra_predictors_mby_s_neon(MACROBLOCKD *x) |
michael@0 | 47 | { |
michael@0 | 48 | unsigned char *y_buffer = x->dst.y_buffer; |
michael@0 | 49 | unsigned char *ypred_ptr = x->predictor; |
michael@0 | 50 | int y_stride = x->dst.y_stride; |
michael@0 | 51 | int mode = x->mode_info_context->mbmi.mode; |
michael@0 | 52 | int Up = x->up_available; |
michael@0 | 53 | int Left = x->left_available; |
michael@0 | 54 | |
michael@0 | 55 | vp8_build_intra_predictors_mby_s_neon_func(y_buffer, ypred_ptr, y_stride, mode, Up, Left); |
michael@0 | 56 | } |
michael@0 | 57 | |
michael@0 | 58 | #endif |