hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.h
....@@ -1,23 +1,15 @@
1
+/* SPDX-License-Identifier: GPL-2.0 */
12 /*
23 * Copyright (c) 2016 MediaTek Inc.
34 * Author: PC Chen <pc.chen@mediatek.com>
45 * 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.
146 */
157
168 #ifndef _MTK_VCODEC_ENC_H_
179 #define _MTK_VCODEC_ENC_H_
1810
1911 #include <media/videobuf2-core.h>
20
-#include <media/videobuf2-v4l2.h>
12
+#include <media/v4l2-mem2mem.h>
2113
2214 #define MTK_VENC_IRQ_STATUS_SPS 0x1
2315 #define MTK_VENC_IRQ_STATUS_PPS 0x2
....@@ -31,15 +23,15 @@
3123
3224 /**
3325 * struct mtk_video_enc_buf - Private data related to each VB2 buffer.
34
- * @vb: Pointer to related VB2 buffer.
26
+ * @m2m_buf: M2M buffer
3527 * @list: list that buffer link to
3628 * @param_change: Types of encode parameter change before encoding this
3729 * buffer
3830 * @enc_params: Encode parameters changed before encode this buffer
3931 */
4032 struct mtk_video_enc_buf {
41
- struct vb2_v4l2_buffer vb;
42
- struct list_head list;
33
+ struct v4l2_m2m_buffer m2m_buf;
34
+
4335 u32 param_change;
4436 struct mtk_enc_params enc_params;
4537 };