Jump to content


32bit Gallery3D Mod (Alpha)


30 replies to this topic

#1
SilentMobius

SilentMobius

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 275 posts
  • Gender:Male
  • Location:Reading
  • Devices:Galaxy Nexus, ASUS Transformer
  • Twitter:@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:
  • 32bit surface and all texture allocations (no more banding)
  • Increased number of thumbnails to make better use of the Vega's screen
  • Thumbnails will frame rather than crop (its not quite right for me yet.. but it's closer, cropped thumbnails really bugged me)
  • "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.

Attached Files


Edited by SilentMobius, 02 February 2011 - 11:24 PM.


#2
thedicemaster

thedicemaster

    Diehard

  • MoDaCo Ad Free
  • PipPipPipPip
  • 359 posts
  • Devices:Mobii tegra, Optimus 2X
did you check the source of the resolution-modded gallery3d?
if not: check http://github.com/mr..._apps_Gallery3D


#3
trevor432990

trevor432990

    Hardcore

  • MoDaCo Ad Free
  • PipPipPipPipPipPip
  • 1,423 posts
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   ;)

Advent Vega running Vegacomb v3.2 Build 6

#4
SilentMobius

SilentMobius

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 275 posts
  • Gender:Male
  • Location:Reading
  • Devices:Galaxy Nexus, ASUS Transformer
  • Twitter:@SilentMobius

View Posttrevor432990, on Jan 29 2011, 10:01, said:

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:
Posted Image

Gallery3D 32bit
Posted Image


Gallery3D High res:
Posted Image

Gallery3D 32bit
Posted Image

Gallery3D High res:
Posted Image

Gallery3D 32bit
Posted Image

Edited by SilentMobius, 29 January 2011 - 11:54 AM.


#5
HunteronX

HunteronX

    Diehard

  • MoDaCo Ad Free
  • PipPipPipPip
  • 319 posts
  • Gender:Male
  • Location:UK
  • Devices:Xperia X10; Advent Vega
@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!  ;)


#6
trevor432990

trevor432990

    Hardcore

  • MoDaCo Ad Free
  • PipPipPipPipPipPip
  • 1,423 posts
See what you mean but never really noticed on my pics before but as you say its horses for courses  ;)

Advent Vega running Vegacomb v3.2 Build 6

#7
thedicemaster

thedicemaster

    Diehard

  • MoDaCo Ad Free
  • PipPipPipPip
  • 359 posts
  • Devices:Mobii tegra, Optimus 2X
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.


#8
SilentMobius

SilentMobius

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 275 posts
  • Gender:Male
  • Location:Reading
  • Devices:Galaxy Nexus, ASUS Transformer
  • Twitter:@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


#9
QLF

QLF

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 190 posts
  • Gender:Male
  • Location:The North
  • Devices:Galaxy SII, Advent Vega
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........


#10
SilentMobius

SilentMobius

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 275 posts
  • Gender:Male
  • Location:Reading
  • Devices:Galaxy Nexus, ASUS Transformer
  • Twitter:@SilentMobius

View PostQLF, on Jan 29 2011, 16:21, said:

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.


#11
thedicemaster

thedicemaster

    Diehard

  • MoDaCo Ad Free
  • PipPipPipPip
  • 359 posts
  • Devices:Mobii tegra, Optimus 2X
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.
Posted ImagePosted Image
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.


#12
SilentMobius

SilentMobius

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 275 posts
  • Gender:Male
  • Location:Reading
  • Devices:Galaxy Nexus, ASUS Transformer
  • Twitter:@SilentMobius

View Postthedicemaster, on Jan 29 2011, 16:46, said:

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.


#13
thedicemaster

thedicemaster

    Diehard

  • MoDaCo Ad Free
  • PipPipPipPip
  • 359 posts
  • Devices:Mobii tegra, Optimus 2X
img137.imageshack.us/img137/2747/1269575116864.jpg
this is a particularly difficult image for portable devices

Edited by thedicemaster, 29 January 2011 - 07:32 PM.


#14
Prosody

Prosody

    All plussed out. :)

  • MoDaCo Ad Free
  • PipPip
  • 130 posts
  • Location:Derby, UK
  • Devices:HTC HD2, NC10, Advent Vega
  • Twitter:@FictionChris
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. ;)

CURRENT DEVICES -
HTC HD2 - Running 2.3 NAND by TyTung (XDA-DEVS)
Advent Vega 10inch Tablet - Running 1.09 with Paul's performance pack v8. :)

DEVICE HISTORY -
Phones (Including SmartPhones) :
Bosch 509e, Nokia 402, Nokia 702, Nokia 3210, Nokia 3310, Siemens C35i, Nokia 3330, Samsung A300, Panasonic GD75, Sony Ericsson T68i, Sony Ericsson T610, Sony Ericsson P900, Nokia 7600, Nokia N-Gage, Samsung E720, Nokia 6230, O2 XDA Mini S (HTC Wizard), T-Mobile MDA Vario 2, O2 XDA Orbit 2, LG Renoir, HTC Diamond, Blackberry 8800, HTC HD2

PDA's/Netbooks/Tablets :
Casio Cassiopeia E-125, Psion Series 5, HP IPaq 2400 & HP IPaq 3715, Nokia N770 Internet Tablet, ASUS EEE PC 701, Samsung NC10, Advent Vega

#15
SilentMobius

SilentMobius

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 275 posts
  • Gender:Male
  • Location:Reading
  • Devices:Galaxy Nexus, ASUS Transformer
  • Twitter:@SilentMobius

View Postthedicemaster, on Jan 29 2011, 19:29, said:

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.goo...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, 30 January 2011 - 03:58 PM.


#16
thedicemaster

thedicemaster

    Diehard

  • MoDaCo Ad Free
  • PipPipPipPip
  • 359 posts
  • Devices:Mobii tegra, Optimus 2X
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, 30 January 2011 - 04:33 PM.


#17
SilentMobius

SilentMobius

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 275 posts
  • Gender:Male
  • Location:Reading
  • Devices:Galaxy Nexus, ASUS Transformer
  • Twitter:@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, 30 January 2011 - 08:41 PM.


#18
rvdgeer

rvdgeer

    Diehard

  • MoDaCo Ad Free
  • PipPipPipPip
  • 330 posts
  • Location:Utrecht, the Netherlands
  • Interests:Android!
  • Devices:HTC Desire, PoV Mobii 10
  • Twitter:@robvdgeer
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...

Posted Image

#19
Sir Gash

Sir Gash

    Enthusiast

  • Members
  • PipPipPip
  • 204 posts
  • Gender:Male
  • Location:London, UK
  • Devices:HTC Desire / Advent Vega
Thanks SilentMobius, I think this is a great improvement, especially for any wallpaper that has a gradient, the banding is completely gone.

View Postrvdgeer, on Jan 30 2011, 21:31, said:

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.

ANDROID DEVICES:

HTC Desire
ROOTED/S-OFF
ROM: Oxygen v2.0.3
RADIO: 32.48.00.32U_5.11.05.14

Advent Vega
ROM: VegaComb (Beta 1a) Honeycomb 3.0 :D

#20
SilentMobius

SilentMobius

    Enthusiast

  • MoDaCo Ad Free
  • PipPipPip
  • 275 posts
  • Gender:Male
  • Location:Reading
  • Devices:Galaxy Nexus, ASUS Transformer
  • Twitter:@SilentMobius

View PostSir Gash, on Jan 31 2011, 08:46, said:

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, 03 February 2011 - 12:07 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users