Re: [PATCH 2/2] DocBook/media: add missing entry for V4L2_PIX_FMT_Y16_BE

2015-05-15 Thread Ricardo Ribalda Delgado
Hello Hans

My bad sorry, I should have send this patch myself.

Shouldn't it be? :

00 high
00 low
01 high
01 low
02 high
02 low
03 high
03 low

10 high
10 low
11 high
11 low
12 high
12 low
13 high
13 low

20 high
20 low
21 high
21 low
22 high
22 low
23 high
23 low

30 high
30 low
31 high
31 low
32 high
32 low
33 high
33 low


Thanks


ps: I am sending the patch for libv4lconvert right away, and the patch
for qv4l during next week (I havent dont gl before)
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/2] DocBook/media: add missing entry for V4L2_PIX_FMT_Y16_BE

2015-05-15 Thread Hans Verkuil
You are completely right. I confused bits and bytes :-(

I've posted a v2.

Thanks!

Hans

On 05/15/2015 02:02 PM, Ricardo Ribalda Delgado wrote:
 Hello Hans
 
 My bad sorry, I should have send this patch myself.
 
 Shouldn't it be? :
 
 00 high
 00 low
 01 high
 01 low
 02 high
 02 low
 03 high
 03 low
 
 10 high
 10 low
 11 high
 11 low
 12 high
 12 low
 13 high
 13 low
 
 20 high
 20 low
 21 high
 21 low
 22 high
 22 low
 23 high
 23 low
 
 30 high
 30 low
 31 high
 31 low
 32 high
 32 low
 33 high
 33 low
 
 
 Thanks
 
 
 ps: I am sending the patch for libv4lconvert right away, and the patch
 for qv4l during next week (I havent dont gl before)
 

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 2/2] DocBook/media: add missing entry for V4L2_PIX_FMT_Y16_BE

2015-05-15 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com

This format was added but not documented. Do this now.

Signed-off-by: Hans Verkuil hans.verk...@cisco.com
Cc: Ricardo Ribalda Delgado ricardo.riba...@gmail.com
---
 Documentation/DocBook/media/v4l/pixfmt-y16-be.xml | 81 +++
 Documentation/DocBook/media/v4l/pixfmt.xml|  1 +
 2 files changed, 82 insertions(+)
 create mode 100644 Documentation/DocBook/media/v4l/pixfmt-y16-be.xml

diff --git a/Documentation/DocBook/media/v4l/pixfmt-y16-be.xml 
b/Documentation/DocBook/media/v4l/pixfmt-y16-be.xml
new file mode 100644
index 000..2212703
--- /dev/null
+++ b/Documentation/DocBook/media/v4l/pixfmt-y16-be.xml
@@ -0,0 +1,81 @@
+refentry id=V4L2-PIX-FMT-Y16-BE
+  refmeta
+refentrytitleV4L2_PIX_FMT_Y16_BE ('Y16 ' | (1 lt;lt; 
31))/refentrytitle
+manvol;
+  /refmeta
+  refnamediv
+refnameconstantV4L2_PIX_FMT_Y16_BE/constant/refname
+refpurposeGrey-scale image/refpurpose
+  /refnamediv
+  refsect1
+titleDescription/title
+
+paraThis is a grey-scale image with a depth of 16 bits per
+pixel. The most significant byte is stored at lower memory addresses
+(big-endian). Note the actual sampling precision may be lower than
+16 bits, for example 10 bits per pixel with values in range 0 to
+1023./para
+
+example
+  titleconstantV4L2_PIX_FMT_Y16_BE/constant 4 times; 4
+pixel image/title
+
+  formalpara
+   titleByte Order./title
+   paraEach cell is one byte.
+ informaltable frame=none
+   tgroup cols=9 align=center
+ colspec align=left colwidth=2* /
+ tbody valign=top
+   row
+ entrystartnbsp;+nbsp;0:/entry
+ entryY'subscript30low/subscript/entry
+ entryY'subscript30high/subscript/entry
+ entryY'subscript31low/subscript/entry
+ entryY'subscript31high/subscript/entry
+ entryY'subscript32low/subscript/entry
+ entryY'subscript32high/subscript/entry
+ entryY'subscript33low/subscript/entry
+ entryY'subscript33high/subscript/entry
+   /row
+   row
+ entrystartnbsp;+nbsp;8:/entry
+ entryY'subscript20low/subscript/entry
+ entryY'subscript20high/subscript/entry
+ entryY'subscript21low/subscript/entry
+ entryY'subscript21high/subscript/entry
+ entryY'subscript22low/subscript/entry
+ entryY'subscript22high/subscript/entry
+ entryY'subscript23low/subscript/entry
+ entryY'subscript23high/subscript/entry
+   /row
+   row
+ entrystartnbsp;+nbsp;16:/entry
+ entryY'subscript10low/subscript/entry
+ entryY'subscript10high/subscript/entry
+ entryY'subscript11low/subscript/entry
+ entryY'subscript11high/subscript/entry
+ entryY'subscript12low/subscript/entry
+ entryY'subscript12high/subscript/entry
+ entryY'subscript13low/subscript/entry
+ entryY'subscript13high/subscript/entry
+   /row
+   row
+ entrystartnbsp;+nbsp;24:/entry
+ entryY'subscript00low/subscript/entry
+ entryY'subscript00high/subscript/entry
+ entryY'subscript01low/subscript/entry
+ entryY'subscript01high/subscript/entry
+ entryY'subscript02low/subscript/entry
+ entryY'subscript02high/subscript/entry
+ entryY'subscript03low/subscript/entry
+ entryY'subscript03high/subscript/entry
+   /row
+ /tbody
+   /tgroup
+ /informaltable
+   /para
+  /formalpara
+/example
+  /refsect1
+/refentry
diff --git a/Documentation/DocBook/media/v4l/pixfmt.xml 
b/Documentation/DocBook/media/v4l/pixfmt.xml
index fcde4e2..ddff8d9 100644
--- a/Documentation/DocBook/media/v4l/pixfmt.xml
+++ b/Documentation/DocBook/media/v4l/pixfmt.xml
@@ -1429,6 +1429,7 @@ information./para
 sub-y12;
 sub-y10b;
 sub-y16;
+sub-y16-be;
 sub-uv8;
 sub-yuyv;
 sub-uyvy;
-- 
2.1.4

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html