forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/media/platform/exynos-gsc/gsc-core.h
....@@ -1,12 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (c) 2011 - 2012 Samsung Electronics Co., Ltd.
34 * http://www.samsung.com
45 *
56 * header file for Samsung EXYNOS5 SoC series G-Scaler driver
67
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
108 */
119
1210 #ifndef GSC_CORE_H_
....@@ -105,7 +103,6 @@
105103 /**
106104 * struct gsc_fmt - the driver's internal color format data
107105 * @mbus_code: Media Bus pixel code, -1 if not applicable
108
- * @name: format description
109106 * @pixelformat: the fourcc code for this format, 0 if not applicable
110107 * @yorder: Y/C order
111108 * @corder: Chrominance order control
....@@ -116,7 +113,6 @@
116113 */
117114 struct gsc_fmt {
118115 u32 mbus_code;
119
- char *name;
120116 u32 pixelformat;
121117 u32 color;
122118 u32 yorder;
....@@ -387,13 +383,12 @@
387383 u32 get_plane_size(struct gsc_frame *fr, unsigned int plane);
388384 const struct gsc_fmt *get_format(int index);
389385 const struct gsc_fmt *find_fmt(u32 *pixelformat, u32 *mbus_code, u32 index);
390
-int gsc_enum_fmt_mplane(struct v4l2_fmtdesc *f);
386
+int gsc_enum_fmt(struct v4l2_fmtdesc *f);
391387 int gsc_try_fmt_mplane(struct gsc_ctx *ctx, struct v4l2_format *f);
392388 void gsc_set_frame_size(struct gsc_frame *frame, int width, int height);
393389 int gsc_g_fmt_mplane(struct gsc_ctx *ctx, struct v4l2_format *f);
394390 void gsc_check_crop_change(u32 tmp_w, u32 tmp_h, u32 *w, u32 *h);
395
-int gsc_g_crop(struct gsc_ctx *ctx, struct v4l2_crop *cr);
396
-int gsc_try_crop(struct gsc_ctx *ctx, struct v4l2_crop *cr);
391
+int gsc_try_selection(struct gsc_ctx *ctx, struct v4l2_selection *s);
397392 int gsc_cal_prescaler_ratio(struct gsc_variant *var, u32 src, u32 dst,
398393 u32 *ratio);
399394 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh);