It is currently Sat Oct 21, 2017 10:55 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Wed Aug 26, 2015 7:06 am 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3943
The best part is if you're dealing with monochrome RLE predictors, you don't need to signal what bit you are currently using. You know it will transition from 1 to 0, then 0 to 1. You only need the initial state and the lengths. Then you're just encoding a bunch of numbers (RLE lengths) and nothing else.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
PostPosted: Wed Aug 26, 2015 7:19 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19114
Location: NE Indiana, USA (NTSC)
True so long as you know you can encode any positive length, not topping out at 127 or 255 or whatever. For this, I'd recommend either a Golomb code or an Exp-Golomb code (such as the gamma code).


Top
 Profile  
 
PostPosted: Wed Aug 26, 2015 9:39 am 
Offline

Joined: Thu Aug 12, 2010 3:43 am
Posts: 1589
Those cases would already compress so well that you may as well add an extension code just for them for a negligible loss.


Top
 Profile  
 
PostPosted: Wed Aug 26, 2015 9:45 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10065
Location: Rio de Janeiro - Brazil
Yeah, I'd simply have another length for the same color whenever the maximum length is used, even if this extra length is 0.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 guests


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group