mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
3ae5da5adc
Deleted (upstreamed): ath79/patches-5.10/921-serial-core-add-support-for-boot-console-with-arbitr.patch [1] bcm53xx/patches-5.10/033-v5.15-0012-ARM-dts-BCM5301X-Fix-memory-nodes-names.patch [2] lantiq/patches-5.10/0016-mtd-rawnand-xway-Keep-the-driver-compatible-with-on-.patch [3] lantiq/patches-5.10/0110-MIPS-lantiq-dma-add-small-delay-after-reset.patch [4] lantiq/patches-5.10/0111-MIPS-lantiq-dma-reset-correct-number-of-channel.patch [5] lantiq/patches-5.10/0112-MIPS-lantiq-dma-fix-burst-length-for-DEU.patch [6] Manually rebased: ipq806x/patches-5.10/0065-arm-override-compiler-flags.patch [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=47462c5e600fbaffd755cd13dedd80d04e41ff83 [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=2fde76df1885a6bec04317e457121326070450eb [3] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=9b366f5221d8aa64b22f35be137a5749326444ce [4] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=5af57ce8a6155fe3e4270d28d171abf8903bebc0 [5] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=b92a5df2c7adc79a57481445f67de0c1c716581f [6] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.10.80&id=6b72caabc47011d03f44064452b2c65e8ed18326 Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
105 lines
3.9 KiB
Diff
105 lines
3.9 KiB
Diff
From e3da593c79ce8e7ab7072fe1551fc1e8b5494eab Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Thu, 25 Jun 2020 17:51:03 +0100
|
|
Subject: [PATCH] media: Add a pixel format for MIPI packed 14bit luma
|
|
only.
|
|
|
|
This is the format used by monochrome 14bit image sensors.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
.../userspace-api/media/v4l/pixfmt-y14p.rst | 54 +++++++++++++++++++
|
|
.../userspace-api/media/v4l/yuv-formats.rst | 1 +
|
|
drivers/media/v4l2-core/v4l2-ioctl.c | 1 +
|
|
include/uapi/linux/videodev2.h | 1 +
|
|
4 files changed, 57 insertions(+)
|
|
create mode 100644 Documentation/userspace-api/media/v4l/pixfmt-y14p.rst
|
|
|
|
--- /dev/null
|
|
+++ b/Documentation/userspace-api/media/v4l/pixfmt-y14p.rst
|
|
@@ -0,0 +1,54 @@
|
|
+.. Permission is granted to copy, distribute and/or modify this
|
|
+.. document under the terms of the GNU Free Documentation License,
|
|
+.. Version 1.1 or any later version published by the Free Software
|
|
+.. Foundation, with no Invariant Sections, no Front-Cover Texts
|
|
+.. and no Back-Cover Texts. A copy of the license is included at
|
|
+.. Documentation/media/uapi/fdl-appendix.rst.
|
|
+..
|
|
+.. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
|
|
+
|
|
+.. _V4L2-PIX-FMT-Y14P:
|
|
+
|
|
+**************************
|
|
+V4L2_PIX_FMT_Y14P ('Y14P')
|
|
+**************************
|
|
+
|
|
+Grey-scale image as a MIPI RAW14 packed array
|
|
+
|
|
+
|
|
+Description
|
|
+===========
|
|
+
|
|
+This is a packed grey-scale image format with a depth of 14 bits per
|
|
+pixel. Every four consecutive samples are packed into seven bytes. Each
|
|
+of the first four bytes contain the eight high order bits of the pixels,
|
|
+and the three following bytes contains the six least significants bits of
|
|
+each pixel, in the same order.
|
|
+
|
|
+**Byte Order.**
|
|
+Each cell is one byte.
|
|
+
|
|
+.. tabularcolumns:: |p{1.8cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{1.1cm}|p{3.3cm}|p{3.3cm}|p{3.3cm}|
|
|
+
|
|
+.. flat-table::
|
|
+ :header-rows: 0
|
|
+ :stub-columns: 0
|
|
+ :widths: 2 1 1 1 1 3 3 3
|
|
+
|
|
+
|
|
+ - - start + 0:
|
|
+ - Y'\ :sub:`00high`
|
|
+ - Y'\ :sub:`01high`
|
|
+ - Y'\ :sub:`02high`
|
|
+ - Y'\ :sub:`03high`
|
|
+ - Y'\ :sub:`01low bits 1--0`\ (bits 7--6)
|
|
+
|
|
+ Y'\ :sub:`00low bits 5--0`\ (bits 5--0)
|
|
+
|
|
+ - Y'\ :sub:`02low bits 3--0`\ (bits 7--4)
|
|
+
|
|
+ Y'\ :sub:`01low bits 5--2`\ (bits 3--0)
|
|
+
|
|
+ - Y'\ :sub:`03low bits 5--0`\ (bits 7--2)
|
|
+
|
|
+ Y'\ :sub:`02low bits 5--4`\ (bits 1--0)
|
|
--- a/Documentation/userspace-api/media/v4l/yuv-formats.rst
|
|
+++ b/Documentation/userspace-api/media/v4l/yuv-formats.rst
|
|
@@ -30,6 +30,7 @@ to brightness information.
|
|
pixfmt-y12
|
|
pixfmt-y12p
|
|
pixfmt-y14
|
|
+ pixfmt-y14p
|
|
pixfmt-y10b
|
|
pixfmt-y10p
|
|
pixfmt-y16
|
|
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
|
|
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
|
|
@@ -1302,6 +1302,7 @@ static void v4l_fill_fmtdesc(struct v4l2
|
|
case V4L2_PIX_FMT_Y10BPACK: descr = "10-bit Greyscale (Packed)"; break;
|
|
case V4L2_PIX_FMT_Y10P: descr = "10-bit Greyscale (MIPI Packed)"; break;
|
|
case V4L2_PIX_FMT_Y12P: descr = "12-bit Greyscale (MIPI Packed)"; break;
|
|
+ case V4L2_PIX_FMT_Y14P: descr = "14-bit Greyscale (MIPI Packed)"; break;
|
|
case V4L2_PIX_FMT_Y8I: descr = "Interleaved 8-bit Greyscale"; break;
|
|
case V4L2_PIX_FMT_Y12I: descr = "Interleaved 12-bit Greyscale"; break;
|
|
case V4L2_PIX_FMT_Z16: descr = "16-bit Depth"; break;
|
|
--- a/include/uapi/linux/videodev2.h
|
|
+++ b/include/uapi/linux/videodev2.h
|
|
@@ -581,6 +581,7 @@ struct v4l2_pix_format {
|
|
#define V4L2_PIX_FMT_Y10BPACK v4l2_fourcc('Y', '1', '0', 'B') /* 10 Greyscale bit-packed */
|
|
#define V4L2_PIX_FMT_Y10P v4l2_fourcc('Y', '1', '0', 'P') /* 10 Greyscale, MIPI RAW10 packed */
|
|
#define V4L2_PIX_FMT_Y12P v4l2_fourcc('Y', '1', '2', 'P') /* 12 Greyscale, MIPI RAW12 packed */
|
|
+#define V4L2_PIX_FMT_Y14P v4l2_fourcc('Y', '1', '4', 'P') /* 14 Greyscale, MIPI RAW12 packed */
|
|
|
|
/* Palette formats */
|
|
#define V4L2_PIX_FMT_PAL8 v4l2_fourcc('P', 'A', 'L', '8') /* 8 8-bit palette */
|