All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: meta-freescale@yoctoproject.org
Subject: Re: Chromium acceleration
Date: Wed, 02 Apr 2014 04:28:41 -0600	[thread overview]
Message-ID: <533BE659.3050705@mlbassoc.com> (raw)
In-Reply-To: <533BE494.8000809@pseudoterminal.org>

On 2014-04-02 04:21, Carlos Rafael Giani wrote:
> Keep in mind what I wrote. This version of VPU acceleration is very basic (it will copy frames with the CPU), and fulfilled the customer's immediate needs back then, but can be
> done much better. I am currently looking into a better approach.
> 
> On 2014-04-01 21:22, Eric Nelson wrote:
>> Thanks again Carlos,
>>
>> On 03/20/2014 04:19 PM, Carlos Rafael Giani wrote:
>> >
>> > <snip>
>>>
>>> Back then we needed some hw decoding quickly, so we did not look further
>>> into this, since we had spent a lot of time getting the 2D acceleration
>>> stable already. I could only briefly look at the exynos accelerator
>>> code, but it does look like the right direction, although the VPU uses
>>> physical addresses directly instead of dmabuf FDs. I am currently
>>> writing a frontend for the libfslvpuwrap, which takes care of certain
>>> complexities (like being able to pass userdata pointers to frames, to
>>> make it possible to associate input and output frames, which is
>>> essential for correct timestamping, especially when things like h264
>>> frame reordering are active). This frontend will hide these things in a
>>> future gstreamer-imx release to make the decoder code clearer and easier
>>> to maintain, and is intended to be reusable, for example for Chromium
>>> integration, or XBMC. Beyond that, my patches are probably not that
>>> helpful anymore, since they were based on the vpx decoder way of
>>> decoding, and I agree that the exynos code is a better starting point.
>>> Nevertheless, I attached the patch. Keep in mind that it is very basic,
>>> old, and wasn't further developed on because it was "good enough" for
>>> the project.
>>>
>>> But here are some additional notes from our efforts to accelerate
>>> Chromium on imx6 (keep in mind these apply to version 32.0.1664.3 ) :
>>>
>>> 1. We started the google-chrome binary with these switches:
>>> --ignore-gpu-blacklist --enable-gpu --use-gl=egl
>>> --enable-accelerated-2d-canvas
>>>
>>> 2. To make building Chromium easier, we switched to component build (by
>>> default, it is all linked into one enormous binary). I attached a patch
>>> that was necessary to fix some minor issues. Perhaps it is not necessary
>>> anymore.
>>>
>>> 3. Chromium tried to load libEGL with dlopen() , which caused problems,
>>> because with the Vivante libraries, libEGL also needs libGAL. Usually,
>>> build scripts just add -lEGL -lGAL to the linker line. With dlopen()
>>> this wasn't possible of course. We patched the gyp scripts to link
>>> against this libraries during building instead. I attached this patch.
>>> It is really a hack, because it circumvents the sandboxing process (this
>>> is why Chromium loads EGL and GLESv2 with dlopen() ).
>>>
>>
>> Mahyar updated these patches to apply against the chromium-35.0.1883.0
>> build currently in meta-browser.

Are these patches available somewhere?

>> Additional notes to follow, but this appears to achieve HTML5 video
>> against Webm/Ogg videos when chromium is started with these command
>> line arguments:
>>      --ignore-gpu-blacklist --enable-gpu --usegl-egl

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


  reply	other threads:[~2014-04-02 10:28 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-19 20:49 Chromium acceleration Eric Nelson
2014-03-19 21:00 ` Carlos Rafael Giani
2014-03-19 22:40   ` Eric Nelson
2014-03-20  1:29     ` Christian Betz
2014-03-20  2:50       ` Eric Nelson
2014-03-20  8:30         ` Carlos Rafael Giani
2014-03-20 12:22           ` Otavio Salvador
2014-03-20 14:07             ` Christian Betz
2014-03-20 15:02               ` Otavio Salvador
2014-03-20 14:29             ` Eric Nelson
2014-03-20 14:58               ` Otavio Salvador
2014-03-21 11:49                 ` Diego
2014-03-21 14:17                   ` Eric Nelson
2014-03-20 13:46           ` Christian Betz
2014-03-20 23:19             ` Carlos Rafael Giani
2014-03-21 12:21               ` Dmitriy B.
2014-04-01 19:22               ` Eric Nelson
2014-04-02 10:21                 ` Carlos Rafael Giani
2014-04-02 10:28                   ` Gary Thomas [this message]
2014-04-02 10:33                     ` Carlos Rafael Giani
     [not found]                 ` <533BE4A3.7040301@pr.hu>
2014-04-02 10:23                   ` Carlos Rafael Giani
2014-04-02 11:12                     ` Boszormenyi Zoltan
2014-04-02 12:02                     ` Christian Betz
2014-04-02 12:28                       ` Carlos Rafael Giani
2014-04-04  9:28                         ` Boszormenyi Zoltan
2014-04-02 10:29                 ` Boszormenyi Zoltan
2014-04-02 14:16                   ` Eric Nelson
2014-03-20 12:47 ` Lauren Post
2014-03-20 14:25   ` Eric Nelson
2014-03-20 14:27     ` Lauren Post
2014-03-25  9:32 zboszor
2014-03-25  9:35 ` Eric Bénard
2014-03-25  9:46 ` Marco Trillo
2014-03-25 12:58   ` Boszormenyi Zoltan
2014-11-27 10:14 Becue Paul
2014-12-01 14:34 ` Daiane Angolini
2014-12-01 15:07   ` Otavio Salvador

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=533BE659.3050705@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=meta-freescale@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.