Git Product home page Git Product logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Например. Задаем в настройках яркость 0x33 
или 1/5 от полной яркости (лучше ползунком в 
быстром меню), дальше при рендеринге 
страницы делается умножение яркости всех 
нечерных пикселей на странице на это 
значение (1/5).
Например, пиксель 0xffffff становится 0x333333. 
Пиксель 0x80ff2c должен стать 0x193308.

Original comment by mindphaser2k6 on 4 Aug 2011 at 8:56

from ebookdroid.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Попробовать сделать можно, но не будет ли 
тормозить? И так сейчас ночной режим 
замедляет рендеринг.

Original comment by [email protected] on 5 Aug 2011 at 7:12

  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

from ebookdroid.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Чтобы не тормозило, можно попробовать 
проще: только ограничить макс. яркость 
пикселей заданным значением. Т.е. если 
яркость пиксела < заданного, ничего не 
делать, если яркость выше, то использовать 
предельное значение. Пример: пиксель 0xffffff 
становится 0x333333, пиксель 0x80ff2c становится 
0x33332с. Тогда цвета будут искажаться, но 
поскольку в ночном режиме в основном все 
черно-белое, это наверное не критично.
Также хотелось бы аналогично ограничить 
яркость заголовка.
Также если яркость на максимуме или 
регулировка яркости отключена, то никаких 
вычислений не выполнять.

Этот request связан с тем, что на ряде 
телефонов аппаратная регулировка яркости 
даже на минимуме оказывается слишком 
высокой.
Поэтому некоторые программы, в частности 
CoolReader и ScreenFilter, насколько я понимаю, делают 
доп. программную фильтрацию цветов.
Кстати можно посмотреть, как работает 
ScreenFilter. Он не тормозит, но запускать его 
каждый раз перед запуском ридера неудобно.
Прикладываю в аттаче исходную и 
декомпилированную версию.

Original comment by mindphaser2k6 on 5 Aug 2011 at 7:36

Attachments:

from ebookdroid.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Думаю, что способ работы Screen Filter будет 
проще всего.
Для этого можно создать полупрозрачное full 
screen activity, пропускающее события тача.
http://stackoverflow.com/questions/4286075/brightness-screen-filter

Original comment by mindphaser2k6 on 5 Aug 2011 at 8:42

from ebookdroid.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Имплементировано

Original comment by [email protected] on 11 Aug 2011 at 1:49

  • Changed state: Verified

from ebookdroid.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024

Original comment by [email protected] on 20 Mar 2012 at 5:45

  • Added labels: effects

from ebookdroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.