#include <linux/delay.h>
#include <linux/types.h>
#include <media/videobuf2-dma-contig.h>
#include "cedrus.h"
#include "cedrus_hw.h"
#include "cedrus_regs.h"
#define CEDRUS_ENTROPY_PROBS_SIZE …
#define VP8_PROB_HALF …
#define QUANT_DELTA_COUNT …
static const u8 prob_table_init[] = …;
static const u8 k_mv_entropy_update_probs[2][V4L2_VP8_MV_PROB_CNT] = …;
static uint8_t read_bits(struct cedrus_dev *dev, unsigned int bits_count,
unsigned int probability)
{ … }
static void get_delta_q(struct cedrus_dev *dev)
{ … }
static void process_segmentation_info(struct cedrus_dev *dev)
{ … }
static void process_ref_lf_delta_info(struct cedrus_dev *dev)
{ … }
static void process_ref_frame_info(struct cedrus_dev *dev)
{ … }
static void cedrus_irq_clear(struct cedrus_dev *dev)
{ … }
static void cedrus_read_header(struct cedrus_dev *dev,
const struct v4l2_ctrl_vp8_frame *slice)
{ … }
static void cedrus_vp8_update_probs(const struct v4l2_ctrl_vp8_frame *slice,
u8 *prob_table)
{ … }
static enum cedrus_irq_status
cedrus_vp8_irq_status(struct cedrus_ctx *ctx)
{ … }
static void cedrus_vp8_irq_clear(struct cedrus_ctx *ctx)
{ … }
static void cedrus_vp8_irq_disable(struct cedrus_ctx *ctx)
{ … }
static int cedrus_vp8_setup(struct cedrus_ctx *ctx, struct cedrus_run *run)
{ … }
static int cedrus_vp8_start(struct cedrus_ctx *ctx)
{ … }
static void cedrus_vp8_stop(struct cedrus_ctx *ctx)
{ … }
static void cedrus_vp8_trigger(struct cedrus_ctx *ctx)
{ … }
struct cedrus_dec_ops cedrus_dec_ops_vp8 = …;