Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 655 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2016 MediaTek Inc.
|
|
* Author: PC Chen <pc.chen@mediatek.com>
|
|
*/
|
|
|
|
#ifndef _VDEC_DRV_BASE_
|
|
#define _VDEC_DRV_BASE_
|
|
|
|
#include "mtk_vcodec_drv.h"
|
|
|
|
#include "vdec_drv_if.h"
|
|
|
|
struct vdec_common_if {
|
|
/**
|
|
* (*init)() - initialize decode driver
|
|
* @ctx : [in] mtk v4l2 context
|
|
* @h_vdec : [out] driver handle
|
|
*/
|
|
int (*init)(struct mtk_vcodec_ctx *ctx, unsigned long *h_vdec);
|
|
|
|
/**
|
|
* (*decode)() - trigger decode
|
|
* @h_vdec : [in] driver handle
|
|
* @bs : [in] input bitstream
|
|
* @fb : [in] frame buffer to store decoded frame
|
|
* @res_chg : [out] resolution change happen
|
|
*/
|
|
int (*decode)(unsigned long h_vdec, struct mtk_vcodec_mem *bs,
|
|
struct vdec_fb *fb, bool *res_chg);
|
|
|
|
/**
|
|
* (*get_param)() - get driver's parameter
|
|
* @h_vdec : [in] driver handle
|
|
* @type : [in] input parameter type
|
|
* @out : [out] buffer to store query result
|
|
*/
|
|
int (*get_param)(unsigned long h_vdec, enum vdec_get_param_type type,
|
|
void *out);
|
|
|
|
/**
|
|
* (*deinit)() - deinitialize driver.
|
|
* @h_vdec : [in] driver handle to be deinit
|
|
*/
|
|
void (*deinit)(unsigned long h_vdec);
|
|
};
|
|
|
|
#endif
|