* [PATCH 1/1] doc-rst: Specify raw bayer format variant used in the examples
@ 2016-11-15 21:49 Sakari Ailus
2016-11-15 21:55 ` Laurent Pinchart
2016-11-22 18:27 ` Mauro Carvalho Chehab
0 siblings, 2 replies; 5+ messages in thread
From: Sakari Ailus @ 2016-11-15 21:49 UTC (permalink / raw)
To: linux-media; +Cc: laurent.pinchart
The documentation simply mentioned that one of the four pixel orders was
used in the example. Now specify the exact pixelformat instead.
for i in pixfmt-s*.rst; do i=$i perl -i -pe '
my $foo=$ENV{i};
$foo =~ s/pixfmt-[a-z]+([0-9].*).rst/$1/;
$foo = uc $foo;
s/one of these formats/a small V4L2_PIX_FMT_SBGGR$foo image/' $i;
done
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
Documentation/media/uapi/v4l/pixfmt-srggb10p.rst | 2 +-
Documentation/media/uapi/v4l/pixfmt-srggb12.rst | 2 +-
Documentation/media/uapi/v4l/pixfmt-srggb16.rst | 2 +-
Documentation/media/uapi/v4l/pixfmt-srggb8.rst | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/media/uapi/v4l/pixfmt-srggb10p.rst b/Documentation/media/uapi/v4l/pixfmt-srggb10p.rst
index 9a41c8d..b6d426c 100644
--- a/Documentation/media/uapi/v4l/pixfmt-srggb10p.rst
+++ b/Documentation/media/uapi/v4l/pixfmt-srggb10p.rst
@@ -28,7 +28,7 @@ bits of each pixel, in the same order.
Each n-pixel row contains n/2 green samples and n/2 blue or red samples,
with alternating green-red and green-blue rows. They are conventionally
described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
-of one of these formats:
+of a small V4L2_PIX_FMT_SBGGR10P image:
**Byte Order.**
Each cell is one byte.
diff --git a/Documentation/media/uapi/v4l/pixfmt-srggb12.rst b/Documentation/media/uapi/v4l/pixfmt-srggb12.rst
index a50ee14..15041e5 100644
--- a/Documentation/media/uapi/v4l/pixfmt-srggb12.rst
+++ b/Documentation/media/uapi/v4l/pixfmt-srggb12.rst
@@ -26,7 +26,7 @@ high bits filled with zeros. Each n-pixel row contains n/2 green samples
and n/2 blue or red samples, with alternating red and blue rows. Bytes
are stored in memory in little endian order. They are conventionally
described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
-of one of these formats:
+of a small V4L2_PIX_FMT_SBGGR12 image:
**Byte Order.**
Each cell is one byte, the 4 most significant bits in the high bytes are
diff --git a/Documentation/media/uapi/v4l/pixfmt-srggb16.rst b/Documentation/media/uapi/v4l/pixfmt-srggb16.rst
index 06facc9..d407b2b 100644
--- a/Documentation/media/uapi/v4l/pixfmt-srggb16.rst
+++ b/Documentation/media/uapi/v4l/pixfmt-srggb16.rst
@@ -22,7 +22,7 @@ sample. Each sample is stored in a 16-bit word. Each n-pixel row contains
n/2 green samples and n/2 blue or red samples, with alternating red and blue
rows. Bytes are stored in memory in little endian order. They are
conventionally described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is
-an example of one of these formats:
+an example of a small V4L2_PIX_FMT_SBGGR16 image:
**Byte Order.**
Each cell is one byte.
diff --git a/Documentation/media/uapi/v4l/pixfmt-srggb8.rst b/Documentation/media/uapi/v4l/pixfmt-srggb8.rst
index a3987d2..5ac25a6 100644
--- a/Documentation/media/uapi/v4l/pixfmt-srggb8.rst
+++ b/Documentation/media/uapi/v4l/pixfmt-srggb8.rst
@@ -20,7 +20,7 @@ These four pixel formats are raw sRGB / Bayer formats with 8 bits per
sample. Each sample is stored in a byte. Each n-pixel row contains n/2
green samples and n/2 blue or red samples, with alternating red and
blue rows. They are conventionally described as GRGR... BGBG...,
-RGRG... GBGB..., etc. Below is an example of one of these formats:
+RGRG... GBGB..., etc. Below is an example of a small V4L2_PIX_FMT_SBGGR8 image:
**Byte Order.**
Each cell is one byte.
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] doc-rst: Specify raw bayer format variant used in the examples
2016-11-15 21:49 [PATCH 1/1] doc-rst: Specify raw bayer format variant used in the examples Sakari Ailus
@ 2016-11-15 21:55 ` Laurent Pinchart
2016-11-15 22:08 ` Sakari Ailus
2016-11-22 18:27 ` Mauro Carvalho Chehab
1 sibling, 1 reply; 5+ messages in thread
From: Laurent Pinchart @ 2016-11-15 21:55 UTC (permalink / raw)
To: Sakari Ailus; +Cc: linux-media
Hi Sakari,
Thank you for the patch.
On Tuesday 15 Nov 2016 23:49:43 Sakari Ailus wrote:
> The documentation simply mentioned that one of the four pixel orders was
> used in the example. Now specify the exact pixelformat instead.
>
> for i in pixfmt-s*.rst; do i=$i perl -i -pe '
> my $foo=$ENV{i};
> $foo =~ s/pixfmt-[a-z]+([0-9].*).rst/$1/;
> $foo = uc $foo;
> s/one of these formats/a small V4L2_PIX_FMT_SBGGR$foo image/' $i;
> done
Do we really need this in the commit message ? :-)
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
As the patch applies on top of another one I took in my tree for the uvcvideo
driver I've applied this one there as well.
> ---
> Documentation/media/uapi/v4l/pixfmt-srggb10p.rst | 2 +-
> Documentation/media/uapi/v4l/pixfmt-srggb12.rst | 2 +-
> Documentation/media/uapi/v4l/pixfmt-srggb16.rst | 2 +-
> Documentation/media/uapi/v4l/pixfmt-srggb8.rst | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/media/uapi/v4l/pixfmt-srggb10p.rst
> b/Documentation/media/uapi/v4l/pixfmt-srggb10p.rst index 9a41c8d..b6d426c
> 100644
> --- a/Documentation/media/uapi/v4l/pixfmt-srggb10p.rst
> +++ b/Documentation/media/uapi/v4l/pixfmt-srggb10p.rst
> @@ -28,7 +28,7 @@ bits of each pixel, in the same order.
> Each n-pixel row contains n/2 green samples and n/2 blue or red samples,
> with alternating green-red and green-blue rows. They are conventionally
> described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
> -of one of these formats:
> +of a small V4L2_PIX_FMT_SBGGR10P image:
>
> **Byte Order.**
> Each cell is one byte.
> diff --git a/Documentation/media/uapi/v4l/pixfmt-srggb12.rst
> b/Documentation/media/uapi/v4l/pixfmt-srggb12.rst index a50ee14..15041e5
> 100644
> --- a/Documentation/media/uapi/v4l/pixfmt-srggb12.rst
> +++ b/Documentation/media/uapi/v4l/pixfmt-srggb12.rst
> @@ -26,7 +26,7 @@ high bits filled with zeros. Each n-pixel row contains n/2
> green samples and n/2 blue or red samples, with alternating red and blue
> rows. Bytes are stored in memory in little endian order. They are
> conventionally described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is
> an example -of one of these formats:
> +of a small V4L2_PIX_FMT_SBGGR12 image:
>
> **Byte Order.**
> Each cell is one byte, the 4 most significant bits in the high bytes are
> diff --git a/Documentation/media/uapi/v4l/pixfmt-srggb16.rst
> b/Documentation/media/uapi/v4l/pixfmt-srggb16.rst index 06facc9..d407b2b
> 100644
> --- a/Documentation/media/uapi/v4l/pixfmt-srggb16.rst
> +++ b/Documentation/media/uapi/v4l/pixfmt-srggb16.rst
> @@ -22,7 +22,7 @@ sample. Each sample is stored in a 16-bit word. Each
> n-pixel row contains n/2 green samples and n/2 blue or red samples, with
> alternating red and blue rows. Bytes are stored in memory in little endian
> order. They are conventionally described as GRGR... BGBG..., RGRG...
> GBGB..., etc. Below is -an example of one of these formats:
> +an example of a small V4L2_PIX_FMT_SBGGR16 image:
>
> **Byte Order.**
> Each cell is one byte.
> diff --git a/Documentation/media/uapi/v4l/pixfmt-srggb8.rst
> b/Documentation/media/uapi/v4l/pixfmt-srggb8.rst index a3987d2..5ac25a6
> 100644
> --- a/Documentation/media/uapi/v4l/pixfmt-srggb8.rst
> +++ b/Documentation/media/uapi/v4l/pixfmt-srggb8.rst
> @@ -20,7 +20,7 @@ These four pixel formats are raw sRGB / Bayer formats with
> 8 bits per sample. Each sample is stored in a byte. Each n-pixel row
> contains n/2 green samples and n/2 blue or red samples, with alternating
> red and blue rows. They are conventionally described as GRGR... BGBG...,
> -RGRG... GBGB..., etc. Below is an example of one of these formats:
> +RGRG... GBGB..., etc. Below is an example of a small V4L2_PIX_FMT_SBGGR8
> image:
>
> **Byte Order.**
> Each cell is one byte.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] doc-rst: Specify raw bayer format variant used in the examples
2016-11-15 21:55 ` Laurent Pinchart
@ 2016-11-15 22:08 ` Sakari Ailus
0 siblings, 0 replies; 5+ messages in thread
From: Sakari Ailus @ 2016-11-15 22:08 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: Sakari Ailus, linux-media
Hi Laurent,
On Tue, Nov 15, 2016 at 11:55:27PM +0200, Laurent Pinchart wrote:
> Hi Sakari,
>
> Thank you for the patch.
>
> On Tuesday 15 Nov 2016 23:49:43 Sakari Ailus wrote:
> > The documentation simply mentioned that one of the four pixel orders was
> > used in the example. Now specify the exact pixelformat instead.
> >
> > for i in pixfmt-s*.rst; do i=$i perl -i -pe '
> > my $foo=$ENV{i};
> > $foo =~ s/pixfmt-[a-z]+([0-9].*).rst/$1/;
> > $foo = uc $foo;
> > s/one of these formats/a small V4L2_PIX_FMT_SBGGR$foo image/' $i;
> > done
>
> Do we really need this in the commit message ? :-)
Feel free to remove it if you like. I put it there to avoid forgetting it as
I'll still need to convert other patches. Perhaps it might be better placed
elsewhere. :-)
>
> > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
> As the patch applies on top of another one I took in my tree for the uvcvideo
> driver I've applied this one there as well.
Thanks!
--
Kind regards,
Sakari Ailus
e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] doc-rst: Specify raw bayer format variant used in the examples
2016-11-15 21:49 [PATCH 1/1] doc-rst: Specify raw bayer format variant used in the examples Sakari Ailus
2016-11-15 21:55 ` Laurent Pinchart
@ 2016-11-22 18:27 ` Mauro Carvalho Chehab
2016-11-23 16:41 ` Laurent Pinchart
1 sibling, 1 reply; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2016-11-22 18:27 UTC (permalink / raw)
To: Sakari Ailus; +Cc: linux-media, laurent.pinchart
Em Tue, 15 Nov 2016 23:49:43 +0200
Sakari Ailus <sakari.ailus@linux.intel.com> escreveu:
> The documentation simply mentioned that one of the four pixel orders was
> used in the example. Now specify the exact pixelformat instead.
>
> for i in pixfmt-s*.rst; do i=$i perl -i -pe '
> my $foo=$ENV{i};
> $foo =~ s/pixfmt-[a-z]+([0-9].*).rst/$1/;
> $foo = uc $foo;
> s/one of these formats/a small V4L2_PIX_FMT_SBGGR$foo image/' $i;
> done
Patch is nice, except that it doesn't apply :-)
If it depends on some other patch, please send it together with
its dependency or at least mention it at the patch, after the
-- line.
Thanks,
Mauro
$ quilt push -f --merge
Applying patch patches/lmml_38129_1_1_doc_rst_specify_raw_bayer_format_variant_used_in_the_examples.patch
patching file Documentation/media/uapi/v4l/pixfmt-srggb10p.rst
patching file Documentation/media/uapi/v4l/pixfmt-srggb12.rst
can't find file to patch at input line 62
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/Documentation/media/uapi/v4l/pixfmt-srggb16.rst b/Documentation/media/uapi/v4l/pixfmt-srggb16.rst
|index 06facc9..d407b2b 100644
|--- a/Documentation/media/uapi/v4l/pixfmt-srggb16.rst
|+++ b/Documentation/media/uapi/v4l/pixfmt-srggb16.rst
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
patching file Documentation/media/uapi/v4l/pixfmt-srggb8.rst
Regards,
Mauro
Thanks,
Mauro
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] doc-rst: Specify raw bayer format variant used in the examples
2016-11-22 18:27 ` Mauro Carvalho Chehab
@ 2016-11-23 16:41 ` Laurent Pinchart
0 siblings, 0 replies; 5+ messages in thread
From: Laurent Pinchart @ 2016-11-23 16:41 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: Sakari Ailus, linux-media
Hi Mauro,
On Tuesday 22 Nov 2016 16:27:29 Mauro Carvalho Chehab wrote:
> Em Tue, 15 Nov 2016 23:49:43 +0200 Sakari Ailus escreveu:
> > The documentation simply mentioned that one of the four pixel orders was
> > used in the example. Now specify the exact pixelformat instead.
> >
> > for i in pixfmt-s*.rst; do i=$i perl -i -pe '
> > my $foo=$ENV{i};
> > $foo =~ s/pixfmt-[a-z]+([0-9].*).rst/$1/;
> > $foo = uc $foo;
> > s/one of these formats/a small V4L2_PIX_FMT_SBGGR$foo image/' $i;
> > done
>
> Patch is nice, except that it doesn't apply :-)
>
> If it depends on some other patch, please send it together with
> its dependency or at least mention it at the patch, after the
> -- line.
It depends on "v4l: Add 16-bit raw bayer pixel formats". I have that one in my
tree in an UVC branch and will send you a pull request that will include this
patch very shortly.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-11-23 16:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-15 21:49 [PATCH 1/1] doc-rst: Specify raw bayer format variant used in the examples Sakari Ailus
2016-11-15 21:55 ` Laurent Pinchart
2016-11-15 22:08 ` Sakari Ailus
2016-11-22 18:27 ` Mauro Carvalho Chehab
2016-11-23 16:41 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).