.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2016 MediaTek Inc. |
---|
3 | 4 | * Author: Daniel Hsiao <daniel.hsiao@mediatek.com> |
---|
4 | 5 | * Jungchang Tsao <jungchang.tsao@mediatek.com> |
---|
5 | 6 | * 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. |
---|
16 | 7 | */ |
---|
17 | 8 | |
---|
18 | 9 | #ifndef _VENC_DRV_BASE_ |
---|
.. | .. |
---|
28 | 19 | * @ctx: [in] mtk v4l2 context |
---|
29 | 20 | * @handle: [out] driver handle |
---|
30 | 21 | */ |
---|
31 | | - int (*init)(struct mtk_vcodec_ctx *ctx, unsigned long *handle); |
---|
| 22 | + int (*init)(struct mtk_vcodec_ctx *ctx); |
---|
32 | 23 | |
---|
33 | 24 | /** |
---|
34 | 25 | * (*encode)() - trigger encode |
---|
.. | .. |
---|
38 | 29 | * @bs_buf: [in] bitstream buffer to store output bitstream |
---|
39 | 30 | * @result: [out] encode result |
---|
40 | 31 | */ |
---|
41 | | - int (*encode)(unsigned long handle, enum venc_start_opt opt, |
---|
| 32 | + int (*encode)(void *handle, enum venc_start_opt opt, |
---|
42 | 33 | struct venc_frm_buf *frm_buf, |
---|
43 | 34 | struct mtk_vcodec_mem *bs_buf, |
---|
44 | 35 | struct venc_done_result *result); |
---|
.. | .. |
---|
49 | 40 | * @type: [in] parameter type |
---|
50 | 41 | * @in: [in] buffer to store the parameter |
---|
51 | 42 | */ |
---|
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, |
---|
53 | 44 | struct venc_enc_param *in); |
---|
54 | 45 | |
---|
55 | 46 | /** |
---|
56 | 47 | * (*deinit)() - deinitialize driver. |
---|
57 | 48 | * @handle: [in] driver handle |
---|
58 | 49 | */ |
---|
59 | | - int (*deinit)(unsigned long handle); |
---|
| 50 | + int (*deinit)(void *handle); |
---|
60 | 51 | }; |
---|
61 | 52 | |
---|
62 | 53 | #endif |
---|