1 /* SPDX-License-Identifier: Apache-2.0 OR MIT */ 2 /* 3 * Copyright (c) 2017 Rockchip Electronics Co., Ltd. 4 */ 5 6 #ifndef __HAL_VP8E_ENTROPY_H__ 7 #define __HAL_VP8E_ENTROPY_H__ 8 9 #include "rk_type.h" 10 11 #include "hal_vp8e_putbit.h" 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 MPP_RET vp8e_init_entropy(void *hal); 18 MPP_RET vp8e_write_entropy_tables(void *hal); 19 RK_S32 vp8e_calc_cost_mv(RK_S32 mvd, RK_S32 *mv_prob); 20 MPP_RET vp8e_calc_coeff_prob(Vp8ePutBitBuf *bitbuf, 21 RK_S32 (*curr)[4][8][3][11], RK_S32 (*prev)[4][8][3][11]); 22 MPP_RET vp8e_calc_mv_prob(Vp8ePutBitBuf *bitbuf, 23 RK_S32 (*curr)[2][19], RK_S32 (*prev)[2][19]); 24 MPP_RET vp8e_swap_endian(RK_U32 *buf, RK_U32 bytes); 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /*__HAL_VP8E_ENTROPY_H__*/ 31