1/****************************************************************************** 2 * 3 * Copyright (C) 2015 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ***************************************************************************** 18 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore 19*/ 20/** 21******************************************************************************* 22* @file 23* impeg2d_mc.h 24* 25* @brief 26* Contains MC function declarations for MPEG2 codec 27* 28* @author 29* Harish 30* 31* @remarks 32* None 33* 34******************************************************************************* 35*/ 36#ifndef __IMPEG2D_MC_H__ 37#define __IMPEG2D_MC_H__ 38 39void impeg2d_dec_2mv_interp_mb(dec_state_t *dec); 40void impeg2d_dec_4mv_mb(dec_state_t *dec); 41 42 43void impeg2d_dec_1mv_mb(dec_state_t *dec); 44void impeg2d_dec_2mv_fw_or_bk_mb(dec_state_t *dec); 45void impeg2d_dec_fld_dual_prime(dec_state_t *dec); 46void impeg2d_dec_frm_dual_prime(dec_state_t *dec); 47 48void impeg2d_mc_1mv(dec_state_t *dec); 49void impeg2d_mc_fw_or_bk_mb(dec_state_t *dec); 50void impeg2d_mc_fld_dual_prime(dec_state_t *dec); 51void impeg2d_mc_frm_dual_prime(dec_state_t *dec); 52void impeg2d_mc_4mv(dec_state_t *dec); 53void impeg2d_mc_2mv(dec_state_t *dec); 54 55void impeg2d_dec_skip_mbs(dec_state_t *dec, UWORD16 num_skip_mbs); 56void impeg2d_dec_0mv_coded_mb(dec_state_t *dec); 57void impeg2d_dec_intra_mb(dec_state_t *dec); 58 59void impeg2d_set_mc_params(comp_mc_params_t *luma, 60 comp_mc_params_t *chroma, 61 e_mb_type_t type, 62 UWORD16 mv_num, 63 WORD16 mv[], 64 UWORD16 mb_x, 65 UWORD16 mb_y, 66 UWORD16 frm_wd, 67 UWORD16 frm_ht, 68 UWORD16 picture_width); 69 70void impeg2d_motion_comp(dec_state_t *dec, mb_mc_params_t *params,yuv_buf_t *buf); 71 72pf_mc_t impeg2d_mc_halfx_halfy; 73pf_mc_t impeg2d_mc_halfx_fully; 74pf_mc_t impeg2d_mc_fullx_halfy; 75pf_mc_t impeg2d_mc_fullx_fully; 76 77 78#endif /* __IMPEG2D_MC_H__*/ 79