History log of /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1af7be9378009180f7873e177b430dbefae83edc 21-Aug-2013 nicolasroard <nicolasroard@google.com> Revert to loading 8888 bitmaps

bug:10305385
Change-Id: I3c8ff6e848e79631f9b9e887244495b094e730a3
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
ce9ceff5776a9b0479c30cbeb2a9388b44df1865 03-Jul-2013 nicolasroard <nicolasroard@google.com> Move classes to pipeline package

Change-Id: I9d664537d845d9daeb352c8006d0296a3f546dca
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
4433a05abfc33e99223d89fcc28b924cdd754104 10-May-2013 Ruben Brunk <rubenbrunk@google.com> Revert "Reinitialize all the filters after Crop is applied."

This reverts commit 1cfbaca7bef29b7d510c5e1de424e68cd8804022.
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
1cfbaca7bef29b7d510c5e1de424e68cd8804022 10-May-2013 Victor Doba <dobavictor@google.com> Reinitialize all the filters after Crop is applied.

Change-Id: I192918a3f28eac400e2e35f3b410dc8adc1a8ad4
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
fc47c52f552ad8ed6adfc177e9ba90b1f4e93ca4 01-May-2013 Ruben Brunk <rubenbrunk@google.com> G+ activity xform stack and pipeline cleanup.

Change-Id: I3277dd4e709146ca2c06b56a1db200d3130dd5e3
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
36e567afff815bc821c2859ebdeec86b1fca1ef6 26-Apr-2013 nicolasroard <nicolasroard@google.com> Modifications for simple edit

Change-Id: Ic200a4f1e843deb119d68f627d5b8adb201f0f7f
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
8b118bf1437b18eb3f6f9b5698daf43c378eacbf 18-Apr-2013 nicolasroard <nicolasroard@google.com> Add extra perf logging

Change-Id: Iebbb4491e69d356c0c73cd314c295857a2d6e357
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
a225f182540914e286ed18117f40e960244255c5 16-Apr-2013 Christian Wichner <cwichner@google.com> convertBitmap is needed by ImageFilterFixedFrame.

Change-Id: I2094c54745f94dab2283e2a466371d15d5a57b0a
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
93ef658bf44d7ecd79894a9a225a400c2741058f 11-Apr-2013 nicolasroard <nicolasroard@google.com> Add a direct rendering mode

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
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
7a584e068d274ca95286fcf2804c068d38fe8753 08-Apr-2013 Tim Murray <timmurray@google.com> Allow use of texture.

Change-Id: Ibc75616484d2833d9212c7c68027f83ad40b16cf
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
e193e864a849f4f816c55cff83a9dc7b39e0018f 08-Apr-2013 Tim Murray <timmurray@google.com> Limit creation of greyscale converter RS script.

Change-Id: I2725ae6cb5ba829fec61dce114513762fce53067
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
2538c992dc70b3eda7487ef68dba0390b2f337d7 03-Apr-2013 nicolasroard <nicolasroard@google.com> Fix segfaults in RS filters

We did not recreate the filters in all
cases when the input size change.

bug:8530112
Change-Id: I4cb47498532618271b90e56c01ec63ad991db787
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
0c90af2257105a289c19a355e33d4035bd1fc61f 29-Mar-2013 nicolasroard <nicolasroard@google.com> Re-enable caching step in RS filters

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
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
560f959b659bb510a6ac9a92831534c5dfcf16be 28-Mar-2013 nicolasroard <nicolasroard@google.com> Fix deadlock.

Move the RenderScript context and Resources to CachingPipeline.

bug:8491107
Change-Id: I912555c87b060e4515cc1a4c66c8a8c9c840532d
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
bc94848ce73ba9a23be2f7f3a12c4a7404ae3eb2 27-Mar-2013 Ruben Brunk <rubenbrunk@google.com> Fixed renderscript crashes.

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
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
180277924bebf6b600ee5ce5adf9ff807a038570 22-Mar-2013 nicolasroard <nicolasroard@google.com> Fix problem applying the Fx filter
Also adds some debug info

bug:8442036
Change-Id: Ife7fd4be664ae011e41969e74c7745da0a7a52f5
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
fc8a6a38c699c0d75fa29664d9aaa369d361c335 20-Mar-2013 nicolasroard <nicolasroard@google.com> Fix crashes with RS filters

bug:8418537

Change-Id: I37f8ad8a77f04faed9f721122872f00f7aaaa365
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
0055102404c767af2cd5fabf70acbc8317e33fe3 20-Mar-2013 Victor Doba <dobavictor@google.com> Method added to load scaled resource (with only alpha channel).

Change-Id: I1b9a58e0fd4c33c9748ad03f53d635c426a5102c
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
269d2c8602e8893b0bf399324b2072783ba0f37c 20-Mar-2013 nicolasroard <nicolasroard@google.com> Add accessor for filters to the source bitmap passed to apply()

Change-Id: I2900c5b799592c388daa9049093ef8c80fa4f5c6
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
f79f954f4eb23bce55061c683a07fc7b3a965451 19-Mar-2013 Ruben Brunk <rubenbrunk@google.com> ImageFilterRS filters reset properly. FilterPipeline delay till after load.

Bug: 8293404
Bug: 8417804

Change-Id: I4e3fbbdb86bcb790d73455f21044e6dee9398a5d
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
ea5355e6aa782bb61fbf079f4811873a67a83808 15-Mar-2013 Ruben Brunk <rubenbrunk@google.com> Fixed more threading bugs in the ImageFilterRS and the FiltersManager.

Bug: 8392832

Change-Id: I87b3af9ddb62524f02858a82eac2cc3bd2209418
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
d7c61b63a1ea0d86cd10861834fd2783c54a4632 14-Mar-2013 Ruben Brunk <rubenbrunk@google.com> Requested RS method rename.

Change-Id: I2f158cb6cfb6ab23907e49c89f93681692e56dfb
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
7428a933c89e2d49036a1854143d5c28078fec75 14-Mar-2013 Tim Murray <timmurray@google.com> Change element type to A_8 to support sampling.

Change-Id: Ib91c924c9c2966bf431e24519af8ade7e360cf88
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
575ce6f72fd87a62af1686edb3f17c0041031b86 13-Mar-2013 Ruben Brunk <rubenbrunk@google.com> Added locking for FilteringPipeline and ImageFilterRS. Gets rid of leaked 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
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
96df19b2a4b7286a01aeb690a38d8c99bc43449c 12-Mar-2013 nicolasroard <nicolasroard@google.com> Add loading resources helper functions to ImageFilterRS

Change-Id: I79b4996b5da0fa05536f2f53f770d01e9735b96c
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
7706e506dc74fa634a69b9ce8c7e5e2c457f01fc 08-Mar-2013 nicolasroard <nicolasroard@google.com> Memory usage improvements, speed improvement
- free filters resources agressively
- implements multiple rendering pipelines
- some cleanup

Change-Id: Ib9ed268b0b2662d0bf5c049adcf046b556954c37
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
a7723fb08098c0c7682b02cf459cafa3792a4ce4 07-Mar-2013 Tim Murray <timmurray@google.com> Add convertRGBAtoA.

Change-Id: I358bc0517480883c470df51189f46fb238fde101
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
b17b1b0758799914fbad5f4a3afae71ce58891fc 22-Feb-2013 Ruben Brunk <rubenbrunk@google.com> Stopgap fixes for more of the photo editor's memory issues.

Bug: 8253109
Bug: 8233895
Change-Id: Idd55618807ff0a0c5ac0cbb8c71db167fa32e70b
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
0f8047fe826a84829ab37bc7cd24c8a4dea0db64 22-Feb-2013 Ruben Brunk <rubenbrunk@google.com> Fix for null check with RS allocations.

Bug: 8243554
Change-Id: I49da16f530a7283a801b3739ee7ba06bc7e4dad7
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
4e6c07b71b269ee3fe7f6fa455bc540238df9ded 14-Feb-2013 John Hoford <hoford@google.com> get redeye working again
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
99baf61387ab1ef15bb9db5fa3b2b55591e87059 12-Feb-2013 John Hoford <hoford@google.com> refactor quality to be int

Change-Id: I0470abdbe75cf48c5228e80b9dc060ae6f3d8bbd
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
b01a32825018cfb79f2c965c1c3e3e25b5131229 12-Feb-2013 nicolasroard <nicolasroard@google.com> Add reset bitmap for RS filters

Change-Id: I34e28ca72d13f9b5f8054d8a2c07cfffca4e85c6
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
7921e124d57759d6f0887a42ddc360d923e60cdd 12-Feb-2013 Tim Murray <timmurray@google.com> Only create one RS context.

Change-Id: I527da839142cd2e48fb81e8cb02b43f6f87147d6
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
588c30c74178bc399b043a5401f0c1f93ae22378 08-Feb-2013 nicolasroard <nicolasroard@google.com> Fix leaks / init

Change-Id: I5befdc24cc89cdcfb73ee4d13f076b1c4a585cf6
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
3df4f831396ffbc11e4bbee0b6150794e8e44e0b 07-Feb-2013 nicolasroard <nicolasroard@google.com> Fix filters only + geometry only rendering

Change-Id: Id8f0637ae53864488cb931def196ee50ae807f5c
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
cf0b2aad3bc5d80c51316ae10e1cf2c3476259aa 06-Feb-2013 nicolasroard <nicolasroard@google.com> Refactor to use direct manipulations of FilterRepresentations.

Change-Id: If5f92f137283cb126835be004d315942ff95021c
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
a64051696e46fb5d5e1c76e53ac95a4feba18585 04-Feb-2013 Tim Murray <timmurray@google.com> Switch Gallery over to RS compatibility library.

Change-Id: If27809236534f3b196949bf455faed45c99f3da5
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
240634303ac2368ab0faa19a8f8f4687cac5fc1e 23-Jan-2013 Stephen Hines <srhines@google.com> Revert "Switch Gallery over to RS compatibility library."

This reverts commit 0746ce0977cde616d25ce35fee0d8d554235a21c

Change-Id: Ic0fb6c60e5f40b53ad032afeafe2f9ff70c26b50
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
0746ce0977cde616d25ce35fee0d8d554235a21c 17-Jan-2013 Stephen Hines <srhines@google.com> Switch Gallery over to RS compatibility library.

Change-Id: If6eaea15a12a1448b402fb00dfd770b3749471ad
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
57eedfd99676913f575b1f76e3a874026d1ddf7c 16-Jan-2013 nicolasroard <nicolasroard@google.com> Better caching for RS filters

Change-Id: I78eaa90e408059cf1c59fc06920f5aef82ae2c0d
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
63a7dac01d394523799939596b960cb03321798d 14-Jan-2013 John Hoford <hoford@google.com> refactoring imageshow

Change-Id: I6d0872250b31a427ea6a3e46bd1c9ca5f3ba92ee
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
a9f280f938b5fd5891c5cfe0999f8f1d4945d7a1 23-Oct-2012 nicolasroard <nicolasroard@google.com> Add copyright notices

bug:7387634
Change-Id: Iaac0b55c9857f609312b78a613d074d323174ea1
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
de154778c8f94121cb2117fcf6224c40c01b6132 09-Oct-2012 nicolasroard <nicolasroard@google.com> Fix crash introduced with the GeometryMetadata

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
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
81eb9976f967d9b3faa1749a8ab29d1743cf347d 06-Oct-2012 nicolasroard <nicolasroard@google.com> Add scale factor / quality parameters in filters

bug:7248352
Change-Id: I2e4ca86d681eba2e97ddc550f88d9f702ecba65d
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
5448bf8095483574649afcc2add7f153670c7450 03-Oct-2012 nicolasroard <nicolasroard@google.com> Implement sharpen

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
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java