summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Reinitialize all the filters after Crop is applied."Ruben Brunk2013-05-101-7/+2
| | | | This reverts commit 1cfbaca7bef29b7d510c5e1de424e68cd8804022.
* Reinitialize all the filters after Crop is applied.Victor Doba2013-05-101-2/+7
| | | | Change-Id: I192918a3f28eac400e2e35f3b410dc8adc1a8ad4
* G+ activity xform stack and pipeline cleanup.Ruben Brunk2013-04-301-0/+2
| | | | Change-Id: I3277dd4e709146ca2c06b56a1db200d3130dd5e3
* Modifications for simple editnicolasroard2013-04-291-19/+18
| | | | Change-Id: Ic200a4f1e843deb119d68f627d5b8adb201f0f7f
* Add extra perf loggingnicolasroard2013-04-181-0/+10
| | | | Change-Id: Iebbb4491e69d356c0c73cd314c295857a2d6e357
* convertBitmap is needed by ImageFilterFixedFrame.Christian Wichner2013-04-161-1/+1
| | | | Change-Id: I2094c54745f94dab2283e2a466371d15d5a57b0a
* Add a direct rendering modenicolasroard2013-04-121-0/+54
| | | | | | | | | | | This takes input and output allocations. Also added a utility method in ImageFilterRS to scale textures at screen resolution. bug:8603245 bug:8588853 Change-Id: Ic5e4dea2289f0edd7518fc07f04b523be5316e82
* Allow use of texture.Tim Murray2013-04-081-2/+5
| | | | Change-Id: Ibc75616484d2833d9212c7c68027f83ad40b16cf
* Limit creation of greyscale converter RS script.Tim Murray2013-04-081-4/+11
| | | | Change-Id: I2725ae6cb5ba829fec61dce114513762fce53067
* Fix segfaults in RS filtersnicolasroard2013-04-021-2/+11
| | | | | | | | We did not recreate the filters in all cases when the input size change. bug:8530112 Change-Id: I4cb47498532618271b90e56c01ec63ad991db787
* Re-enable caching step in RS filtersnicolasroard2013-03-281-4/+12
| | | | | | | | | | | | | | Bug: 8478659 Bug: 8459181 Bug: 8450339 Bug: 8457323 With the compatibility library, different Scripts instances actually points to the same thing. We thus need to explicitely rebind all the variables to the correct script instance before running RS filters... Change-Id: Id6cd4e44b5a67a3d2588e158c616b2b44e214a5b
* Fix deadlock.nicolasroard2013-03-271-62/+30
| | | | | | | Move the RenderScript context and Resources to CachingPipeline. bug:8491107 Change-Id: I912555c87b060e4515cc1a4c66c8a8c9c840532d
* Fixed renderscript crashes.Ruben Brunk2013-03-271-7/+4
| | | | | | | | | | | | | Bug: 8478659 Bug: 8459181 Bug: 8450339 Bug: 8457323 createFilter() initializes a ton of parameters in the RenderScript filters. Using stale parameters from a previous call to createFilter() causes segfaults. Change-Id: Id54b956b7fe83be5089b1d47c3bedcca66237ddf
* Fix problem applying the Fx filternicolasroard2013-03-211-0/+7
| | | | | | | Also adds some debug info bug:8442036 Change-Id: Ife7fd4be664ae011e41969e74c7745da0a7a52f5
* Fix crashes with RS filtersnicolasroard2013-03-201-58/+20
| | | | | | bug:8418537 Change-Id: I37f8ad8a77f04faed9f721122872f00f7aaaa365
* Method added to load scaled resource (with only alpha channel).Victor Doba2013-03-201-1/+6
| | | | Change-Id: I1b9a58e0fd4c33c9748ad03f53d635c426a5102c
* Add accessor for filters to the source bitmap passed to apply()nicolasroard2013-03-191-0/+8
| | | | Change-Id: I2900c5b799592c388daa9049093ef8c80fa4f5c6
* ImageFilterRS filters reset properly. FilterPipeline delay till after load.Ruben Brunk2013-03-181-3/+8
| | | | | | | Bug: 8293404 Bug: 8417804 Change-Id: I4e3fbbdb86bcb790d73455f21044e6dee9398a5d
* Fixed more threading bugs in the ImageFilterRS and the FiltersManager.Ruben Brunk2013-03-141-8/+13
| | | | | | Bug: 8392832 Change-Id: I87b3af9ddb62524f02858a82eac2cc3bd2209418
* Requested RS method rename.Ruben Brunk2013-03-141-1/+1
| | | | Change-Id: I2f158cb6cfb6ab23907e49c89f93681692e56dfb
* Change element type to A_8 to support sampling.Tim Murray2013-03-141-2/+2
| | | | Change-Id: Ib91c924c9c2966bf431e24519af8ade7e360cf88
* Added locking for FilteringPipeline and ImageFilterRS. Gets rid of leaked ↵Ruben Brunk2013-03-131-51/+78
| | | | | | | | | | | | | | | | | threads. Bug: 8373600 Bug: 8363001 Bug: 8344345 Bug: 8264659 This CL fixes several things: - FilteringPipeline no longer leaks a handler thread every time photoeditor is reopened. - ImageFilterRS no longer leaks an RS context and thread every time photoeditor is reopened. - ImageFilterRS now uses locking. - ImageFilterRS no longer leaks Bitmap references or static renderscript allocations. Change-Id: I79ebde1a8ba8ad689791c2af8db0c3c907e06399
* Add loading resources helper functions to ImageFilterRSnicolasroard2013-03-121-3/+30
| | | | Change-Id: I79b4996b5da0fa05536f2f53f770d01e9735b96c
* Memory usage improvements, speed improvementnicolasroard2013-03-081-8/+24
| | | | | | | | - free filters resources agressively - implements multiple rendering pipelines - some cleanup Change-Id: Ib9ed268b0b2662d0bf5c049adcf046b556954c37
* Add convertRGBAtoA.Tim Murray2013-03-071-0/+20
| | | | Change-Id: I358bc0517480883c470df51189f46fb238fde101
* Stopgap fixes for more of the photo editor's memory issues.Ruben Brunk2013-02-221-0/+5
| | | | | | Bug: 8253109 Bug: 8233895 Change-Id: Idd55618807ff0a0c5ac0cbb8c71db167fa32e70b
* Fix for null check with RS allocations.Ruben Brunk2013-02-211-0/+2
| | | | | Bug: 8243554 Change-Id: I49da16f530a7283a801b3739ee7ba06bc7e4dad7
* get redeye working againJohn Hoford2013-02-131-1/+1
|
* refactor quality to be intJohn Hoford2013-02-121-5/+5
| | | | Change-Id: I0470abdbe75cf48c5228e80b9dc060ae6f3d8bbd
* Add reset bitmap for RS filtersnicolasroard2013-02-121-0/+4
| | | | Change-Id: I34e28ca72d13f9b5f8054d8a2c07cfffca4e85c6
* Only create one RS context.Tim Murray2013-02-111-1/+3
| | | | Change-Id: I527da839142cd2e48fb81e8cb02b43f6f87147d6
* Fix leaks / initnicolasroard2013-02-081-1/+9
| | | | Change-Id: I5befdc24cc89cdcfb73ee4d13f076b1c4a585cf6
* Fix filters only + geometry only renderingnicolasroard2013-02-071-1/+2
| | | | Change-Id: Id8f0637ae53864488cb931def196ee50ae807f5c
* Refactor to use direct manipulations of FilterRepresentations.nicolasroard2013-02-061-2/+1
| | | | Change-Id: If5f92f137283cb126835be004d315942ff95021c
* Switch Gallery over to RS compatibility library.Tim Murray2013-02-041-4/+2
| | | | Change-Id: If27809236534f3b196949bf455faed45c99f3da5
* Revert "Switch Gallery over to RS compatibility library."Stephen Hines2013-01-231-2/+4
| | | | | | This reverts commit 0746ce0977cde616d25ce35fee0d8d554235a21c Change-Id: Ic0fb6c60e5f40b53ad032afeafe2f9ff70c26b50
* Switch Gallery over to RS compatibility library.Stephen Hines2013-01-221-4/+2
| | | | Change-Id: If6eaea15a12a1448b402fb00dfd770b3749471ad
* Better caching for RS filtersnicolasroard2013-01-221-13/+31
| | | | Change-Id: I78eaa90e408059cf1c59fc06920f5aef82ae2c0d
* refactoring imageshowJohn Hoford2013-01-151-0/+6
| | | | Change-Id: I6d0872250b31a427ea6a3e46bd1c9ca5f3ba92ee
* Add copyright noticesnicolasroard2012-10-231-0/+16
| | | | | bug:7387634 Change-Id: Iaac0b55c9857f609312b78a613d074d323174ea1
* Fix crash introduced with the GeometryMetadatanicolasroard2012-10-081-2/+3
| | | | | | | | | | | bug:7224232 bug:7279964 bug:7298708 - Also remove the slide gesture (only use the slider widget) - use scaleFactor to apply sharpen proportionally Change-Id: Icce786cb53f2d3d6feada76c63108a563aaab7a3
* Add scale factor / quality parameters in filtersnicolasroard2012-10-051-2/+4
| | | | | bug:7248352 Change-Id: I2e4ca86d681eba2e97ddc550f88d9f702ecba65d
* Implement sharpennicolasroard2012-10-041-0/+59
bug:7279964 bug:7247494 bug:7234321 - add a sharpen filter - add infrastructure to use RenderScript - some refactoring (add an ImageSlave class) - add new zoom UI Change-Id: Id94dc94d32866c7107b6818adf4db35d0c6c0b01