Skip to content

MATLAB scripts I used when writing the blog artical about aosp auto brightness

License

Notifications You must be signed in to change notification settings

libxzr/AOSP-auto-brightness-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

AOSP auto brightness emulator

MATLAB scripts I used when writing the blog artical about aosp auto brightness.

This is simply a reproduce of codes in BrightnessMappingStrategy.java.

Usage

Extract your auto brightness overlays here into each table.

% Tables extracted from overlays.
lux = [
];

brightness = [
];

screen_brightness = [
];

screen_backlight = [
];

Set the user data point here to emulate a user input.

% Ambient light and user brightness you want to input.
% Note that brightness must be normalized to [0f, 1f].
user_lux = 12000;
user_backlight = 0.8;

Run it and see the figures.

Basically the last figure ( figure 6 ) is the final auto brightness curve generated from user input. And the other figures are mean to help you understand how each step work.

Typical result

p

p

p

p

p

About

MATLAB scripts I used when writing the blog artical about aosp auto brightness

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages