[1/1] v4l2 doc: Added S/G_ROTATE, S/G_BG_COLOR information

Message ID 1256794977-32473-1-git-send-email-hvaibhav@ti.com (mailing list archive)
State Superseded, archived
Headers

Commit Message

Hiremath, Vaibhav Oct. 29, 2009, 5:42 a.m. UTC
  From: Vaibhav Hiremath <hvaibhav@ti.com>


Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
---
 v4l2-spec/controls.sgml |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)
  

Comments

Hiremath, Vaibhav Oct. 29, 2009, 5:51 a.m. UTC | #1
Oops, below patch had wrong subject line (S/G). I just fixed the subject line (to CID_) and attached here.


Thanks,
Vaibhav Hiremath
Platform Support Products
Texas Instruments Inc
Ph: +91-80-25099927

> -----Original Message-----
> From: Hiremath, Vaibhav
> Sent: Thursday, October 29, 2009 11:13 AM
> To: linux-media@vger.kernel.org
> Cc: Hiremath, Vaibhav
> Subject: [PATCH 1/1] v4l2 doc: Added S/G_ROTATE, S/G_BG_COLOR
> information
> 
> From: Vaibhav Hiremath <hvaibhav@ti.com>
> 
> 
> Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> ---
>  v4l2-spec/controls.sgml |   20 +++++++++++++++++++-
>  1 files changed, 19 insertions(+), 1 deletions(-)
> 
> diff --git a/v4l2-spec/controls.sgml b/v4l2-spec/controls.sgml
> index 477a970..a675f30 100644
> --- a/v4l2-spec/controls.sgml
> +++ b/v4l2-spec/controls.sgml
> @@ -281,10 +281,28 @@ minimum value disables backlight
> compensation.</entry>
>  <constant>V4L2_COLORFX_SEPIA</constant> (2).</entry>
>  	  </row>
>  	  <row>
> +	    <entry><constant>V4L2_CID_ROTATE</constant></entry>
> +	    <entry>integer</entry>
> +	    <entry>Rotates the image by specified angle. Common angles
> are 90,
> +	    270 and 180. Rotating the image to 90 and 270 will reverse
> the height
> +	    and width of the display window. It is necessary to set
> the new height and
> +	    width of the picture using S_FMT ioctl, see <xref
> linkend="vidioc-g-fmt"> according to
> +	    the rotation angle selected.</entry>
> +	  </row>
> +	  <row>
> +	    <entry><constant>V4L2_CID_BG_COLOR</constant></entry>
> +	    <entry>integer</entry>
> +	    <entry>Sets the background color on the current output
> device.
> +	    Background color needs to be specified in the RGB24
> format. The
> +	    supplied 32 bit value is interpreted as bits 0-7 Red color
> information,
> +	    bits 8-15 Green color information, bits 16-23 Blue color
> +	    information and bits 24-31 must be zero.</entry>
> +	  </row>
> +	  <row>
>  	    <entry><constant>V4L2_CID_LASTP1</constant></entry>
>  	    <entry></entry>
>  	    <entry>End of the predefined control IDs (currently
> -<constant>V4L2_CID_COLORFX</constant> + 1).</entry>
> +<constant>V4L2_CID_BG_COLOR</constant> + 1).</entry>
>  	  </row>
>  	  <row>
>  	    <entry><constant>V4L2_CID_PRIVATE_BASE</constant></entry>
> --
> 1.6.2.4
  

Patch

diff --git a/v4l2-spec/controls.sgml b/v4l2-spec/controls.sgml
index 477a970..a675f30 100644
--- a/v4l2-spec/controls.sgml
+++ b/v4l2-spec/controls.sgml
@@ -281,10 +281,28 @@  minimum value disables backlight compensation.</entry>
 <constant>V4L2_COLORFX_SEPIA</constant> (2).</entry>
 	  </row>
 	  <row>
+	    <entry><constant>V4L2_CID_ROTATE</constant></entry>
+	    <entry>integer</entry>
+	    <entry>Rotates the image by specified angle. Common angles are 90,
+	    270 and 180. Rotating the image to 90 and 270 will reverse the height
+	    and width of the display window. It is necessary to set the new height and
+	    width of the picture using S_FMT ioctl, see <xref linkend="vidioc-g-fmt"> according to
+	    the rotation angle selected.</entry>
+	  </row>
+	  <row>
+	    <entry><constant>V4L2_CID_BG_COLOR</constant></entry>
+	    <entry>integer</entry>
+	    <entry>Sets the background color on the current output device.
+	    Background color needs to be specified in the RGB24 format. The
+	    supplied 32 bit value is interpreted as bits 0-7 Red color information,
+	    bits 8-15 Green color information, bits 16-23 Blue color
+	    information and bits 24-31 must be zero.</entry>
+	  </row>
+	  <row>
 	    <entry><constant>V4L2_CID_LASTP1</constant></entry>
 	    <entry></entry>
 	    <entry>End of the predefined control IDs (currently
-<constant>V4L2_CID_COLORFX</constant> + 1).</entry>
+<constant>V4L2_CID_BG_COLOR</constant> + 1).</entry>
 	  </row>
 	  <row>
 	    <entry><constant>V4L2_CID_PRIVATE_BASE</constant></entry>