PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Apache > HTC Apache Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2007, 02:36 PM
gguruusa's Avatar
Deep Thinker
Offline
Pocket PC: Tin Can
Carrier: Atomic Vibration
Threadstarter
Location: Mountain top
 
Join Date: Jan 2007
Posts: 3,252
Reputation: 4726
gguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributionsgguruusa should be added to the payroll for their contributions
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by hefman View Post
I tried this with the new version (just downloaded) and got the same result. See attached images (note: the splash image was a screen dump from the .nb converter program -- could not figure out how to save it as a .bmp).
Ok, turns out it was broken for both converters, and I had only fixed one before. New build has been posted.

For the curious, it's actually a bug based on the low order Red color bits. Windows manipulated the pixel value on my behalf in order to distribute accumulated error when moving from a low color depth to a higher color depth. My logic assumed the pixel value I put in would be the pixel value I got out (sounds reasonable, doesn't it?), so when it wasn't things went awry. You see the artifact as green because the low order red bits were writing on top of the high order green bits. By pure chance, green does not write on blue because of an election I took in the code. Blue doesn't have a color after it to overwrite. So, the only color getting messed up is green, which explains why all the artifacts were green.
__________________
Grammar: The difference between knowing your shit and knowing you're shit.

Last edited by gguruusa; 11-20-2007 at 02:43 PM.
Reply With Quote
  #2 (permalink)  
Old 11-20-2007, 03:16 PM
hefman's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro
Carrier: AT&T
 
Join Date: Nov 2006
Posts: 132
Reputation: 0
hefman is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by gguruusa View Post
Ok, turns out it was broken for both converters, and I had only fixed one before. New build has been posted.

For the curious, it's actually a bug based on the low order Red color bits. Windows manipulated the pixel value on my behalf in order to distribute accumulated error when moving from a low color depth to a higher color depth. My logic assumed the pixel value I put in would be the pixel value I got out (sounds reasonable, doesn't it?), so when it wasn't things went awry. You see the artifact as green because the low order red bits were writing on top of the high order green bits. By pure chance, green does not write on blue because of an election I took in the code. Blue doesn't have a color after it to overwrite. So, the only color getting messed up is green, which explains why all the artifacts were green.
Fixed!

Thanks gguru.

For the record, I AM "the curious"...

Excellent work on this program by the way. =D>
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Apache > HTC Apache Development


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 10:00 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com