Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-15-2012, 01:58 PM   #391
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by aliabbasjp View Post
Sorry for the terse reply . But you should understand that i dont bother about the technical details of how gamma works. I only wanted a solution to darken my text by default.

Ahh... I see... Then this link should provide the answer to all of your questions:

Last edited by geekmaster; 05-15-2012 at 02:02 PM.
geekmaster is offline   Reply With Quote
Old 05-15-2012, 02:01 PM   #392
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
I don't see that we would have set an upper limit. In fact, in the "+" direction, the configuration value for "gamma" is increased. Doesn't make much sense, because geekmaster is right about that it should be the other way around. However, I think it might be a case of e-ink speciality that the highest pixel value means the darkest shade of gray.

To put things short: on "vol+" key, gamma is multiplied by 1.25, on "vol-" key it is multiplied by 0.8. So just count "+" presses and then replace the value you have already found in unireader.lua by 1.25^n(presses). Or just try some values without bothering for math.

This operation is done before mapping 8bpp grayscale to 4bpp grayscale, so the effect makes at least some sense.

This could be a configurable global setting in some future version of this software.
hawhill is offline   Reply With Quote
Advert
Old 05-15-2012, 02:07 PM   #393
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by hawhill View Post
I don't see that we would have set an upper limit. In fact, in the "+" direction, the configuration value for "gamma" is increased. Doesn't make much sense, because geekmaster is right about that it should be the other way around. However, I think it might be a case of e-ink speciality that the highest pixel value means the darkest shade of gray.

To put things short: on "vol+" key, gamma is multiplied by 1.25, on "vol-" key it is multiplied by 0.8. So just count "+" presses and then replace the value you have already found in unireader.lua by 1.25^n(presses). Or just try some values without bothering for math.

This operation is done before mapping 8bpp grayscale to 4bpp grayscale, so the effect makes at least some sense.

This could be a configurable global setting in some future version of this software.
Doing gamma adjustments on bright areas is a valid operation, and I use it to prevent blooming (wash-outs in bright areas), by inverting an image and doing gamma adjustments on the negative, then inverting it back.

Traditional gamma adjustments primarily affect dark areas though, to compress the large linear brightness range between daytime and night into the fewest bits by exploiting non-linearity in the human eye. When applying an exponential curve to the inverted image, it is technically not "gamma", and this appears to be what you are adjusting because of the inverted color palette (0=white) on the K3 and earlier (and the K4 when booted from the main partition).

In all my new code, I use a non-inverted (0=black) color palette, and for kindles that use an inverted color palette (such as the K3) I use the "inverted update" ioctl() function.

Quote:
Originally Posted by hawhill View Post
... So just count "+" presses and then replace the value you have already found in unireader.lua by 1.25^n(presses). Or just try some values without bothering for math.
Except our poster probably wants you to change it for him and send the replacement files to him, in a nice and simple update*.bin file, not wanting to be bothered by "technical details" and all...


Last edited by geekmaster; 05-15-2012 at 02:28 PM.
geekmaster is offline   Reply With Quote
Old 05-15-2012, 02:09 PM   #394
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Why are people who get irritated by technical details and general theory and only want an exact answer tailored to their specific case hanging out in a "Developer's Corner" forum anyway?
geekmaster is offline   Reply With Quote
Old 05-15-2012, 02:10 PM   #395
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
yeah, we just pass through muPdf naming decision :-) And we do that before inverting for the e-ink display. But we won't bother to change naming policy on upstream, I think :-)

And well, this is a thread that has become more and more usage related. While I would prefer developer discussion, I can understand that this is a welcome forum to ask for practical usage related questions.
hawhill is offline   Reply With Quote
Advert
Old 05-15-2012, 02:34 PM   #396
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by hawhill View Post
And well, this is a thread that has become more and more usage related. While I would prefer developer discussion, I can understand that this is a welcome forum to ask for practical usage related questions.
But if you post in the parent "Amazon Kindle" forum, there are "power hungry" members hanging out there who love to challenge your technical expertise because they interpret some English words differently than you do and will go to great lengths to "prove" that your entire technical argument is faulty based on small details of grammar and word usage. Perhaps it should be made a sibling of the "Kindle Developer's Corner" instead of a parent, and renamed into "Amazon Kindle Pedantic Nit-Pickers Corner". Then you can move the "usage" discussions over there where they can devolve into "English usage" discussions.


Last edited by geekmaster; 05-15-2012 at 02:37 PM.
geekmaster is offline   Reply With Quote
Old 05-15-2012, 10:06 PM   #397
aliabbasjp
Enthusiast
aliabbasjp began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2012
Device: Kindle DX Graphite
Simplicity is the root of all genius

“Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.” Albert Einstein
aliabbasjp is offline   Reply With Quote
Old 05-15-2012, 10:11 PM   #398
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by aliabbasjp View Post
Simplicity is the root of all genius

“Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.” Albert Einstein
If simpler is better, another Albert Einstein quote says the essence of this in fewer and simpler words: https://www.mobileread.com/forums/sho....php?p=2013851
geekmaster is offline   Reply With Quote
Old 05-16-2012, 02:22 AM   #399
jacobmars
Junior Member
jacobmars began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2012
Device: kindle DXG
Unhappy Shift+P+D doesn't work

There is no way I can press shift+P+D in 0.7 sec. Everytime I input P or D.
Maybe it's my DXG ROM, what should I do? (shift+P+K doesn't work, neither.)
jacobmars is offline   Reply With Quote
Old 05-16-2012, 02:35 AM   #400
aliabbasjp
Enthusiast
aliabbasjp began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2012
Device: Kindle DX Graphite
press shift for a longer time till u align your fingers on P and D. All keys need to be pressed consecutively and not simultaneously
aliabbasjp is offline   Reply With Quote
Old 05-16-2012, 02:40 AM   #401
aliabbasjp
Enthusiast
aliabbasjp began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2012
Device: Kindle DX Graphite
Quote:
Originally Posted by geekmaster View Post
If simpler is better, another Albert Einstein quote says the essence of this in fewer and simpler words: https://www.mobileread.com/forums/sho....php?p=2013851
The one which i quoted says much more:
  • An Intelligent fool (geeks??) makes simple things complex.
  • A genius makes complex things simple and does NOT TRY to complicate simple things.

aliabbasjp is offline   Reply With Quote
Old 05-16-2012, 02:43 AM   #402
jacobmars
Junior Member
jacobmars began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2012
Device: kindle DXG
Exclamation still no response

Quote:
Originally Posted by aliabbasjp View Post
press shift for a longer time till u align your fingers on P and D. All keys need to be pressed consecutively and not simultaneously
still no response.
drive me crazy.
jacobmars is offline   Reply With Quote
Old 05-16-2012, 02:48 AM   #403
aliabbasjp
Enthusiast
aliabbasjp began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2012
Device: Kindle DX Graphite
Is LP installed correctly?
if yes try increasing the values(ms) in launchpad.ini :
InterKeyDelay = 300
aliabbasjp is offline   Reply With Quote
Old 05-16-2012, 02:51 AM   #404
aliabbasjp
Enthusiast
aliabbasjp began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2012
Device: Kindle DX Graphite
Quote:
Originally Posted by aliabbasjp View Post
Is LP installed correctly?
if yes try increasing the values(ms) in launchpad.ini :
InterKeyDelay = 300
try increasing the values(ms) in launchpad.ini :
HotInterval = 700
aliabbasjp is offline   Reply With Quote
Old 05-16-2012, 03:04 AM   #405
jacobmars
Junior Member
jacobmars began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2012
Device: kindle DXG
Thumbs up Yes!

Quote:
Originally Posted by aliabbasjp View Post
try increasing the values(ms) in launchpad.ini :
HotInterval = 700
it works. you're my god.
jacobmars is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 1289 04-07-2025 10:18 AM
Librerator - multi-format e-reader, fork of KPV Kai771 Kindle Developer's Corner 433 05-25-2024 03:34 AM
Yet another PDF viewer (muPDF based) melihron PocketBook 66 09-02-2014 03:03 AM
Text-based PDF to Mobi, etc./Kindle 3 kidblue Calibre 41 07-20-2012 03:19 PM
muPDF on Kindle DX!! DairyKnight Kindle Developer's Corner 8 03-21-2010 03:39 AM


All times are GMT -4. The time now is 02:26 AM.


MobileRead.com is a privately owned, operated and funded community.