#include <linux/init.h>
#include <linux/interconnect.h>
#include <linux/ioctl.h>
#include <linux/list.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include "vpu.h"
#include "vpu_defs.h"
#include "vpu_core.h"
#include "vpu_rpc.h"
#include "vpu_helpers.h"
int vpu_helper_find_in_array_u8(const u8 *array, u32 size, u32 x)
{ … }
bool vpu_helper_check_type(struct vpu_inst *inst, u32 type)
{ … }
const struct vpu_format *vpu_helper_find_format(struct vpu_inst *inst, u32 type, u32 pixelfmt)
{ … }
const struct vpu_format *vpu_helper_find_sibling(struct vpu_inst *inst, u32 type, u32 pixelfmt)
{ … }
bool vpu_helper_match_format(struct vpu_inst *inst, u32 type, u32 fmta, u32 fmtb)
{ … }
const struct vpu_format *vpu_helper_enum_format(struct vpu_inst *inst, u32 type, int index)
{ … }
u32 vpu_helper_valid_frame_width(struct vpu_inst *inst, u32 width)
{ … }
u32 vpu_helper_valid_frame_height(struct vpu_inst *inst, u32 height)
{ … }
static u32 get_nv12_plane_size(u32 width, u32 height, int plane_no,
u32 stride, u32 interlaced, u32 *pbl)
{ … }
static u32 get_tiled_8l128_plane_size(u32 fmt, u32 width, u32 height, int plane_no,
u32 stride, u32 interlaced, u32 *pbl)
{ … }
static u32 get_default_plane_size(u32 width, u32 height, int plane_no,
u32 stride, u32 interlaced, u32 *pbl)
{ … }
u32 vpu_helper_get_plane_size(u32 fmt, u32 w, u32 h, int plane_no,
u32 stride, u32 interlaced, u32 *pbl)
{ … }
int vpu_helper_copy_from_stream_buffer(struct vpu_buffer *stream_buffer,
u32 *rptr, u32 size, void *dst)
{ … }
int vpu_helper_copy_to_stream_buffer(struct vpu_buffer *stream_buffer,
u32 *wptr, u32 size, void *src)
{ … }
int vpu_helper_memset_stream_buffer(struct vpu_buffer *stream_buffer,
u32 *wptr, u8 val, u32 size)
{ … }
u32 vpu_helper_get_free_space(struct vpu_inst *inst)
{ … }
u32 vpu_helper_get_used_space(struct vpu_inst *inst)
{ … }
int vpu_helper_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
{ … }
int vpu_helper_find_startcode(struct vpu_buffer *stream_buffer,
u32 pixelformat, u32 offset, u32 bytesused)
{ … }
int vpu_find_dst_by_src(struct vpu_pair *pairs, u32 cnt, u32 src)
{ … }
int vpu_find_src_by_dst(struct vpu_pair *pairs, u32 cnt, u32 dst)
{ … }
const char *vpu_id_name(u32 id)
{ … }
const char *vpu_codec_state_name(enum vpu_codec_state state)
{ … }