hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/platform/mtk-vcodec/vdec_drv_if.h
....@@ -1,16 +1,8 @@
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 _VDEC_DRV_IF_H_
....@@ -62,6 +54,10 @@
6254 struct vdec_fb *fb;
6355 };
6456
57
+extern const struct vdec_common_if vdec_h264_if;
58
+extern const struct vdec_common_if vdec_vp8_if;
59
+extern const struct vdec_common_if vdec_vp9_if;
60
+
6561 /**
6662 * vdec_if_init() - initialize decode driver
6763 * @ctx : [in] v4l2 context
....@@ -80,7 +76,7 @@
8076 * vdec_if_decode() - trigger decode
8177 * @ctx : [in] v4l2 context
8278 * @bs : [in] input bitstream
83
- * @fb : [in] frame buffer to store decoded frame, when null menas parse
79
+ * @fb : [in] frame buffer to store decoded frame, when null means parse
8480 * header only
8581 * @res_chg : [out] resolution change happens if current bs have different
8682 * picture width/height