From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751495AbcGOPRJ (ORCPT ); Fri, 15 Jul 2016 11:17:09 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33414 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbcGOPRE (ORCPT ); Fri, 15 Jul 2016 11:17:04 -0400 From: Ricardo Ribalda Delgado To: auro Carvalho Chehab , Hans Verkuil , Laurent Pinchart , Sakari Ailus , Antti Palosaari , Guennadi Liakhovetski , Helen Mae Koike Fornazier , Philipp Zabel , Shuah Khan , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH 2/6] [media] Documentation: Add HSV format Date: Fri, 15 Jul 2016 17:16:52 +0200 Message-Id: <1468595816-31272-3-git-send-email-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1468595816-31272-1-git-send-email-ricardo.ribalda@gmail.com> References: <1468595816-31272-1-git-send-email-ricardo.ribalda@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Describe the HSV formats. Signed-off-by: Ricardo Ribalda Delgado --- .../DocBook/media/v4l/pixfmt-packed-hsv.xml | 195 +++++++++++++++++++++ Documentation/DocBook/media/v4l/pixfmt.xml | 13 ++ Documentation/DocBook/media/v4l/v4l2.xml | 8 + 3 files changed, 216 insertions(+) create mode 100644 Documentation/DocBook/media/v4l/pixfmt-packed-hsv.xml diff --git a/Documentation/DocBook/media/v4l/pixfmt-packed-hsv.xml b/Documentation/DocBook/media/v4l/pixfmt-packed-hsv.xml new file mode 100644 index 000000000000..3b41d567e32b --- /dev/null +++ b/Documentation/DocBook/media/v4l/pixfmt-packed-hsv.xml @@ -0,0 +1,195 @@ + + + Packed HSV formats + &manvol; + + + Packed HSV formats + Packed HSV formats + + + Description + + The HUE (h) is meassured in degrees, one LSB represents two +degrees. The SATURATION (s) and the VALUE (v) are meassured in percentage +of the cylinder: 0 being the smallest value and 255 the maximum. + The values are packed in 24 or 32 bit formats. + + + Packed YUV Image Formats + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Identifier + Code +   + Byte 0 in memory + Byte 1 + Byte 2 + Byte 3 + + +   +   + Bit + 7 + 6 + 5 + 4 + 3 + 2 + 1 + 0 +   + 7 + 6 + 5 + 4 + 3 + 2 + 1 + 0 +   + 7 + 6 + 5 + 4 + 3 + 2 + 1 + 0 +   + 7 + 6 + 5 + 4 + 3 + 2 + 1 + 0 + + + + + V4L2_PIX_FMT_HSV32 + 'HSV4' + + - + - + - + - + - + - + - + - + + h7 + h6 + h5 + h4 + h3 + h2 + h1 + h0 + + s7 + s6 + s5 + s4 + s3 + s2 + s1 + s0 + + v7 + v6 + v5 + v4 + v3 + v2 + v1 + v0 + + + V4L2_PIX_FMT_HSV24 + 'HSV3' + + h7 + h6 + h5 + h4 + h3 + h2 + h1 + h0 + + s7 + s6 + s5 + s4 + s3 + s2 + s1 + s0 + + v7 + v6 + v5 + v4 + v3 + v2 + v1 + v0 + + + +
+ + Bit 7 is the most significant bit. + +
+
diff --git a/Documentation/DocBook/media/v4l/pixfmt.xml b/Documentation/DocBook/media/v4l/pixfmt.xml index 5a08aeea4360..7b081a6bdc61 100644 --- a/Documentation/DocBook/media/v4l/pixfmt.xml +++ b/Documentation/DocBook/media/v4l/pixfmt.xml @@ -1740,6 +1740,19 @@ extended control V4L2_CID_MPEG_STREAM_TYPE, see +
+ HSV Formats + + These formats store the color information of the image +in a geometrical representation. The colors are mapped into a +cylinder, where the angle is the HUE, the height is the VALUE +and the distance to the center is the SATURATION. This is a very +useful format for image segmentation algorithms. + + &packed-hsv; + +
+
SDR Formats diff --git a/Documentation/DocBook/media/v4l/v4l2.xml b/Documentation/DocBook/media/v4l/v4l2.xml index 42e626d6c936..f38039b7c338 100644 --- a/Documentation/DocBook/media/v4l/v4l2.xml +++ b/Documentation/DocBook/media/v4l/v4l2.xml @@ -152,6 +152,14 @@ structs, ioctls) must be noted in more detail in the history chapter (compat.xml), along with the possible impact on existing drivers and applications. --> + 4.8 + 2016-07-15 + rr + Introduce HSV formats. + + + + 4.5 2015-10-29 rr -- 2.8.1