• Home
  • History
  • Annotate
  • only in /frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
History log of /frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ec183966232468c02440a5d81764c3c1a076e217 25-Apr-2016 Chris Banes <chrisbanes@google.com> Fix Palette errors when using region API

Instead of using getPixels() to retrieve the
region, we'll just manually do it from the whole
Bitmap. We get the whole bitmap anyway so technically
this is less work.

Also improved our RGB565 --> RGB888 upscale to use scaling
rather than shifting. This produces more reliable results.

BUG: 28349435
Change-Id: I19bd2d2be3794194fa08931024b545269d85724b
olorCutQuantizer.java
alette.java
b3479fa775143ef50dfed1d34a8f0bc4c9dc499e 15-Dec-2015 Chris Banes <chrisbanes@google.com> Improve doc on Target weighting methods

BUG: 26181841
Change-Id: I69b4a2688d5f824c86a6376ca8b64e8f8bc8e678
arget.java
8c021e5b9750e2fd1b728a2a5578af66a46d4a28 07-Dec-2015 Chris Banes <chrisbanes@google.com> Fix rounding error in Palette's region calculation

Can result in Bitmap.getPixels() throwing a
IllegalArgumentException with certain bitmaps.

I've haven't been able to recreate the issue but it's
guaranteed not to happen now with this CL.

BUG: 25760671

Change-Id: I12648bb59d2c281a5cd0c2c7e3dcf0fe7df3e200
alette.java
c5f1ad7670d601b806b2d1e5e4fa1ae7efd7fc69 14-Apr-2015 Chris Banes <chrisbanes@google.com> Add new extensible API to Palette

The buckets are now abstracted into a Target
class, with an associated Builder to allow the
creation of custom targets.

Change-Id: I654a081cef0e836cb867098fc9634eaca5aaf37b
efaultGenerator.java
alette.java
arget.java
039044aee1fc6dbd42b8b472c54122d268656939 26-Oct-2015 Chris Banes <chrisbanes@google.com> Fix Palette trying to create 0px bitmaps

Caused by using Math.round when scaling down.
Fixed by using Math.ceil instead.

BUG: 25263397
Change-Id: Iefe82fa9d085fb72d2dfae4c984ebd836c5ad8c5
alette.java
d27ec041be0a4251176e5daaea526f231b03f38e 21-Oct-2015 Chris Banes <chrisbanes@google.com> Fix Palette setRegion() API

Causes an exception when the left/top of the
region isn't 0,0.

BUG: 25133337
Change-Id: Ifdd4cff9a96cc00e8e001ec33ee501d1355d936f
alette.java
3f5d16ca39def4a1a15097b243d3811b5551edc4 15-Oct-2015 Chris Banes <chrisbanes@google.com> Fix typo in Palette doc

BUG: 24807674

Change-Id: Ide2875690533d512aa765c0cce4f02dbbf7a8d29
alette.java
8f6ea77d463e9bb5cf70aaa4339316d13ac4a36c 01-Sep-2015 Chris Banes <chrisbanes@google.com> Handle exceptions in Palette's async generation

As we run in an AsyncTask it's hard for developers to be
able to recover from the crash. We now catch all exceptions
and log them.

BUG: 22914873
Change-Id: I3674148c56a463e06c99c7585181ea2df7bb49ae
alette.java
a79b35d1ce6b82a2e3437bfb45754e6257eaea87 31-Aug-2015 Chris Banes <chrisbanes@google.com> Extract pixels from the correct Bitmap

Fixes OOMs due to extracting the pixels from a
large bitmap

BUG: 23683553
Change-Id: I9ce9e58f786f4072ff1a1568253b44876ed6c3c7
alette.java
ce4bafdad56c6c7ad49d6a97674d7c8891ab7b45 28-Jul-2015 Chris Banes <chrisbanes@google.com> Add region API to Palette

BUG: 22785376

Change-Id: I565e910c26e586e76acda99342352cf4e98532ff
alette.java
91bf3ccba0f5b8ba4daca37b83faa4de86bff737 12-Jun-2015 Chris Banes <chrisbanes@google.com> am ef51dc7a: Merge "Add filter API to Palette" into lmp-mr1-ub-dev

* commit 'ef51dc7acf907a687e4a824cea3fdc6f42af3baf':
Add filter API to Palette
2407aa65d62cfc1ec6ffffae726dec45021dd9a2 12-Jun-2015 Chris Banes <chrisbanes@google.com> Add filter API to Palette

BUG: 21799254
Change-Id: Ice6a505cbf2cf400f63e1881155c3f33e0e642ca
olorCutQuantizer.java
alette.java
ddd2842b4dd7b9d62ab83d0cf0b64fc1fbc4c3c9 02-Jun-2015 Chris Banes <chrisbanes@google.com> am 67619f25: Merge "Simplify Palette upscaling quantization" into lmp-mr1-ub-dev

* commit '67619f2509a688ce056bbec3de223fca789d53ba':
Simplify Palette upscaling quantization
44ae2f10b09fe865dd6ca767202218b4ce9426af 31-May-2015 Chris Banes <chrisbanes@google.com> Simplify Palette upscaling quantization

Scaling was causing issues on Intel CPUs. We now
just shift up instead.

BUG: 21436884
Change-Id: I69e05e11b4b62e8fe3a4c676c48086d399b2e136
olorCutQuantizer.java
1a4412ccda7b3e7818bdeceb60cc1e5ca9a65e34 11-May-2015 Chris Banes <chrisbanes@google.com> Annotate Palette with @ColorInt and @Nullable

BUG: 21022743

Change-Id: I5e53ab44950b7307b98070c09a5c4e758af62ee6
alette.java
2500f7a5e964b16c1175d3eff2f24a5bcdce4d5e 14-Apr-2015 Chris Banes <chrisbanes@google.com> Hide Palette's Generator API

Change-Id: I25f82a8f3f2d139404ad79f30fbb877b179e659f
alette.java
f78a300c82748e29a3890c8f17a13726aacf33be 22-Feb-2015 Chris Banes <chrisbanes@google.com> Add tests to Palette

Also changed the directory structure to enable
the tests to have their own resources.

Requires I7776f4d843aac8496240a54d0982525039b91469

Change-Id: I7bb98622995f009fc6e6c44e3a21aa88a151749a
olorCutQuantizer.java
efaultGenerator.java
alette.java