archived-mpp/mpp/hal/vpu/vp8e/hal_vp8e_entropy.h
Herman Chen da6ad1ee5e [LICENSE]: Add MIT license to some code
1. Add LICENSE directory for Apache-2.0 and MIT
2. Add MIT license to vp8e code for linux kernel porting usage.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Idcd9eb812e0737ae5d90802f33c2726b729f663e
2023-03-09 14:45:23 +08:00

30 lines
786 B
C

/* SPDX-License-Identifier: Apache-2.0 OR MIT */
/*
* Copyright (c) 2017 Rockchip Electronics Co., Ltd.
*/
#ifndef __HAL_VP8E_ENTROPY_H__
#define __HAL_VP8E_ENTROPY_H__
#include "rk_type.h"
#include "hal_vp8e_putbit.h"
#ifdef __cplusplus
extern "C" {
#endif
MPP_RET vp8e_init_entropy(void *hal);
MPP_RET vp8e_write_entropy_tables(void *hal);
RK_S32 vp8e_calc_cost_mv(RK_S32 mvd, RK_S32 *mv_prob);
MPP_RET vp8e_calc_coeff_prob(Vp8ePutBitBuf *bitbuf,
RK_S32 (*curr)[4][8][3][11], RK_S32 (*prev)[4][8][3][11]);
MPP_RET vp8e_calc_mv_prob(Vp8ePutBitBuf *bitbuf,
RK_S32 (*curr)[2][19], RK_S32 (*prev)[2][19]);
MPP_RET vp8e_swap_endian(RK_U32 *buf, RK_U32 bytes);
#ifdef __cplusplus
}
#endif
#endif /*__HAL_VP8E_ENTROPY_H__*/