forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/meson/meson_venc.h
....@@ -1,19 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) 2016 BayLibre, SAS
34 * Author: Neil Armstrong <narmstrong@baylibre.com>
4
- *
5
- * This program is free software; you can redistribute it and/or
6
- * modify it under the terms of the GNU General Public License as
7
- * published by the Free Software Foundation; either version 2 of the
8
- * License, or (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful, but
11
- * WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
175 */
186
197 /*
....@@ -25,6 +13,8 @@
2513
2614 #ifndef __MESON_VENC_H
2715 #define __MESON_VENC_H
16
+
17
+struct drm_display_mode;
2818
2919 enum {
3020 MESON_VENC_MODE_NONE = 0,
....@@ -70,7 +60,9 @@
7060 void meson_venci_cvbs_mode_set(struct meson_drm *priv,
7161 struct meson_cvbs_enci_mode *mode);
7262 void meson_venc_hdmi_mode_set(struct meson_drm *priv, int vic,
73
- struct drm_display_mode *mode);
63
+ unsigned int ycrcb_map,
64
+ bool yuv420_mode,
65
+ const struct drm_display_mode *mode);
7466 unsigned int meson_venci_get_field(struct meson_drm *priv);
7567
7668 void meson_venc_enable_vsync(struct meson_drm *priv);