yashsingh1/xdaforums huggingface dataset:
[Galaxy 3 Android Development] abhimukesh25:
+1
[Galaxy 3 Android Development] lebidou:
I'm still working on hardware rendering.

Ok, this is the state of the thing :

I can get output with correct aspect ratio, rotation and all. It's smooth at any cpu speed.

Either I've got flickring ui or no ui at all (control buttons). Here's my asumption : I use fb1 for video output, but it covers the ui, which uses fb0 by default. So my plan is to make fb0 be the layer on top, with pixel blending, as presume it should be done to get a full video pipeline.

This means I'm modifying the kernel, and it'll be likely to use OpenFIMG (video colors are fine).

Does someone knows if we can use 32bpp for framebuffer? It's always set to 24bpp as default.
[Galaxy 3 Android Development] marcellusbe:
you can use 32bpp in s3cfb ... it will work flawlessly.
[Galaxy 3 Android Development] lebidou:
Thanks!

First attempt was failure, but I think it's me trying to make think too complex.
[Galaxy 3 Android Development] PersianSphinx:
sorry for noob question but will you be able to add .avi support and such in the future? :) tnx for all the hard work :D
[Galaxy 3 Android Development] Gurjot95:
^ He explained before. Read second post of this thread. Anyways you can use QQplayer to play avi files.
[Galaxy 3 Android Development] PersianSphinx:
QQ player sucked :(

besides, i was able to play avi movies on froyo... stock video player but i used quick pic too sometimes, but that doesnt change becuse they both used the same codecs
[Galaxy 3 Android Development] austin266:
Go for mx player...

I watched avi files.. some files i set them as video ringtones...

Give it a try mate
[Galaxy 3 Android Development] lebidou:
As explained before :

yes you could play avi files in froyo, Samsung added it. There is no thing to extract frames from avi files in GB/CM7.

It can be added but priority is Hardware Rendering. First get the thing to work properly, then add flowers and candles.

EDIT: By the way :

Booting on fb1 : Done

Boot animation : Gone (same problem as ICS, due to OpenFIMG)

Camera preview : Gone (I presume it's a YUV420-not-supported-by-GL problem, Camera preview is supposed to be displayed the same way as video, by Hardware Render, which does the conversion to RGB32 or RGB16).

So playback does NOT work yet I get a black screen. But there's hope !!! Sometimes when I stop playing a file I can see the last frame for fraction of a second appear under UI, as it slides away. So I think, for some reason, the transparency information is lost despite fb1 being setup to use 32bpp ARGB.

Also I built a test kernel with fb1 being fully transparent all the time (not very handy to use as nothing gets on display...). And video got displayed.

I built a kernel to check on that, but recovery got broken by the last one, so I have to reboot computer in windows to flash the new one. And it's late. And I'm tired, thirsty and starving. So I'll see about that tomorrow.
[Galaxy 3 Android Development] protomank:
Even with all those issues, the progress in terms of knowledge, is getting great. Thanks a lot for your effort, and have a good sleep :)
[Galaxy 3 Android Development] unreal3000:
xD lol chill out and take a break :D im pretty sure we will achieve proper hw rendering with all ur work...
[Galaxy 3 Android Development] lebidou:
Ate, drank, slept. Feeling better.

Apparently, SurfaceFlinger draws a surface the size of video frame (normal behaviour), but fills it with opaque black pixels, blocking the video.

I don't know why the surface is opaque, though... Does someone knows if the NO_RGBX_888 flag has anything to do with this ? What is it for ?

If the surface uses an RGB565 pixel format, it's gonna be opaque. Software Renderer uses that pixel format.

Again, for a frac of a sec, I could perceive the frame when playing a video, so I believe the fb does the pixel blending as it should.

EDIT: I got confirmation this is not going to work. At least not this way. Blending would only work if alpha == 0 on the graphics framebuffer. So no gradients what-so-evah.

Is it a bad thing to modify surfaceflinger code ? Knowing that it could make it work without modifying the kernel, OpenGL libs, without adding any functions not already present in APIs, and adding apropriate precompiler instructions ?

EDIT: No that ain't gonna work either...
[Galaxy 3 Android Development] lebidou:
Good news, with latest OpenFIMG libs, hardware rendering seems to work! (No more headackes over this !)

But don't go crazy about it just now, there's is still a bunch of stuffs to do:

I have trouble with pbuffers (white bootanim, gallery and camera crashes, among other bugs)

Rotation is ter-ri-ble.

Output isn't double buffered as the rest of the pipeline.

Framebuffer config is done by the libs, should be done in kernel.

I'm still using fb1 as default fb, should be fb0, fb1 being setup dynamically to avoid useless memory consumption.

And there might be other things that'll come up later as allways. I tryed using Samsung's OpenGL libs and it doesn't work (black screen from boot, fimc unusable, no errors in log to debug issues).

You'll get more news as I fix some new stuff.
[Galaxy 3 Android Development] prazzy:
nice work lebidou.

but the video is pixelated. I mean if i watch a 720p video it looks like low quality 3gp. Tried various players still no solution. The videos use to work fine on froyo. May be you could work on this bug on next release.
[Galaxy 3 Android Development] heavens dragon:
i use yxplayer for avi playback it worked better then QQ n mx but it lacks in features like subtitle support....

edit: subs works ...my bad :P
[Galaxy 3 Android Development] lebidou:
You're not supposed to watch 720p videos, they aren't supported (please read first page). I never tried to play them because they aren't supposed to work.
[Galaxy 3 Android Development] austin266:
@lebidou

Thank u so much for ur work on sg3

As u helped cm7 to move abit further with audio/ video codecs...

Can u do something with codecs so that they can be useful in cm9( under development project)
[Galaxy 3 Android Development] lebidou:
I'm trying to finish Hardware Render so that a usable version can be released.

I fixed most of the glitches. Remains double buffering and moving back to fb0 as default. For the later I believe it depends on something missing OpenFIMG, so I'll stick to fb1 as default as long as there isn't a better solution.

There's also the camera not working. I don't really wan't to release anything that will result in lesser functionnality. You'd be able to play videos smoother, but no camera at all.

Since it has been reported working on ICS with OpenFIMG, it can work for CM7 too.

As for CM9/ICS, when both hardware renderer and camera are working on CM7, with OpenFIMG, I'll give it a shot. In the mean time, source code for codecs is released, devs are welcome to port it to ICS if they feel like it.

On a side note, I gave up on getting hardware renderer working with Samsung's FIMG. I don't know how it was implemented in Froyo, but things must have changed since then, and I get black screen from boot to shutdown, and unable to open /dev/video1.
[Galaxy 3 Android Development] unreal3000:
did u ask tom3q for help? i think he could help alot as he is the dev of openfimg...
[Galaxy 3 Android Development] prazzy:
Yep...ask him
[Galaxy 3 Android Development] harkan89:
Hey.. Just a quick question.. Did the fact that Samsung ROMs had Divx support have anything to do with the avi playback?? If so, is it possible to port that into the other ROMs?? Just asking if this is a possibility, and how difficult it would be.. :)
[Galaxy 3 Android Development] lebidou:
Samsung's work is close-sourced, and the media framework has changed in gingerbread.

Adding AVI parsing is possible but has to be done almost from scratch (or using code from ffmpeg maybe, at least for understanding how it's done).
[Galaxy 3 Android Development] rubensollie:
Performance of video's seems a little bit faster on arakmar's kernel then on cm7 kernel on the same clocks.
[Galaxy 3 Android Development] lebidou:
I've got a solution that works fine for video (on fb0, rotation ok, could work with Samsungs' FIMG) BUT now audio crackles (hitting my head on a wall)...
[Galaxy 3 Android Development] Gurjot95:
Take some rest dude. We're not in hurry. You're doing more than good to our community. With your talent, everything will be fixed soon. Good Luck!
[Galaxy 3 Android Development] lebidou:
It just feels as if everytime I find a solution for some issue, no matter how small, it's only to find a new problem I didn't expect.

And having finally figured out how to do the compositing just so the sound can get messed up is a bit disapoiting.
[Galaxy 3 Android Development] harkan89:
Chill man.. Happens.. You're doing great.. :)
[Galaxy 3 Android Development] andreapier:
You are doing great, keep on trying hard!!

Every little problem you solve is a step closer to make our phone perfect! Even if it brings even more problems, i guess this is why it is so difficult to face low level programming...

Do not give up please!
[Galaxy 3 Android Development] alb3rtt:
do not give up like andreapier said but also relax, take frequent breaks, dont worry if you cant get them working more than they are now because its more than good enough. :)
[Galaxy 3 Android Development] unreal3000:
do the mfc drivers decode the audio part, and possibly audio files too?

in other words is it possible to have hardware audio decoding?

for example, if i could aac encoded .m4a files through the mfc?

it would save battery when screen is off....(cpu can stay at low frequency while playing music)

im not really sure if it even does it...but i though it would be cool if it can :D
[Galaxy 3 Android Development] lebidou:
MFC does video only, I haven't found anything about hardware audio decoding in kernel. Stagefright loads only video OMX components for Samsung SoCs. TI OMAP chips have audio decoding, seems like ours doesn't.

I asked marcellusbe about audio and I have a lead now. Surfacefliger uses too much cpu, hence the crackling audio. It is strange since YUV->RGB convertion is done by hardware (fimc), rotation and scaling is done by hardware (g2d copybit) and compositing is done by hardware too (fimg).

I have some testing to do to see what part exactly is causing it.

As for my rest, don't worry about it. And I don't give up easily on puzzling things, I love puzzling things. ;)
[Galaxy 3 Android Development] lebidou:
Unexpectedly solved the sound issue, and another "pixelation" issue at the same time. How come they were related remains a mystery to me...

The new (and hopefully last) problem is 176x144 videos not playing, and that will surely annoy a bunch of people.

EDIT: small video bug fixed. Everything seems to work nicely. Checked H263 too, it's ok, videos with crop on the right side work too, I couldn't find something that didn't play!

system_server still uses between 30 and 50% of cpu which is a bit high. At 200Mhz with performance governor, framerate didn't go lower than 20fps, it's still watchable.

I'll remove some unecessary log output, clean up some code and prepare an update zip ASAP.

I'm so glad this is over!
[Galaxy 3 Android Development] unreal3000:
as long as it can play 240x400 and above videos i don think it should be a problem.... why would u watch such a low res video?
[Galaxy 3 Android Development] aditnryn:
you are simply awesome!!!!:P
[Galaxy 3 Android Development] lebidou:
First because it's the MMS resolution. Second, the camera can record in this resolution, and you will want to play stuff you shot with your phone. Finally, because when I fixed the H263 bug earlier, the sample video that was sent to me was 176x144. I don't understand why someone would ever play H263 videos at 176x144 (quality is ter-ri-ble), but people do, so I let them do.
[Galaxy 3 Android Development] dhirend_6d:
lebidou for president!!

Just awesome work. :):)
[Galaxy 3 Android Development] dsr17eagle:
thanks dude, i was searching it along time and finally found that :)
[Galaxy 3 Android Development] i_rnb:
any plan for ics? :/

-tapatalked by rnb
[Galaxy 3 Android Development] alen1901:
Easy. Its bearly finished or near finish for cm7 and you want it on ics allready. Be patience. ;)

Sent from my GT-I5800
[Galaxy 3 Android Development] lebidou:
Let me polish it (I just found out copybit stopped working, not a big issue since OpenGL takes over but still).

The source code is available on github if you want to port it. I'll see what I can do later. OK?

Plus, you have to consider that there are more users for CM7 than for ICS at the moment. Pri-o-ri-tize.
[Galaxy 3 Android Development] alen1901:
In github from 1st post, it says: changes made a month ago. I thought i could download from there and maybe make update.zip for myself, if thats going that way.

Sent from my GT-I5800
[Galaxy 3 Android Development] lebidou:
Change branch to gb_hw_render. It needs a specific kernel though. Sources for that aren't up yet.

EDIT: if copybit works, sound issue is back, so f*** copybit.
[Galaxy 3 Android Development] alen1901:
Than nevermind, i will wait for fimg and kernel update.zip. ;) nice work

EDIT: just relised that i wrote fimg. I meant to say video drivers. :/

Sent from my GT-I5800
[Galaxy 3 Android Development] Gurjot95:
What does actually copybit do? And do we need openFIMG kernel for next update?

Sorry but I am n00b at these stuffs.
[Galaxy 3 Android Development] unreal3000:
xD forgot mms :P....but still, i doubt anyone here is gonna record 176x144 videos on our phone when the quality is **** even at 240x320...well anyway i guess mms is a big enough reason :P u rock man!
[Galaxy 3 Android Development] lebidou:
copybit does rotation, stretching, croping. OpenGL does that too, but when you have a dedicated chip, it's usually a good thing to use it, exept if makes thing worse, like sound crackle and poor quality resizing.

as for OpenFIMG. I started using it a while back because it seemed necessary. But the solution that works might (I haven't tested yet) work with Samsung's FIMG libs.

Anyway, changes I made to the kernel could be unecessary now, I'm gonna test that today. I'll release a kernel that's sure to be functionnal.

EDIT: Nope, Samsung's FIMG libs are a no go. It's gonna be OpenFIMG only. I personally don't use games on the phone, so OpenFIMG is very fine for me.
[Galaxy 3 Android Development] Gurjot95:
I know I shouldn't but when can we expect next update? Since everything seems to be fixed.
[Galaxy 3 Android Development] andreapier:
I'm not lebidou but i think that if there was some updates to give he would have surely already done it...

Let's calmly wait together and see the magic!

Those are great days for our little phone
[Galaxy 3 Android Development] lebidou:
I'm testing kernels and update zips. As soon as I have something I'm sure works for every one I will post it.

Unless you don't mind having bootloops or non working video, or no market...

I've been delayed because I'm build in MacOS X Lion which isn't very gentle with odexing and, if you must know, I had the longest migraine yesterday (yep, a 20 hours long f***ing migraine that woke me up at 6am and nailed me to my bed all day).

Also, when released there'll be two minor issues to look at :

- colors are in 16bits (RGB 565), so gradients aren't very smooth

- gamma isn't right, so black isn't as black as it could.
[Galaxy 3 Android Development] aliendna51:
Some old 3gp videos don't play at all.. Can I fix this somehow?
[Galaxy 3 Android Development] i_rnb:
mx video with sw .
[Galaxy 3 Android Development] aliendna51:
That's an amazing player!

But even with that, I can only play hardware decoded videos, even though I've selected s/w as the default decoder... Could openfimg have something to do with it?
[Galaxy 3 Android Development] i_rnb:
i think NO..
[Galaxy 3 Android Development] aliendna51:
What could be the reason then? Does anyone else have a similar problem?
[Galaxy 3 Android Development] m1trand1r:
i think that mx player has some additional codecs on.market....not sure though....qq plays all...or Vplayer does the job pretty well too:)

~~~~~~~~~~~~~~~~~~~~~~~~~

Sent from Galaxy

Kyrillos' ROM v10 GWK74 beta

powered by

CM7-kernel 1.3 H.V.

~~~~~~~~~~~~~~~~~~~~~~~~~
[Galaxy 3 Android Development] aliendna51:
mx player's codecs are required for hardware acceleration, and it seems v player is very similar (but paid app? come on :p)

qq player does the job ;) it plays the files I could not play, but I think the quality is lower..
[Galaxy 3 Android Development] m1trand1r:
Vplayer is free for 7 days:P...enough to try and buy:P

~~~~~~~~~~~~~~~~~~~~~~~~~

Sent from Galaxy

Kyrillos' ROM v10 GWK74 beta

powered by

CM7-kernel 1.3 H.V.

~~~~~~~~~~~~~~~~~~~~~~~~~
[Galaxy 3 Android Development] aditnryn:
Any updates Mr lebidou???...:-)
[Galaxy 3 Android Development] andreapier:
Yeah, it would be nice to know if the bug in your last messages has been solved or it's still there.
[Galaxy 3 Android Development] manish19:
Divx...was just wondering...

On samsung froyo ROMS,we have divx support as samsung had integrated that. Offcourse it is not supported by ASOP, but can we take the divx apk(had seen it in froyo) along with its library files and try to make it work on CM?

Just a thought that I had. it wud be great if it cud be done.
[Galaxy 3 Android Development] Darius_AWS:
Is there a way to make them works on ICS ?
[Galaxy 3 Android Development] i_rnb:
`ten chars
[Galaxy 3 Android Development] andreapier:
Hey lebidou, what is going on? You were next to release a new version but we haven't hear from you for a long time...

Hope everything is ok...

Can you give updates on this project if any?

Thanks
[Galaxy 3 Android Development] Gurjot95:
I check this thread daily only to see no updates. Yes, it's quite a time since last update. Just want to know if everything is fine. :)
[Galaxy 3 Android Development] ajay.d96:
do we need to install this on ics?
[HD2 Android Q&A, Help & Troubleshooting and Genera] theblueflash:
can anyone help? Im currently running android 2.3.4 (CyanogenMod7.1) in dual boot.

I need to know how to access the gsm/umts band settings. I regularly get a 3g/H on my status bar when at home using windows 6.5 but struggle to get anything beter than 'edge' using android. are these settings available on this mod? if so can someone point them out to me please. If not is there an android build available that has this option?

many thanks
[HD2 Android Q&A, Help & Troubleshooting and Genera] oreosx12345:
they're available, go to wireless and networks -> mobile network ( or something like that) and you'll see an option for 2g/3g
[HD2 Android Q&A, Help & Troubleshooting and Genera] slbenz:
Are you looking for the way to reset your phone for GSM, CDMA coverage? Here is the link to a post to do that: http://xdaforums.com/showpost.php?p=9295533&postcount=2
[HD2 Android Q&A, Help & Troubleshooting and Genera] theblueflash:
yea i have something like that. its a use 2g only option to save battery. that's unchecked. there are no other options and the secret code doesn't work either.
[HD2 Android Q&A, Help & Troubleshooting and Genera] oreosx12345:
Maybe try switching to another rom?

When i was on Typhoon's CM7, i had the option.
[Galaxy Ace S5830 General] danvrez:
I give this question, sugestion, to nims11 here 'cause i can't do it in his thread,

you would try to update Gingercruzt with the theme that is in Infinity Rom, i don't know what do you refer with screen buttons but you should put in Gingercruzt

Gingercruzt it's great because it doesn't have barbones and have excelent visual elements like transparency (not as Infinity, that is extreme) and a lot of stuff so thats all :D:D
[Galaxy Ace S5830 General] mawnstermew:
...lame.. pressed thanks >.< but anyway why not try installing those apps which you loved from gingercruzt on infinity rom? i believe you can find those on themes and apps. to make sonygen look
[Galaxy Ace S5830 General] danvrez:
that's a good idea but i like the theme on Infinity (statusbar flags), so thanks :)
[Samsung Galaxy Nexus] FirstNoobToBrickHisPhone:
Do I need Data to make NFC purchases? I noticed in airplane mode and I open the Wallet app, sure it's functional but it will not show my user ID for the Google PrePaid card.

It says Network error, (I'm in airplane mode). Would I still be able to make purchases offline? (I haven't tried it myself since I don't want to look like a tool when NFC fails).

Please, somebody try it. Don't just do it for me, do it for America.
[Samsung Galaxy Nexus] Buff McBigstuff:
I'm going to the store later tonight, I can test it for you. I'm gonna use the self-checkout so that I won't look stupid if it doesn't work.
[Samsung Galaxy Nexus] nxt:
Yes you need data.

Sent from Galaxy Nexus (GSM)
[Samsung Galaxy Nexus] Dark lord me:
No data= "hmmmm i have $1000 on this card, time to go buy a bunch of ps3's a new unlocked phone and a tablet or two, they are all under $100 each right?"
[Motorola Droid Bionic] netslum:
I'm stuck on .901 without root. I cant get back to stock. I have tried RSD and 4EVER root and no dice. Can someone help?
[Motorola Droid Bionic] neckbonest:
i just used pathsaver thismorning to go back so i could do some beta testing for someones script and it works everytime i use it. just make sure after you reinstall 893 you check and make sure you are forever rooted not just rooted. if you are rooted but not forever rooted you will loose root when you install 901 again
[EVO 4G Q&A, Help & Troubleshooting] George M:
Every time I change roms on my phone, I have to repair my phone with my car. Is there a way to find and use the same Blutooth ID across different roms?
[XPERIA X8 Q&A, Help & Troubleshooting] BITOx:
Hello.

I've tryed many ROMs that are here in xda: Froyobread, GingerDX, GingerXperia, kuyaDROID, xGin, etc... And now I am using Stornmix with stock kernel.

But in all this ROMs I've had always the same problem: wi-fi.

My wi-fi connection works good during 1 or 2 minutes. Then it stops working and I can't use the browser nor the market or other app that uses internet connection.

When I turn off and on again the Wi-fi, the internet connection comes back good, but the same happens after few time.

I even tryed 1 wi-fi fix that i've found here, but didn't solve my problem.

Have you guys experienced this problem too?

Any clue how to solve it?
[XPERIA X8 Q&A, Help & Troubleshooting] pesky_89:
try to set wifi sleep policy to never. post the result
[XPERIA X8 Q&A, Help & Troubleshooting] BITOx:
It is already that way.

Always have been.
[XPERIA X8 Q&A, Help & Troubleshooting] Antimony:
Delete the remembered connections.Sometimes too much of them cause problems.
[XPERIA X8 Q&A, Help & Troubleshooting] kust0r:
There's a compatibility issue with WPA-AES encryption. It's been discussed here and somewhere else (official SE forum i think). Not much to do about it...
[XPERIA X8 Q&A, Help & Troubleshooting] B.Jay:
Scratch the "AES" and make it "EAP" ...

IF AES would be a problem I think no one of us could connect to their access points as WPA/2 actually uses AES for encryption ...

I had a similar problem with GDX back in the days of v012 onwards. The WiFi connection wouldn't completely die but only go through a disconnect/reconnect loop every 2-5 minutes (unless I used "Wifi Static" to set a static IP configuration for my access point).

I solved the "disconnect/reconnect loop while using DHCP" problem by switching to another WiFi channel (my Access Point automatically determined channel 1 to be the best choice ... I later on switched to channel 11 and the problems fixed itself) - sounds weird, but worked.

You may give it a try.

On the other hand we already had weird WiFi problems which really didn't go away unless one flashed back to stock (where the WiFi suddenly worked flawlessly again) and changed over to the custom ROM again from there.
[XPERIA X8 Q&A, Help & Troubleshooting] BITOx:
Thank you for your help, I'll try that and see if it improves my wi-fi.

And yes, as I can remember, it worked nice with the stock rom.