diff options
author | Hamsalekha S <hamsalekha.s@ittiam.com> | 2015-03-13 21:24:58 +0530 |
---|---|---|
committer | Hamsalekha S <hamsalekha.s@ittiam.com> | 2015-04-02 15:59:02 +0530 |
commit | 8d3d303c7942ced6a987a52db8977d768dc3605f (patch) | |
tree | cc806c96794356996b13ba9970941d0aed74a97e /common/ih264_inter_pred_filters.h | |
parent | 3956d913d37327dcb340f836e604b04bd478b158 (diff) | |
download | android_external_libavc-8d3d303c7942ced6a987a52db8977d768dc3605f.tar.gz android_external_libavc-8d3d303c7942ced6a987a52db8977d768dc3605f.tar.bz2 android_external_libavc-8d3d303c7942ced6a987a52db8977d768dc3605f.zip |
Initial version
Change-Id: I7efe9a589cd24edf86e8d086b40c27cbbf8b4017
Diffstat (limited to 'common/ih264_inter_pred_filters.h')
-rwxr-xr-x | common/ih264_inter_pred_filters.h | 241 |
1 files changed, 241 insertions, 0 deletions
diff --git a/common/ih264_inter_pred_filters.h b/common/ih264_inter_pred_filters.h new file mode 100755 index 0000000..c439ab8 --- /dev/null +++ b/common/ih264_inter_pred_filters.h @@ -0,0 +1,241 @@ +/****************************************************************************** + * + * Copyright (C) 2015 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ***************************************************************************** + * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore +*/ + +/** + ******************************************************************************* + * @file + * ih264_inter_pred_filters.h + * + * @brief + * Declarations of functions used for inter prediction + * + * @author + * Ittiam + * + * @par List of Functions: + * -ih264_inter_pred_luma_copy + * -ih264_interleave_copy + * -ih264_inter_pred_luma_horz + * -ih264_inter_pred_luma_vert + * -ih264_inter_pred_luma_horz_hpel_vert_hpel + * -ih264_inter_pred_luma_vert_qpel + * -ih264_inter_pred_luma_horz_qpel + * -ih264_inter_pred_luma_horz_qpel_vert_qpel + * -ih264_inter_pred_luma_horz_qpel_vert_hpel + * -ih264_inter_pred_luma_horz_hpel_vert_qpel + * -ih264_inter_pred_luma_bilinear + * -ih264_inter_pred_chroma + * -ih264_inter_pred_luma_copy_a9q + * -ih264_interleave_copy_a9 + * -ih264_inter_pred_luma_horz_a9q + * -ih264_inter_pred_luma_vert_a9q + * -ih264_inter_pred_luma_bilinear_a9q + * -ih264_inter_pred_luma_horz_hpel_vert_hpel_a9q + * -ih264_inter_pred_luma_horz_qpel_a9q + * -ih264_inter_pred_luma_vert_qpel_a9q + * -ih264_inter_pred_luma_horz_qpel_vert_qpel_a9q + * -ih264_inter_pred_luma_horz_qpel_vert_hpel_a9q + * -ih264_inter_pred_luma_horz_hpel_vert_qpel_a9q + * -ih264_inter_pred_chroma_a9q + * -ih264_inter_pred_luma_copy_av8 + * -ih264_interleave_copy_av8 + * -ih264_inter_pred_luma_horz_av8 + * -ih264_inter_pred_luma_vert_av8 + * -ih264_inter_pred_luma_bilinear_av8 + * -ih264_inter_pred_luma_horz_hpel_vert_hpel_av8 + * -ih264_inter_pred_luma_horz_qpel_av8 + * -ih264_inter_pred_luma_vert_qpel_av8 + * -ih264_inter_pred_luma_horz_qpel_vert_qpel_av8 + * -ih264_inter_pred_luma_horz_qpel_vert_hpel_av8 + * -ih264_inter_pred_luma_horz_hpel_vert_qpel_av8 + * -ih264_inter_pred_chroma_av8 + * -ih264_inter_pred_chroma_dx_zero_av8 + * -ih264_inter_pred_chroma_dy_zero_av8 + * -ih264_inter_pred_luma_copy_ssse3 + * -ih264_inter_pred_luma_copy_ssse3 + * -ih264_inter_pred_luma_horz_ssse3 + * -ih264_inter_pred_luma_vert_ssse3 + * -ih264_inter_pred_luma_bilinear_ssse3 + * -ih264_inter_pred_luma_horz_hpel_vert_hpel_ssse3 + * -ih264_inter_pred_luma_horz_qpel_ssse3 + * -ih264_inter_pred_luma_vert_qpel_ssse3 + * -ih264_inter_pred_luma_horz_qpel_vert_qpel_ssse3 + * -ih264_inter_pred_luma_horz_qpel_vert_hpel_ssse3 + * -ih264_inter_pred_luma_horz_hpel_vert_qpel_ssse3 + * -ih264_inter_pred_chroma_ssse3 + * + * @remarks + * None + * + ******************************************************************************* + */ + +#ifndef _IH264_INTER_PRED_H_ +#define _IH264_INTER_PRED_H_ + +/*****************************************************************************/ +/* Constant Data variables */ +/*****************************************************************************/ + +extern const WORD32 ih264_g_six_tap[3];/* coefficients for 6 tap filtering*/ + +/*****************************************************************************/ +/* Extern Function Declarations */ +/*****************************************************************************/ + +typedef void ih264_inter_pred_luma_ft(UWORD8 *pu1_src, + UWORD8 *pu1_dst, + WORD32 src_strd, + WORD32 dst_strd, + WORD32 ht, + WORD32 wd, + UWORD8* pu1_tmp, + WORD32 dydx); + +typedef void ih264_interleave_copy_ft(UWORD8 *pu1_src, + UWORD8 *pu1_dst, + WORD32 src_strd, + WORD32 dst_strd, + WORD32 ht, + WORD32 wd); + +typedef void ih264_inter_pred_luma_bilinear_ft(UWORD8 *pu1_src1, + UWORD8 *pu1_src2, + UWORD8 *pu1_dst, + WORD32 src_strd1, + WORD32 src_strd2, + WORD32 dst_strd, + WORD32 height, + WORD32 width); + +typedef void ih264_inter_pred_chroma_ft(UWORD8 *pu1_src, + UWORD8 *pu1_dst, + WORD32 src_strd, + WORD32 dst_strd, + WORD32 dx, + WORD32 dy, + WORD32 ht, + WORD32 wd); + +/* No NEON Declarations */ + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_copy; + +ih264_interleave_copy_ft ih264_interleave_copy; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_hpel; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_qpel; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_qpel; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_hpel; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_qpel; + +ih264_inter_pred_luma_bilinear_ft ih264_inter_pred_luma_bilinear; + +ih264_inter_pred_chroma_ft ih264_inter_pred_chroma; + +/* A9 NEON Declarations */ +ih264_inter_pred_luma_ft ih264_inter_pred_luma_copy_a9q; + +ih264_interleave_copy_ft ih264_interleave_copy_a9; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_a9q; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_a9q; + +ih264_inter_pred_luma_bilinear_ft ih264_inter_pred_luma_bilinear_a9q; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_hpel_a9q; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_a9q; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_qpel_a9q; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_qpel_a9q; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_hpel_a9q; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_qpel_a9q; + +ih264_inter_pred_chroma_ft ih264_inter_pred_chroma_a9q; + +/* AV8 NEON Declarations */ +ih264_inter_pred_luma_ft ih264_inter_pred_luma_copy_av8; + +ih264_interleave_copy_ft ih264_interleave_copy_av8; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_av8; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_av8; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_hpel_av8; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_av8; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_qpel_av8; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_qpel_av8; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_hpel_av8; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_qpel_av8; + +ih264_inter_pred_chroma_ft ih264_inter_pred_chroma_av8; + +ih264_inter_pred_chroma_ft ih264_inter_pred_chroma_dx_zero_av8; + +ih264_inter_pred_chroma_ft ih264_inter_pred_chroma_dy_zero_av8; + + +/* SSSE3 Intrinsic Declarations */ +ih264_inter_pred_luma_ft ih264_inter_pred_luma_copy_ssse3; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_ssse3; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_ssse3; + +ih264_inter_pred_luma_bilinear_ft ih264_inter_pred_luma_bilinear_ssse3; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_hpel_ssse3; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_ssse3; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_qpel_ssse3; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_qpel_ssse3; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_hpel_ssse3; + +ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_qpel_ssse3; + +ih264_inter_pred_chroma_ft ih264_inter_pred_chroma_ssse3; + +#endif + +/** Nothing past this point */ |