This site is no longer active and is available for archival purposes only. Registration and login is disabled.

GapiDraw 2.x - need feedback on RLE encoding


GapiDraw 2.x - need feedback on RLE encoding

Postby Johan » Aug 20, 2003 @ 8:23pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Mr X » Aug 20, 2003 @ 8:37pm

Sean Cross
mailto:sean@sourceitsoftware.com

Pics Print - The photo printing solution for Windows.
http://www.picsprint.com

Rental Property Manager - Rental management made easy
http://www.sourceitsoftware.com
User avatar
Mr X
pm Member
 
Posts: 240
Joined: Feb 27, 2003 @ 11:36am


Postby Pejo Software - Per » Aug 20, 2003 @ 9:35pm

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby Guest » Aug 20, 2003 @ 9:36pm

Guest
 


Postby sbl » Aug 20, 2003 @ 9:38pm

sbl
 


Postby bluescrn » Aug 20, 2003 @ 9:50pm

User avatar
bluescrn
pm Member
 
Posts: 107
Joined: Jul 6, 2003 @ 4:20pm
Location: Manchester, England


Postby Pejo Software - Per » Aug 20, 2003 @ 9:51pm

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby fzammetti » Aug 20, 2003 @ 10:57pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby DillRye » Aug 21, 2003 @ 5:08am

User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Postby InexorableTash » Aug 21, 2003 @ 6:44am

Another approach:

Add CGapiSurface::PrepareOptimizedSurface() which creates an RLE-optimized version for super-fast Blt-ing. Call this during CreateSurfaces(), or any time you update the "sprite" - just not every frame!

This would create an RLE-compressed variant optimized for the current screen pitch - so the CGapiSurface surface would have the raw and the compressed version attached. Then you can still use PNGs (etc) to load arbitrary surfaces, but if you know you're just doing relatively simple blits you can get extra performance out at the expense of memory.

(Or maybe this function takes a CGapiCompressedSurface as a param, so you can throw away the original if necessary and, like Alpha surfaces, this one has special smarts associated with it.)
User avatar
InexorableTash
pm Member
 
Posts: 99
Joined: Sep 13, 2002 @ 6:14am


Postby Johan » Aug 21, 2003 @ 8:11am

Thanks for all the replies!

As it is, I think there might be too many issues involved in supporting compressed surfaces.. Clipping as mentioned would not work - a showstopper for many uses... I think I'll put my thoughts on other stuff for a while..

InexorableTash: I have thought about this as well.. Supporting a "Compressed copy" would however mean that I would have to rewrite ALL blit loops in CGapiSurface.. CGapiCompressedSurface or similar might work though..

The reason I was asking on GetBuffer was that one could achieve quite some performance boost of using for example GDI on some devices - but that way images would be read only...
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby StephC » Aug 21, 2003 @ 3:49pm

User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby Johan » Aug 21, 2003 @ 7:15pm

StephC: Your engine impresses me more everytime I hear about it... :) Really, you have done an incredible job with it...

(clipping, rotation and scaling.. now that's something to write home about)
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby bluescrn » Aug 21, 2003 @ 8:37pm

User avatar
bluescrn
pm Member
 
Posts: 107
Joined: Jul 6, 2003 @ 4:20pm
Location: Manchester, England


Postby StephC » Aug 21, 2003 @ 8:52pm

User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Next

Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum