[WIP] Modified libstagefright for Qualcomm OMX IL for MSM7x27 SoCs running JB
First of all, here is Ganster41's original post and HERE is a link:
Quote:
Originally Posted by Ganster41
Hi, low-end devices users! I have good news for you
As you know, Qualcomm has ended support for their SoCs, based on ARMv6 core, and doesn't release OpenMax IL libraries for Android 4.0+. Someone was crying on Qualcomm's forum, someone try to understand, how to extend GB proprietaries to support new Google OMX extensions, but nobody try to modify libstagefright, and disable using new unimplemended functions...
I spent about a few weeks, learning stagefright architecture, and differents between GB and ICS OMX layers...and now I ready to show it to you
I have only ZTE Blade, and can make ROM only for it. You can download it here. In addition to worked hardware-accelerated video playback, and camcorder, it builded with Linaro GCC 4.7.1, and has a little UI speedup(if it not a placebo ). ROM based on KonstaT device tree, thanks him for it.
Oh, my Dropbox temporary blocked to public links. I upload ROM to letitbit too.
Modified framework's sources can be found on my github. Besides it, you need to add one global define to your device's BoardConfig.mk - COMMON_GLOBAL_CFLAGS += -DQCOM_LEGACY_OMX
UPD: I make same changes in CM10 sources tree, but it doesn't working, and I can't try to fix it, because haven't enough disk space to build CM10 ROM. I think, Google changes OMX API again, and it needs more fixes to get it working. You can download sources from here. For now I not interestid in CM10, because now it laggy and has some not good issues.
UPD2: Please, if you want my help with integration problem, attach logcat at the time, when you try to use vide playback/camcorder. I can't help without any information.
UPD3: If you trying to make port for your device, this post can be helpful. Thanks to cougarcougar for it.
UPD4: We still get errors, if trying to play videos from some apps(e.g. Android browser) in not-fullscreen mode. gralloc or mmap returns error, when try to map buffers from NativeWindow. If anybody have ideas how to fix it, please write it here, or to my PM...
Important addition!
Devices based on MSM7x27 chips has two different versions of OMX libs.
"Oldt"(for froyo?) has an unknown padding between color components parts of returning buffer. I have fixed that for most videos, but some strange resolutions are still gets broken colors with green line on top.
"New" version are present in Samsung/LG devices, who has official Gingerbread ROMs. It returns correct buffer in dfferent color format(YV12, instead of NV21), but it laggy on VGA+ videos. Now don't know why. May be it convert resulting buffer to YV12 on CPU... I will try to understand it later.
I think you can use "old" libs from ZTE Blade on any device, because "new" libs work on ZTE Blade too.
PS: If you want to thanks/support my work - you know where you can find button for it.
Now for this thread:
This is a project for porting this over to JB. Currently it builds. That's just about it. We need to make this work.
Current contributors are:
Anyone else wanting to work on this, just shoot me a PM and I'll add you to the list and the repo!
--Rashed
NOTICE: My PM is not a help central. I will not reply to any messages about simple stuff that has already been discussed on the forums nor will I reply to any messages asking me simple questions that will receive answers on the forums. I will not reply to messages just because someone cannot post on the thread. If someone wants to request something, please send a PM in understandable English (not whatever Google Translate spits out) and have links and a full explanation. Other than that, I will simply ignore the PM. My time is limited and I refuse to read 20 or 30 PMs a day with this crap. Thank you.
My device:
LG Thrive (P506)
Baseband: 1.1
Kernel: Android ARMv6 3.0.8 Kernel
ROM: CM 10.1 (by Me)
Governor: smartassV2
Min: 122 MHz
Max: 600 MHz
Recovery: 5.0.2.0 for P500 (ROManager) or 6.0.2.8 (by Me)
Good Luck with this project! Hope you get it working on JB.
Sent from my GT-S5570 using xda app-developers app
Press thanks if i helped you.
Device Samsung Galaxy Mini S5570B (Brasil) Rom CyanogenMod 10.1 by Erikcas and Rohan007 Smooth as a butter and with everything working Recovery TWRP 2.5.0.0 (dany547)
I'm interesting on get it working, but not sure if really I can help, I'll continue testing some fixes in my local, and if a discover something interesting I'll give you the info.
Enviado desde mi Wildfire S A510e usando Tapatalk 2
Rashed, sent you PM. Done some things on this.
like I said in PM, it is some port from CM9 and result of a little out-of-the-box thinking
HQ stream comes in but lags (..we're much too late, skipping..." in logcat)
see https://github.com/erikcas/android_frameworks_av/
Rashed, sent you PM. Done some things on this.
like I said in PM, it is some port from CM9 and result of a little out-of-the-box thinking
HQ stream comes in but lags (..we're much too late, skipping..." in logcat)
see https://github.com/erikcas/android_frameworks_av/
Are the errors something like this?
"The main process is doing to much work on its main thread. Skipping xx frames!"
If they are I get those too...
Sent from my iPod touch using Tapatalk
--Rashed
NOTICE: My PM is not a help central. I will not reply to any messages about simple stuff that has already been discussed on the forums nor will I reply to any messages asking me simple questions that will receive answers on the forums. I will not reply to messages just because someone cannot post on the thread. If someone wants to request something, please send a PM in understandable English (not whatever Google Translate spits out) and have links and a full explanation. Other than that, I will simply ignore the PM. My time is limited and I refuse to read 20 or 30 PMs a day with this crap. Thank you.
My device:
LG Thrive (P506)
Baseband: 1.1
Kernel: Android ARMv6 3.0.8 Kernel
ROM: CM 10.1 (by Me)
Governor: smartassV2
Min: 122 MHz
Max: 600 MHz
Recovery: 5.0.2.0 for P500 (ROManager) or 6.0.2.8 (by Me)
Are the errors something like this?
"The main process is doing to much work on its main thread. Skipping xx frames!"
If they are I get those too...
Sent from my iPod touch using Tapatalk
Exactly those
Verstuurd van mijn GT-S5660 met Tapatalk
I get those everywhere including messeges app with or without the omx hack, to me those errors can be ignore, that's android saying the thing it just doing it taking a lot of cpu power to the point the screen frame started to skip.
I get those everywhere including messeges app with or without the omx hack, to me those errors can be ignore, that's android saying the thing it just doing it taking a lot of cpu power to the point the screen frame started to skip.
I got those on ICS too when lagging. When solved they dissapeared so in my opinion they cannot be ignored.
I got those on ICS too when lagging. When solved they dissapeared so in my opinion they cannot be ignored.
Also. Skipping frames equals lag implicitly imo
Verstuurd van mijn GT-S5660 met Tapatalk
I know its a more detailed way of saying the app just hanged and its laggin, its helpfull to identify if its running full at perfromance, but imo it does not give right now a reason why it does not work at all. Later this night im gonna post a more detail log about the errors.
With over 700,000 apps in the Google Play store and more than 48 billion app installs, it’s … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?