From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A5398E009CA; Mon, 25 May 2015 06:22:55 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mailext0.televes.com (mailext0.televes.com [212.163.42.140]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 533F0E0051B for ; Mon, 25 May 2015 06:22:51 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mailext0.televes.com (Postfix) with ESMTP id E943B9A3D51; Mon, 25 May 2015 15:22:49 +0200 (CEST) X-Virus-Scanned: by amavisd-new at mailext0.televes.com Received: from mailext0.televes.com ([127.0.0.1]) by localhost (mailext0.televes.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5nt2OUua7Uki; Mon, 25 May 2015 15:22:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailext0.televes.com (Postfix) with ESMTP id B037E9A3DFA; Mon, 25 May 2015 15:22:49 +0200 (CEST) Received: from tves0.televes.com (tvesbackup0 [212.163.42.137]) by mailext0.televes.com (Postfix) with ESMTP id 9E25C9A3D51; Mon, 25 May 2015 15:22:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by tves0.televes.com (Postfix) with ESMTP id 8572AF65B6FD3; Mon, 25 May 2015 15:22:49 +0200 (CEST) Received: from arantia1.arantia.com (ARANTIA0.televes.com [192.168.178.2]) by tves0.televes.com (Postfix) with ESMTP id 6F4ECF65B6FC5; Mon, 25 May 2015 15:22:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by arantia1.arantia.com (Postfix) with ESMTP id 48EC6161BBE3; Mon, 25 May 2015 15:22:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by arantia1.arantia.com (Postfix) with ESMTP id 2471F161A014; Mon, 25 May 2015 15:22:49 +0200 (CEST) Received: from arantia1.arantia.com ([127.0.0.1]) by localhost (arantia0 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25933-02; Mon, 25 May 2015 15:22:48 +0200 (CEST) Received: from [192.168.178.108] (unknown [192.168.178.108]) by arantia1.arantia.com (Postfix) with ESMTP id 0E95B161BBE3; Mon, 25 May 2015 15:22:48 +0200 (CEST) Message-ID: <55632227.9000400@arantia.com> Date: Mon, 25 May 2015 15:22:47 +0200 From: Marco Trillo User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: Nikolay Dimitrov References: <555B61DF.2000903@mail.bg> <555CC752.6060706@mail.bg> <555D1C21.6020402@mail.bg> <555D3C7D.7020406@mail.bg> <555E892B.1010904@mail.bg> <5562D379.4010503@arantia.com> <5562EAEB.7080200@mail.bg> In-Reply-To: <5562EAEB.7080200@mail.bg> Cc: "meta-freescale@yoctoproject.org" Subject: Re: Video overlay on sabresd X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2015 13:22:55 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi, On 05/25/2015 11:27 AM, Nikolay Dimitrov wrote: > Exactly. Regarding the MXCFB_SET_OVERLAY_POS - I was thinking this > ioctl is related to X/Y position of the layer and not about the layers' > Z-order (at least this is the impression I have looking at the mxcfb > driver and imx lib code). Please correct me if I'm wrong, but I thing > the Z-order of the BG/FG IPU layers is not programmable. Issuing the MXCFB_SET_GBL_ALPHA or MXCFB_SET_LOC_ALPHA ioctls() at /dev/fb0 should cause the `fb0' layer to display atop the `fb1' or video layer, mixed according to the global or per-pixel alpha value. This is what the docs say (which is a bit confusing): 3.2.2 DP global alpha combination To enable DP global alpha combination feature, we need to use fb ioctl MXCFB_SET_LOC_ALPHA [sic]. [...] By default, /dev/fb0 stands for the background frame buffer and /dev/fb2 stands for the foreground frame buffer [...] If the open file descriptor of /dev/fb0 is passed to this ioctl, the graphics plane of DP is set to the background plane, otherwise, the graphics plane is set to the foreground plane. (from Freescale's "Image Processing Unit V3 (IPUV3) Library User's Guide") After configuring the DP via these ioctls, you can then use the MXCFB_SET_CLR_KEY if you need to use color keying. Kind regards Marco