Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Consider to remove "hw codec" and "camera hw" usage limiatations on FirefoxOS(gonk)

45 views
Skip to first unread message

Sotaro Ikeda

unread,
Oct 19, 2012, 7:50:53 AM10/19/12
to dev-...@lists.mozilla.org
Hi all,

On FirefoxOS(gonk), hw codecs and camera hw are loaded in application's
process. These hardwares request high privilege(like system) to the
processes.

This produce following restrictions and problems.
- normal web contents could not use the hardwares capability directly.
- an application needs to have "deprecated-hwvideo" or "camera" permission
in manifest.webapp to use them.
- could not apply the privilege to an application durinng its running. It
needs theprocess restart.
- camara hw might be loaded from multiple processes. In android, camera hw
is loaded from only one process(mediaserver).
- application processes with deprecated-hwvideo/camera permission have too
high privilege

IMHO, it is necessary to remove the restrictions. Then, I created bug
803471, bug 798202 and bug 798773 for the problems.
camera hw handling still has a problem, though they basically work on my
phone.

Is it a correct way to go? Can I have comments about them?

https://bugzilla.mozilla.org/show_bug.cgi?id=803471
https://bugzilla.mozilla.org/show_bug.cgi?id=798202
https://bugzilla.mozilla.org/show_bug.cgi?id=798773


Thanks in advance
sotaro

Robert O'Callahan

unread,
Oct 23, 2012, 6:07:35 AM10/23/12
to Sotaro Ikeda, dev-...@lists.mozilla.org, Kan-Ru Chen
On Sat, Oct 20, 2012 at 12:50 AM, Sotaro Ikeda <ikes...@gmail.com> wrote:

> This produce following restrictions and problems.
> - normal web contents could not use the hardwares capability directly.
> - an application needs to have "deprecated-hwvideo" or "camera" permission
> in manifest.webapp to use them.
> - could not apply the privilege to an application durinng its running. It
> needs theprocess restart.
> - camara hw might be loaded from multiple processes. In android, camera hw
> is loaded from only one process(mediaserver).
> - application processes with deprecated-hwvideo/camera permission have too
> high privilege
>
> IMHO, it is necessary to remove the restrictions. Then, I created bug
> 803471, bug 798202 and bug 798773 for the problems.
> camera hw handling still has a problem, though they basically work on my
> phone.
>
> Is it a correct way to go? Can I have comments about them?
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=803471
> https://bugzilla.mozilla.org/show_bug.cgi?id=798202
> https://bugzilla.mozilla.org/show_bug.cgi?id=798773
>

The idea sounds good to me, but Chris Double and Ka-Ru Chen are the best
people to give you detailed comments.

Rob
--
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]

Sotaro Ikeda

unread,
Oct 24, 2012, 10:24:03 AM10/24/12
to rob...@ocallahan.org, dev-...@lists.mozilla.org, Kan-Ru Chen
>The idea sounds good to me, but Chris Double and Ka-Ru Chen are the best
people to give you detailed comments.

Thanks for responding. After I stabilize patches, I am going to ask them
about it. Currently, it almost works on my phone except video recording. I
am going to update patches tomorrow.
I do not have otoro nor unagi devices, though it should also work on the
devices.

Thanks,
sotaro

2012/10/23 Robert O'Callahan <rob...@ocallahan.org>

Chris Double

unread,
Oct 24, 2012, 7:42:26 PM10/24/12
to Sotaro Ikeda, dev-...@lists.mozilla.org, Kan-Ru Chen, rob...@ocallahan.org
On Thu, Oct 25, 2012 at 3:24 AM, Sotaro Ikeda <ikes...@gmail.com> wrote:
> Thanks for responding. After I stabilize patches, I am going to ask them
> about it. Currently, it almost works on my phone except video recording. I
> am going to update patches tomorrow.
> I do not have otoro nor unagi devices, though it should also work on the
> devices.

As I mentioned in one of the bugs, moving to OMXClient usage is is
fine by me. I assume someone on the B2G team would need to make the
final call.

--
http://www.bluishcoder.co.nz
0 new messages