#include "mtk_vcodec_enc_drv.h"
#include "venc_ipi_msg.h"
#include "venc_vpu_if.h"
static void handle_enc_init_msg(struct venc_vpu_inst *vpu, const void *data)
{ … }
static void handle_enc_encode_msg(struct venc_vpu_inst *vpu, const void *data)
{ … }
static bool vpu_enc_check_ap_inst(struct mtk_vcodec_enc_dev *enc_dev, struct venc_vpu_inst *vpu)
{ … }
static void vpu_enc_ipi_handler(void *data, unsigned int len, void *priv)
{ … }
static int vpu_enc_send_msg(struct venc_vpu_inst *vpu, void *msg,
int len)
{ … }
int vpu_enc_init(struct venc_vpu_inst *vpu)
{ … }
static unsigned int venc_enc_param_crop_right(struct venc_vpu_inst *vpu,
struct venc_enc_param *enc_prm)
{ … }
static unsigned int venc_enc_param_crop_bottom(struct venc_enc_param *enc_prm)
{ … }
static unsigned int venc_enc_param_num_mb(struct venc_enc_param *enc_prm)
{ … }
int vpu_enc_set_param(struct venc_vpu_inst *vpu,
enum venc_set_param_type id,
struct venc_enc_param *enc_param)
{ … }
static int vpu_enc_encode_32bits(struct venc_vpu_inst *vpu,
unsigned int bs_mode,
struct venc_frm_buf *frm_buf,
struct mtk_vcodec_mem *bs_buf,
struct venc_frame_info *frame_info)
{ … }
static int vpu_enc_encode_34bits(struct venc_vpu_inst *vpu,
unsigned int bs_mode,
struct venc_frm_buf *frm_buf,
struct mtk_vcodec_mem *bs_buf,
struct venc_frame_info *frame_info)
{ … }
int vpu_enc_encode(struct venc_vpu_inst *vpu, unsigned int bs_mode,
struct venc_frm_buf *frm_buf,
struct mtk_vcodec_mem *bs_buf,
struct venc_frame_info *frame_info)
{ … }
int vpu_enc_deinit(struct venc_vpu_inst *vpu)
{ … }