Jump to content

32bit Gallery3D Mod (Alpha)


Guest SilentMobius

Recommended Posts

Guest SilentMobius

Hi All,

This is mostly a "Just the way I like it" type project but in case anyone else rolls the way I roll, here it is:

Changes:

  1. 32bit surface and all texture allocations (no more banding)
  2. Increased number of thumbnails to make better use of the Vega's screen
  3. Thumbnails will frame rather than crop (its not quite right for me yet.. but it's closer, cropped thumbnails really bugged me)
  4. "tilting" of thumbnails due to accelerometer removed (No idea why it was ever added, bugged the hell out of me)
This is not the same as "Gallery3D higher res" as I don't know how the high-res part works yet. This is more about making Gallery3D a little nicer on the Vega.

Please be aware this is an alpha so only grab this if you're prepared to be without Gallery3D if something goes wrong.

Oh and I think I've signed it with test keys so you'll have to delete the stock Gallery3D, reboot and install the apk normally.

*Edit* First change, now the thumbnails are the same aspect ratio as the Vega screen in landscape. Transition from thumbnail to fullscreen should no longer shift or chop parts of the image (unless you're in portrait, but I'm willing to sacrifice that)

*Edit* all thumbnails are now stored as PNG's

*Edit* Increased number of cached thumbnails to prevents a crash when you scroll across a group with ~120 or more images

*Edit* Next is an optional change I'm testing. I've disabled writing of screennails. Given the speedy CPU in the Vega I'm guessing that loading and scaling an image is going to be quick enough.

Gallery3D.zip

Edited by SilentMobius
Link to comment
Share on other sites

Guest trevor432990

Thanks SilentMobius but I think the reason people want a photo gallery app is to display their pics using the best quality the Vega can provide. Gallery 3D Higher Definition does this so if your new version is based on the older stock gallery app I don't think you'll find many takers. They are like chalk and cheese as far as quality is concerned ;)

Link to comment
Share on other sites

Guest SilentMobius
Thanks SilentMobius but I think the reason people want a photo gallery app is to display their pics using the best quality the Vega can provide. Gallery 3D Higher Definition does this so if your new version is based on the older stock gallery app I don't think you'll find many takers. They are like chalk and cheese as far as quality is concerned ;)

Not sure why I'm trying to sell this but...

If you have loads of hi-res images that you need to zoom into, cool I can see how the higher res helps you, but for me the banding is _much_ more obvious than the resolution.

Gallery3D High res:

non_32b_liara.png

Gallery3D 32bit

liara.png

Gallery3D High res:

non_32b_videos.png

Gallery3D 32bit

videos.png

Gallery3D High res:

non_32b_default_back.png

Gallery3D 32bit

default_back.png

Edited by SilentMobius
Link to comment
Share on other sites

Guest HunteronX

@SilentMobius

After trying your apk, I can see the difference you are talking about. I prefer it this way too, as there is significantly less banding on-screen.

Thanks! ;)

Link to comment
Share on other sites

Guest thedicemaster

a reason for me to use this over the high-res mod is the removal of leaning images(gsensor)

although i'd certainly prefer a mix between the 2, because i've noticed i still have some images not displaying properly with this gallery.

Link to comment
Share on other sites

Guest SilentMobius

So how many people really use the zoom function in the gallery? On a phone where you're taking photos and checking details of a shot I can see it but... Do many of you look at pictures and then zoom in a bit on your Vega??

It looks like the max texture size for the full image view is 1024x1024 (without the high-res mod) so unless you zoom you shouldn't notice anything higher (1024 being highers pixel width the Vega can display) The highres mod moves that value into a resource so if can be set differently for different devices. i could simply increase it, but it would slow down the overall operation of the gallery even more and it's not so useful for me.

In an ideal world it could just load in a 1024x600 chunk from the image each time you zoom and fade it in, but I think you'd need to write your own jpeg decoder to do that

Link to comment
Share on other sites

Guest SilentMobius
WHat are the chances of mixing the two options? i.e. Removing banding and keeping the High res? Both look bad on such a nice screen........

As I said above, unless you zoom in on images you'll never notice the "lack" of resolution. So how much do people zoom x1.5 x2 x3? Each increase in res will decrease perfrormance.

Link to comment
Share on other sites

Guest thedicemaster

even completely zoomed out i can clearly see some pixelation in an image, and even some banding-like effects with an image that displays fine when i use a different application to set it as wallpaper, or when i use the high-res mod.

deviceq.th.pngdevice2u.th.png

left is when set as wallpaper through wallpaperchooser, right is when viewed through your modded gallery.

high-res mod shows the image with the same quality as the one on the left i think.

Link to comment
Share on other sites

Guest SilentMobius
even completely zoomed out i can clearly see some pixelation in an image, and even some banding-like effects with an image that displays fine when i use a different application to set it as wallpaper, or when i use the high-res mod.

left is when set as wallpaper through wallpaperchooser, right is when viewed through your modded gallery.

high-res mod shows the image with the same quality as the one on the left i think.

Hmm, interesting. could you post the original image? I think this might be something different, I'm seeing heavy jpeg artefacts on the Gallery3D one and a lot of dithering on the desktop one.

I wonder if the problem is when the "screennails" are recompressed and saved out... if that's the case the the High-res Gallery3d just sidesteps that by making the artefacts smaller, but not actually fixing it.

Link to comment
Share on other sites

Guest Prosody

I think I'll give this a try, I use my tablet as a portfolio and have been using Fish Bowl Photo Viewer (which is beautiful and perfect for the job) but I always held off on putting personal photos on there because the display using the gallery was so awful. ;)

Link to comment
Share on other sites

Guest SilentMobius
img137.imageshack.us/img137/2747/1269575116864.jpg

this is a particularly difficult image for portable devices

Thanks for that. It looks like all thumbnails, including the main view of an image (that they call a "screennail"), are saved to storage as a JPEG at 80% quality. So I've changed that to saving as PNG losslessly. That will probably result in more storage usage but may also ease cpu usage as png is generally quicker to encode/decode than jpeg.

I scaled and cropped your source jpeg to match the 1024x600 image you were using as a desktop (saved as PNG to avoid JPEG re-compression artefacts) and took a screenshot of that displaying in the revised Gallery32

http://picasaweb.google.com/lh/photo/RyGhy...feat=directlink

This looks to be almost identical to the source image (including the jpeg artefacts that the original has)

First post updated with new package

Edited by SilentMobius
Link to comment
Share on other sites

Guest thedicemaster

working great now, with 1 little exception: the thumbnail for that one image is now replaced with the one from an image i deleted about a week ago.

can't figure out how to reset the thumbnails.

EDIT: gallery is really redundant with thumbnails.

had to delete the /dcim/.thumbnails and /android/data/com.cooliris.media folders, kill gallery, and wipe saved data in order to reset thumbnails.

your modified gallery is a significant improvement now over both stock, and highres-modded gallery.

Edited by thedicemaster
Link to comment
Share on other sites

Guest SilentMobius

Next is an optional change I'm testing. I've disabled writing of screennails. Given the speedy CPU in the Vega I'm guessing that loading and scaling an image is going to be quick enough.

I'm generally looking at new images so I get the overhead of reading->scaling->compressing->writing to disk each time, this way I just have the constant overhead of loading the image.

Edited by SilentMobius
Link to comment
Share on other sites

Guest Sir Gash

Thanks SilentMobius, I think this is a great improvement, especially for any wallpaper that has a gradient, the banding is completely gone.

Are you updating the app atm?

I don't see any attachment anymore...

Great idea by the way!

We need more Vega (or just tablet) versions of apps...

Confirmed! No link or attachment. I still have the first version uploaded, just waiting for the next version with enhancements.

Cheers.

Link to comment
Share on other sites

Guest SilentMobius
Thanks SilentMobius, I think this is a great improvement, especially for any wallpaper that has a gradient, the banding is completely gone.

Confirmed! No link or attachment. I still have the first version uploaded, just waiting for the next version with enhancements.

Cheers.

Ok re-uploaded, but I'm testing CM7 on my vega right now and while I'm still only compiling the froyo gallery the performance is pretty lacking right now, I don't think it's any of my recent changes just the pre-alpha os. If you find the newly uploaded version to have terrible performance please say.

Edited by SilentMobius
Link to comment
Share on other sites

Guest Sir Gash
on the contrary.

it seems to be a bit faster than stock gallery now.

Agreed! Works great, the new version also fixes a bug I had with the first version where I would get an FC whilst scrolling through the thumbnails of a folder that had over 200 images.

Great work!

Link to comment
Share on other sites

Just installed your new 3D gallery...works great...thanks.

Edit: wow event makes my wallpaper backgrounds look even better. (Launcher Pro)

Edited by Neilkt
Link to comment
Share on other sites

Guest SilentMobius
Agreed! Works great, the new version also fixes a bug I had with the first version where I would get an FC whilst scrolling through the thumbnails of a folder that had over 200 images.

Great work!

Yeah given that there are more thumbnails on screen now I hit that pretty quickly (took me an age to work out what the problem was) . It _should_ be fixed but it needs more aggressive checking (and I need to make a huge 500+ pic folder)

I have _no idea_ how I've improved wallpaper handling, unless the screennail code gets reused in the wallpaper picker... ooh I'd better watch out for that.

Thanks for the positive messages.

Ultimately what I was it a top right switch (like the grid/cluster switch) that filters video only/pictures only and then have the video cluster according to show/series metadata and display the episode name below the thumbnail. I'm getting there slowly but would anyone else be interested in that?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.