.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2016 MediaTek Inc. |
---|
3 | 4 | * Author: PC Chen <pc.chen@mediatek.com> |
---|
4 | 5 | * Tiffany Lin <tiffany.lin@mediatek.com> |
---|
5 | | -* |
---|
6 | | -* This program is free software; you can redistribute it and/or 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. |
---|
14 | 6 | */ |
---|
15 | 7 | |
---|
16 | 8 | #ifndef _MTK_VCODEC_ENC_H_ |
---|
17 | 9 | #define _MTK_VCODEC_ENC_H_ |
---|
18 | 10 | |
---|
19 | 11 | #include <media/videobuf2-core.h> |
---|
20 | | -#include <media/videobuf2-v4l2.h> |
---|
| 12 | +#include <media/v4l2-mem2mem.h> |
---|
21 | 13 | |
---|
22 | 14 | #define MTK_VENC_IRQ_STATUS_SPS 0x1 |
---|
23 | 15 | #define MTK_VENC_IRQ_STATUS_PPS 0x2 |
---|
.. | .. |
---|
31 | 23 | |
---|
32 | 24 | /** |
---|
33 | 25 | * struct mtk_video_enc_buf - Private data related to each VB2 buffer. |
---|
34 | | - * @vb: Pointer to related VB2 buffer. |
---|
| 26 | + * @m2m_buf: M2M buffer |
---|
35 | 27 | * @list: list that buffer link to |
---|
36 | 28 | * @param_change: Types of encode parameter change before encoding this |
---|
37 | 29 | * buffer |
---|
38 | 30 | * @enc_params: Encode parameters changed before encode this buffer |
---|
39 | 31 | */ |
---|
40 | 32 | struct mtk_video_enc_buf { |
---|
41 | | - struct vb2_v4l2_buffer vb; |
---|
42 | | - struct list_head list; |
---|
| 33 | + struct v4l2_m2m_buffer m2m_buf; |
---|
| 34 | + |
---|
43 | 35 | u32 param_change; |
---|
44 | 36 | struct mtk_enc_params enc_params; |
---|
45 | 37 | }; |
---|