From patchwork Mon Apr 6 12:40:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hardik Shah X-Patchwork-Id: 16518 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n36Celmk032434 for ; Mon, 6 Apr 2009 12:40:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752051AbZDFMkq (ORCPT ); Mon, 6 Apr 2009 08:40:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753004AbZDFMkq (ORCPT ); Mon, 6 Apr 2009 08:40:46 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:50733 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752051AbZDFMkp (ORCPT ); Mon, 6 Apr 2009 08:40:45 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id n36CebT2031007; Mon, 6 Apr 2009 07:40:43 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id n36CeZUI014283; Mon, 6 Apr 2009 18:10:36 +0530 (IST) From: Hardik Shah To: linux-media@vger.kernel.org Cc: linux-omap@vger.kernel.org, Hardik Shah , Brijesh Jadav , Vaibhav Hiremath Subject: [PATCH 1/3] Documentation for new V4L2 CIDs added. Date: Mon, 6 Apr 2009 18:10:35 +0530 Message-Id: <1239021635-16252-1-git-send-email-hardik.shah@ti.com> X-Mailer: git-send-email 1.6.0.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 1. Updated for V4L2_CID_BG_COLOR 2. Updated for V4L2_CID_ROTATION Both of the above are discussed in length with community 3. Updated for new flags and capability field added to v4l2_frame buffer structure. Community comments fixed in this post 1. Fixed Few typos. 2. Changed V4L2_CID_ROTATION to V4L2_CID_ROTATE 3. Re-framed source chroma keying related explanation Signed-off-by: Brijesh Jadav Signed-off-by: Hardik Shah Signed-off-by: Vaibhav Hiremath --- v4l2-spec/controls.sgml | 19 ++++++++++++++++++- v4l2-spec/vidioc-g-fbuf.sgml | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletions(-) -- 1.6.0.3 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/v4l2-spec/controls.sgml b/v4l2-spec/controls.sgml index 477a970..3a91061 100644 --- a/v4l2-spec/controls.sgml +++ b/v4l2-spec/controls.sgml @@ -281,10 +281,27 @@ minimum value disables backlight compensation. V4L2_COLORFX_SEPIA (2). + V4L2_CID_ROTATE + integer + 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 according to the rotation angle selected + + + V4L2_CID_BG_COLOR + integer + Sets the background color of the current output device. +Background color needs to be specified in the RGB24 format. The supplied 32 +bit value is intepreted 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. + + V4L2_CID_LASTP1 End of the predefined control IDs (currently -V4L2_CID_COLORFX + 1). +V4L2_CID_BG_COLOR + 1). V4L2_CID_PRIVATE_BASE diff --git a/v4l2-spec/vidioc-g-fbuf.sgml b/v4l2-spec/vidioc-g-fbuf.sgml index 6781b53..13c9ac6 100644 --- a/v4l2-spec/vidioc-g-fbuf.sgml +++ b/v4l2-spec/vidioc-g-fbuf.sgml @@ -336,6 +336,13 @@ alpha value. Alpha blending makes no sense for destructive overlays. inverted alpha channel of the framebuffer or VGA signal. Alpha blending makes no sense for destructive overlays. + + V4L2_FBUF_CAP_SRC_CHROMAKEY + 0x0080 + The device supports source chroma keying. Video pixels + with the chromakey color are replaced by the framebuffer pixels. + Exactly opposite of V4L2_FBUF_CAP_CHROMAKEY + @@ -411,6 +418,18 @@ images, but with an inverted alpha value. The blend function is: output = framebuffer pixel * (1 - alpha) + video pixel * alpha. The actual alpha depth depends on the framebuffer pixel format. + + V4L2_FBUF_FLAG_SRC_CHROMAKEY + 0x0040 + Use source chroma-keying. The chroma-key color is +determined by the chromakey field of +&v4l2-window; and negotiated with the &VIDIOC-S-FMT; ioctl, see and . +Since any one of the chroma keying can be active at a time as both +of them are exactly opposite, the same chromakey +field of &v4l2-window; can be used to set the chroma key for source +keying also. +