summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data/DecodeUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cm-12.1' of ↵Steve Kondik2015-10-171-0/+44
|\ | | | | | | | | | | git://github.com/CyanogenMod/android_packages_apps_Gallery2 into cm-13.0 Change-Id: Ib8caa024d2e6feca332e3645038f226fd5a910a2
| * Gallery2 : Uses internal Drm image decoder api in Gallery appParamananda2015-09-151-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove all previous drm implementation which is basically uses base bitmap decode apis to decode drm image files. - Introduced new hidden apis on BitmapFactory and BitmapRegionDecoder specific to DRM content which is more practical to DRM framework. - Uses DrmHelper a utility drm api library to code reusability. - This approch will fix the issue on sharing images from Third party application. CRs-fixed : 804191 Change-Id: I2e9489800c57df4fdeeb21f1548fbccc6dfbd3f9
| * Gallery2: Make Gallery2 support OMADRM featureParamananda Pradhan2015-09-151-7/+15
| | | | | | | | | | | | - Make Gallery2 can recognize and consume DRM images and videos. Change-Id: I1655d295bcec31b5760c2c86c06f815cf6ed57ee
| * Revert OMADRM feature.staging/cm-12.1Steve Kondik2015-03-281-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * No need for this. Revert "Gallery2 : Added support for Oma drm (CD and SD)" This reverts commit 6144de8cc35fdd114802545c9922a1a234af8397. Revert "Gallery2: Make Gallery2 support OMADRM feature" This reverts commit 9382a979292e52de5c60a39ba24688362dce8bc1. Change-Id: I13a0d69a792aad36d7b15bc0b3c78e3f55d396bc
| * gallery: use inJustDecodeBounds in ImageFilterBorderJorge Ruesga2015-03-281-0/+44
| | | | | | | | | | | | | | | | | | | | To avoid OOM exceptions loading the border drawable JIRA: BUGDUMP-20716 https://jira.cyanogenmod.org/browse/BUGDUMP-20716 Signed-off-by: Jorge Ruesga <jorge@ruesga.com> Change-Id: Ie3fdb34de83f4a863c0d1d23bb8162b2425955e9
| * Gallery2: Make Gallery2 support OMADRM featureParamananda Pradhan2015-01-201-7/+15
| | | | | | | | | | | | - Make Gallery2 can recognize and consume DRM images and videos. Change-Id: I1655d295bcec31b5760c2c86c06f815cf6ed57ee
* | Remove dependencies on FloatMathNeil Fuller2014-10-021-2/+1
|/ | | | | | | | See frameworks/base commit 33253a4baa6279f81a73425b49dfb6abe5f5416e for details. Bug: https://code.google.com/p/android/issues/detail?id=36199 Change-Id: I202064d78aeb125035c87257100e949da93c116c
* Replace various BitmapPools with a smarter unified poolBobby Georgescu2013-02-221-26/+17
| | | | | | | | Make all of gallery use a single shared pool, and pave the way for making the pool more adaptive based on the current workload. Change-Id: Ia32561ad50b1b9716ebe2fd32a7bf02737685dac
* Set inMutable to true if we may reuse the bitmap.Owen Lin2012-09-041-0/+11
| | | | | bug: 7092330 Change-Id: I0def7e2e9ce57d09ba7f5e001b33cc605a6af44c
* Don't reuse bitmap before HoneyComb.Owen Lin2012-07-031-1/+78
| | | | Change-Id: I0df9bf0a8f43e28ed25b436d4c584dc3ceb43c1d
* Add thumb pool the cache Bitmap used for thumbnails.Chih-Chung Chang2012-04-181-0/+18
| | | | Change-Id: Ib710f2a6fc1aa86fe4abdd18d1fa7ac71396a3b4
* Reuse bitmap for all micro thumb images to prevent GC.Owen Lin2012-03-141-29/+54
| | | | Change-Id: I27d3002e5bb745a597f52962fe24744c8329441c
* Remove unused code.Chih-Chung Chang2012-02-231-32/+0
| | | | Change-Id: I167596ab023671651df298ddb2b80b7c782f4223
* Fix 5398768: Add requestCreateBitmapRegionDecoder for InputStream.Chih-Chung Chang2011-10-141-0/+13
| | | | Change-Id: Ied273ffbabc134fdd930e6415fc175a6221eb662
* Fix 5337270: Thumbnail is not generated for large GIF images.Chih-Chung Chang2011-09-201-2/+6
| | | | Change-Id: I8e2e8cafb01b2289f59b28b7e2eadae3dc5c0c50
* Add a hard limit on the size of the widget images.Owen Lin2011-09-191-1/+1
| | | | | | | | | | | | | | | There is a limit on the size of the data transfered by binder. For now, we just add a hard limit (360 pixel) to ensure the widget's image can be passed by binder. Also adjust the size of widget to make it looks better. Fix a bug in DecodeUtils which cause OOM for a image in size 12200x1920. In that case, we should generate a screen nail of size 640x101 instead of 4066x640. Change-Id: Ia8227d8e5368471fe7af94bf164d67017aa321fa fix: 5273271
* Improve the performance of Reviewing a photo.Owen Lin2011-09-051-0/+25
| | | | | | | | | | | | | | | | | fix: 5144370 There is two componenet in the photo page. One is the large photo and the other is the thumbnail strip. They idenpendently load their own data and images. This change fixes several issues here: 1. Prevent sending to many jobs to ThreadPool and block others. In a worse case, if the thumbnail strip send image requests first, it may block the ThreadPool very long. 2. Improve the performance of extracting thumbnails from local files. Now we try to extract the thumbnails from EXIF data first. Change-Id: I45100d4daa025efb479f47c4f105de2b4731b498
* Fix unknown type for GL issue.Owen Lin2011-08-191-0/+7
| | | | | | fix: 5171449 Change-Id: Ib62e3237584144e94be6be773c292002bea5d21c
* Initial code for Gallery2.Owen Lin2011-08-181-0/+173
fix: 5176434 Change-Id: I041e282b9c7b34ceb1db8b033be2b853bb3a992c