From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 82665E0095C; Tue, 14 Jul 2015 07:53:31 -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,SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from ptmx.org (ptmx.org [178.63.28.110]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 44684E0086D for ; Tue, 14 Jul 2015 07:53:27 -0700 (PDT) Received: from [10.1.14.248] (vpn.streamunlimited.com [91.114.0.140]) by ptmx.org (Postfix) with ESMTPSA id D9F7A36BC3 for ; Tue, 14 Jul 2015 16:53:12 +0200 (CEST) Message-ID: <55A52265.1040406@pseudoterminal.org> Date: Tue, 14 Jul 2015 16:53:25 +0200 From: Carlos Rafael Giani User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org References: <55A518F7.40204@mlbassoc.com> <55A51D9D.5090709@pseudoterminal.org> <55A521DF.2040902@mlbassoc.com> In-Reply-To: <55A521DF.2040902@mlbassoc.com> Subject: Re: OpenCV capture 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: Tue, 14 Jul 2015 14:53:31 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 07/14/2015 04:51 PM, Gary Thomas wrote: > On 2015-07-14 08:33, Carlos Rafael Giani wrote: >> On 07/14/2015 04:13 PM, Gary Thomas wrote: >>> I'd like to use OpenCV with my i.MX6 system to capture and >>> process data directly from the camera(s) I have connected >>> to the CPU. Sadly, these cameras (CCS, MIPI) produce I420 >>> data but the OpenCV capture code can only work with GBR24. >>> >>> Is there a way to make this conversion happen, perhaps using >>> the VPU/IPU (I'm not sure which)? >>> >> >> I420 -> RGB/BGR should be doable with IPU and G2D. I recommend using >> G2D, since it is much more straightforward to use. GBR is not >> supported, but could you swap G and B inside OpenCV? > > Perhaps. How would I set things up to do this conversion > in the IPU/G2D? > If you are using GStreamer, gstreamer-imx has imxipuvideotransform and imxg2dvideotransform elements that can do this. You can also look at their source code.