linux/drivers/media/platform/verisilicon/hantro_postproc.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Hantro G1 post-processor support
 *
 * Copyright (C) 2019 Collabora, Ltd.
 */

#include <linux/dma-mapping.h>
#include <linux/types.h>

#include "hantro.h"
#include "hantro_hw.h"
#include "hantro_g1_regs.h"
#include "hantro_g2_regs.h"
#include "hantro_v4l2.h"

#define HANTRO_PP_REG_WRITE(vpu, reg_name, val)

#define HANTRO_PP_REG_WRITE_RELAXED(vpu, reg_name, val)

#define VPU_PP_IN_YUYV
#define VPU_PP_IN_NV12
#define VPU_PP_IN_YUV420
#define VPU_PP_IN_YUV240_TILED
#define VPU_PP_OUT_RGB
#define VPU_PP_OUT_YUYV

static const struct hantro_postproc_regs hantro_g1_postproc_regs =;

bool hantro_needs_postproc(const struct hantro_ctx *ctx,
			   const struct hantro_fmt *fmt)
{}

static void hantro_postproc_g1_enable(struct hantro_ctx *ctx)
{}

static int down_scale_factor(struct hantro_ctx *ctx)
{}

static void hantro_postproc_g2_enable(struct hantro_ctx *ctx)
{}

static int hantro_postproc_g2_enum_framesizes(struct hantro_ctx *ctx,
					      struct v4l2_frmsizeenum *fsize)
{}

void hantro_postproc_free(struct hantro_ctx *ctx)
{}

static unsigned int hantro_postproc_buffer_size(struct hantro_ctx *ctx)
{}

static int hantro_postproc_alloc(struct hantro_ctx *ctx, int index)
{}

int hantro_postproc_init(struct hantro_ctx *ctx)
{}

dma_addr_t
hantro_postproc_get_dec_buf_addr(struct hantro_ctx *ctx, int index)
{}

static void hantro_postproc_g1_disable(struct hantro_ctx *ctx)
{}

static void hantro_postproc_g2_disable(struct hantro_ctx *ctx)
{}

void hantro_postproc_disable(struct hantro_ctx *ctx)
{}

void hantro_postproc_enable(struct hantro_ctx *ctx)
{}

int hanto_postproc_enum_framesizes(struct hantro_ctx *ctx,
				   struct v4l2_frmsizeenum *fsize)
{}

const struct hantro_postproc_ops hantro_g1_postproc_ops =;

const struct hantro_postproc_ops hantro_g2_postproc_ops =;