e6d3c26fa161b8916316f9ea2981282d5d369df3 |
25-Aug-2016 |
Aurimas Liutikas <aurimas@google.com> |
Remove all the extra accessor methods added by javac in support-palette. Change private methods to be package protected to avoid extra methods that get added to be able to access them from inner classes. This CL saves 14 methods in our jar. Bug: 31075707 Change-Id: I864ccd382e5a86fdd29d8d1ff9c89cd9654630d4
ndroid/support/v7/graphics/ColorCutQuantizer.java
ndroid/support/v7/graphics/Palette.java
ndroid/support/v7/graphics/Target.java
|
f5a65fd5baf1f69f796a70619222aa17d1cce959 |
19-Jul-2016 |
Chris Banes <chrisbanes@google.com> |
Add dominant swatch API to Palette Just returns the most populous color from the swatch. BUG: 24796354 Change-Id: I48258f83009c6af2bc054efe60a1ad6b9ddbf8c5
ndroid/support/v7/graphics/Palette.java
|
c9a859537b0871f84afeeb706a5b425fe3f2b4dd |
25-May-2016 |
Aurimas Liutikas <aurimas@google.com> |
Fix a random assortment of spelling errors. Fix spelling errors found by Android Studio. Change-Id: I121c79029f4e323da4ff2f44891e25480c44ebbc
ndroid/support/v7/graphics/Palette.java
|
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
ndroid/support/v7/graphics/ColorCutQuantizer.java
ndroid/support/v7/graphics/Palette.java
|
b3479fa775143ef50dfed1d34a8f0bc4c9dc499e |
15-Dec-2015 |
Chris Banes <chrisbanes@google.com> |
Improve doc on Target weighting methods BUG: 26181841 Change-Id: I69b4a2688d5f824c86a6376ca8b64e8f8bc8e678
ndroid/support/v7/graphics/Target.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
ndroid/support/v7/graphics/Palette.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
ndroid/support/v7/graphics/DefaultGenerator.java
ndroid/support/v7/graphics/Palette.java
ndroid/support/v7/graphics/Target.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
ndroid/support/v7/graphics/Palette.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
ndroid/support/v7/graphics/Palette.java
|
3f5d16ca39def4a1a15097b243d3811b5551edc4 |
15-Oct-2015 |
Chris Banes <chrisbanes@google.com> |
Fix typo in Palette doc BUG: 24807674 Change-Id: Ide2875690533d512aa765c0cce4f02dbbf7a8d29
ndroid/support/v7/graphics/Palette.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
ndroid/support/v7/graphics/Palette.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
ndroid/support/v7/graphics/Palette.java
|
ce4bafdad56c6c7ad49d6a97674d7c8891ab7b45 |
28-Jul-2015 |
Chris Banes <chrisbanes@google.com> |
Add region API to Palette BUG: 22785376 Change-Id: I565e910c26e586e76acda99342352cf4e98532ff
ndroid/support/v7/graphics/Palette.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
ndroid/support/v7/graphics/ColorCutQuantizer.java
ndroid/support/v7/graphics/Palette.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
ndroid/support/v7/graphics/ColorCutQuantizer.java
|
1a4412ccda7b3e7818bdeceb60cc1e5ca9a65e34 |
11-May-2015 |
Chris Banes <chrisbanes@google.com> |
Annotate Palette with @ColorInt and @Nullable BUG: 21022743 Change-Id: I5e53ab44950b7307b98070c09a5c4e758af62ee6
ndroid/support/v7/graphics/Palette.java
|
2500f7a5e964b16c1175d3eff2f24a5bcdce4d5e |
14-Apr-2015 |
Chris Banes <chrisbanes@google.com> |
Hide Palette's Generator API Change-Id: I25f82a8f3f2d139404ad79f30fbb877b179e659f
ndroid/support/v7/graphics/Palette.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
ndroid/support/v7/graphics/ColorCutQuantizer.java
ndroid/support/v7/graphics/DefaultGenerator.java
ndroid/support/v7/graphics/Palette.java
|