forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/media/platform/mtk-vcodec/venc_drv_base.h
....@@ -1,18 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0 */
12 /*
23 * Copyright (c) 2016 MediaTek Inc.
34 * Author: Daniel Hsiao <daniel.hsiao@mediatek.com>
45 * Jungchang Tsao <jungchang.tsao@mediatek.com>
56 * Tiffany Lin <tiffany.lin@mediatek.com>
6
- *
7
- * This program is free software; you can redistribute it and/or
8
- * modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
167 */
178
189 #ifndef _VENC_DRV_BASE_
....@@ -28,7 +19,7 @@
2819 * @ctx: [in] mtk v4l2 context
2920 * @handle: [out] driver handle
3021 */
31
- int (*init)(struct mtk_vcodec_ctx *ctx, unsigned long *handle);
22
+ int (*init)(struct mtk_vcodec_ctx *ctx);
3223
3324 /**
3425 * (*encode)() - trigger encode
....@@ -38,7 +29,7 @@
3829 * @bs_buf: [in] bitstream buffer to store output bitstream
3930 * @result: [out] encode result
4031 */
41
- int (*encode)(unsigned long handle, enum venc_start_opt opt,
32
+ int (*encode)(void *handle, enum venc_start_opt opt,
4233 struct venc_frm_buf *frm_buf,
4334 struct mtk_vcodec_mem *bs_buf,
4435 struct venc_done_result *result);
....@@ -49,14 +40,14 @@
4940 * @type: [in] parameter type
5041 * @in: [in] buffer to store the parameter
5142 */
52
- int (*set_param)(unsigned long handle, enum venc_set_param_type type,
43
+ int (*set_param)(void *handle, enum venc_set_param_type type,
5344 struct venc_enc_param *in);
5445
5546 /**
5647 * (*deinit)() - deinitialize driver.
5748 * @handle: [in] driver handle
5849 */
59
- int (*deinit)(unsigned long handle);
50
+ int (*deinit)(void *handle);
6051 };
6152
6253 #endif