From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E86E4E00786; Tue, 23 Sep 2014 12:20:58 -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 7EC1FE0034C for ; Tue, 23 Sep 2014 12:20:53 -0700 (PDT) Received: from [192.168.178.14] (chello062178118086.5.14.vie.surfer.at [62.178.118.86]) by ptmx.org (Postfix) with ESMTPSA id A147C23338; Tue, 23 Sep 2014 21:20:52 +0200 (CEST) Message-ID: <5421C814.101@pseudoterminal.org> Date: Tue, 23 Sep 2014 21:20:52 +0200 From: Carlos Rafael Giani User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Richard Cochran References: <20140923181351.GA24931@netboy> <608A2425-9B3C-41F5-92A4-F3F408F8A683@tekmagic.net> <5421C23B.30803@habeyusa.com> <5421C3AB.2070400@pseudoterminal.org> <20140923191449.GC24931@netboy> In-Reply-To: <20140923191449.GC24931@netboy> Cc: meta-freescale@yoctoproject.org Subject: Re: imx6: webkit html5 video with hardware acceleration 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, 23 Sep 2014 19:20:59 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 2014-09-23 21:14, Richard Cochran wrote: > On Tue, Sep 23, 2014 at 09:02:03PM +0200, Carlos Rafael Giani wrote: >> With stock WebKit, you can pretty much forget about that. Look at >> this source: https://github.com/WebKit/webkit/blob/master/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp#L138 >> note how it copies pixels with the CPU. > Right, I saw that, too. > > For zero copy, you would need a imx6-specific hack^H^H^H^H modification. > > So the first question becomes is this. > > Q. Does Freescale provide any kind of support for hardware accelerated > HTML5 video on the imx6? > > A. No. > > I already knew this. The *next* question, which I am trying to ask > here, is, does anyone have this working at all, like with some kind of > unoffical or alpha-quality patch? It is working for Chromium. I added patches for that. WebKit though, I don't know. > >> There is apparently a GL-based alternative, but I haven't seen it in >> action yet. > GL is something completely else entirely. > > Not necessarily. Keep in mind what I wrote about the direct textures. If WebKit has a GLES-based rendering backend, these textures could be used for smooth video playback. It'd have to extract the physical address out of the decoded GStreamer frame (possible by using the appsink GStreamer element) and pass it on to the texture, and release the GStreamer frame once that video frame has been shown and the next frame is to be displayed. I also use the direct textures for smooth zerocopy playback in Chromium. One remark: Power consumption wise, using a 3D API (and therefore the GPU's 3D core) for 2D operations isn't so efficient. But, adding a G2D-based backend for example would be much more work. (G2D is a highlevel API for controlling the GPU's 2D core, which uses less power.)