hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/platform/mtk-vcodec/venc_vpu_if.h
....@@ -1,22 +1,13 @@
1
+/* SPDX-License-Identifier: GPL-2.0 */
12 /*
23 * Copyright (c) 2016 MediaTek Inc.
34 * Author: PoChun Lin <pochun.lin@mediatek.com>
4
- *
5
- * This program is free software; you can redistribute it and/or
6
- * modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
145 */
156
167 #ifndef _VENC_VPU_IF_H_
178 #define _VENC_VPU_IF_H_
189
19
-#include "mtk_vpu.h"
10
+#include "mtk_vcodec_fw.h"
2011 #include "venc_drv_if.h"
2112
2213 /*
....@@ -43,9 +34,8 @@
4334 int is_key_frm;
4435 unsigned int inst_addr;
4536 void *vsi;
46
- enum ipi_id id;
37
+ int id;
4738 struct mtk_vcodec_ctx *ctx;
48
- struct platform_device *dev;
4939 };
5040
5141 int vpu_enc_init(struct venc_vpu_inst *vpu);
....@@ -55,7 +45,8 @@
5545 int vpu_enc_encode(struct venc_vpu_inst *vpu, unsigned int bs_mode,
5646 struct venc_frm_buf *frm_buf,
5747 struct mtk_vcodec_mem *bs_buf,
58
- unsigned int *bs_size);
48
+ unsigned int *bs_size,
49
+ struct venc_frame_info *frame_info);
5950 int vpu_enc_deinit(struct venc_vpu_inst *vpu);
6051
6152 #endif