Arm Community
Site
Search
User
Site
Search
User
Arm Developer
Documentation
Learning Paths
On-Demand Videos
Groups
Arm Ambassadors
Education Hub
Open Source Software and Platforms
Research Collaboration and Enablement
Forums
AI forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Automotive forum
Compilers and Libraries forum
Embedded and Microcontrollers forum
Internet of Things (IoT) forum
Keil forum
Laptops and Desktops forum
Mobile, Graphics, and Gaming forum
Morello forum
Operating Systems forum
Servers and Cloud Computing forum
SoC Design and Simulation forum
SystemReady Forum
Blogs
AI blog
Announcements
Architectures and Processors blog
Automotive blog
Embedded and Microcontrollers blog
Internet of Things (IoT) blog
Laptops and Desktops blog
Mobile, Graphics, and Gaming blog
Operating Systems blog
Servers and Cloud Computing blog
SoC Design and Simulation blog
Tools, Software and IDEs blog
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Mobile, Graphics, and Gaming forum
How to use Mali to convert YUV to RGB32
Jump...
Cancel
Locked
Locked
Replies
5 replies
Subscribers
136 subscribers
Views
6925 views
Users
0 members are here
Mali-300
Mali-GPU
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
How to use Mali to convert YUV to RGB32
james zhang
over 11 years ago
Note: This was originally posted on 17th November 2012 at
http://forums.arm.com
[font=文泉驿正黑][size=2][font=arial, verdana, tahoma, sans-serif][size=2]Hi all,
[/size][/font]
In FirefoxOS, there is a Cubevid application. It use vp8 software codec and the performance is not well.
We use DS5 to find the hot spot, YUV convert to RGB32. You can see [size=2]FastConvertYUVToRGB32Row_C@[/size][size=2]yuv_row_c[/size][size=2].cpp[/size][size=2] in attachment[/size] .
Can you help me to use GPU(Mali300) to convert YUV to RGB?
Thanks for your help!
You can get FFOS code as below.
git clone git://github.com/mozilla/releases-mozilla-central
BR
James[/size][/font]
james zhang
over 11 years ago
Cancel
Vote up
0
Vote down
Cancel
Chris Varnsverry
over 11 years ago
Note: This was originally posted on 19th November 2012 at
http://forums.arm.com
Hi Jameszhang,
Can I ask what hardware you're currently targeting? Also is there any reason you're not using
NEON
for this purpose, as it seems a good fit for this use case? For example I believe the
webm project
have an existing neon implementation of the VP8 codec (
http://code.google.com/p/webm/source/browse/vp8/?repo=libvpx&name=sandbox/jkoleszar/new-rate-control#vp8%2Fdecoder%2Farm%2Fneon
).
Thanks,
Chris
Cancel
Vote up
0
Vote down
Cancel
james zhang
over 11 years ago
Cancel
Vote up
0
Vote down
Cancel
Chris Varnsverry
over 11 years ago
Note: This was originally posted on 20th November 2012 at
http://forums.arm.com
Hi James,
This post
has some sample shader code for this purpose. You would need to push the YUV data as a texture to the GPU.
Let me know if this helps or if you need any more guidance.
Thanks,
Chris
Cancel
Vote up
0
Vote down
Cancel
james zhang
over 11 years ago
Note: This was originally posted on 21st November 2012 at
http://forums.arm.com
Hi Chris,
I found a chrome patch which optimizes YUV2RGB performance by NEON assembly,
http://code.google.com/p/chromium/issues/detail?id=71403
. The major hotspot "FastConvertYUVToRGB32Row_C" reduced quite a lot from 23% to 3%. But we still have some audio clipping during the video play.
So I will try the shader code.
Thanks
James
Cancel
Vote up
0
Vote down
Cancel