Commit graph

50 commits

Author SHA1 Message Date
Ming Ming
8805861ea4 Format code 2022-07-06 00:04:43 +08:00
Ming Ming
12542856a0 Refactor: simplify code 2022-07-06 00:04:43 +08:00
Ming Ming
4d1905863b Group 3rd party libs tgt 2022-07-06 00:04:43 +08:00
Ming Ming
8bda69d5b0 Move things out of util.h 2022-07-06 00:04:43 +08:00
Ming Ming
498ec7b88a Remove unnecessary include 2022-07-06 00:04:43 +08:00
Ming Ming
d63bdc4393 (Android) Alternative native preference 2022-06-08 02:54:11 +08:00
Ming Ming
5f65f66be4 Fix missing default case 2022-06-08 02:53:07 +08:00
Ming Ming
dbb7af2848 Add enhancement: style transfer 2022-05-25 21:41:49 +08:00
Ming Ming
74b69432c6 Support the special asset uri syntax 2022-05-25 21:41:49 +08:00
Ming Ming
dd2830d962 Relocate tf models 2022-05-25 21:41:48 +08:00
Ming Ming
4892f97d68 Update gradle 2022-05-25 21:41:48 +08:00
Ming Ming
4295a011d3 Dump system logcat 2022-05-24 00:05:04 +08:00
Ming Ming
d3c62611fa Fix native channel handler not unset 2022-05-24 00:05:04 +08:00
Ming Ming
d96acbaefc Refactor: remove unnecessary code 2022-05-23 14:06:48 +08:00
Ming Ming
77b213cf36 Add a grace period after service restart 2022-05-21 19:39:14 +08:00
Ming Ming
038f2a3b39 Add enhancement: super resolution with ESRGAN 2022-05-21 19:39:13 +08:00
Ming Ming
b75c4dd2f6 Fix typo 2022-05-21 19:37:40 +08:00
Ming Ming
eeb95258c0 Migrate photo enhancements to NDK 2022-05-21 19:37:40 +08:00
Ming Ming
afefa0c136 Allow setting the iteration of ZeroDCE 2022-05-16 04:32:51 +08:00
Ming Ming
c0c49361b8 Allow setting the radius of Portrait blur 2022-05-16 04:32:51 +08:00
Ming Ming
2fabcf4db6 Fix enhance notification opening app in wrong flavor 2022-05-15 19:47:48 +08:00
Ming Ming
812b26f10e Format code 2022-05-15 16:46:50 +08:00
Ming Ming
c784cf63ff Reduce logs in release build 2022-05-15 16:46:50 +08:00
Ming Ming
f2b17ccc6b Measure enhancement execution time 2022-05-15 16:46:50 +08:00
Ming Ming
d5151f077f Reduce memory usage of ZeroDCE 2022-05-15 16:46:50 +08:00
Ming Ming
e7a89c93af Allow setting resolution of enhanced photos 2022-05-15 16:46:50 +08:00
Ming Ming
82513e4a5d Tweak log 2022-05-14 15:00:43 +08:00
Ming Ming
f3f72619cd Do a GC after processing each photo
This will probably do nothing in practice, but at least we tried...
2022-05-14 15:00:43 +08:00
Ming Ming
762fe521b2 Add enhancement: portrait blur with deeplab 2022-05-14 15:00:43 +08:00
Ming Ming
d1aa3ffe7f Cancel queued photo enhancement task 2022-05-14 15:00:43 +08:00
Ming Ming
91d4d3be81 Tweak resolution of enhanced photos 2022-05-14 15:00:43 +08:00
Ming Ming
2275da0170 Fix write file not working on Q after disabling scoped storage 2022-05-14 15:00:43 +08:00
Ming Ming
c378bffaed Simplify code 2022-05-14 15:00:43 +08:00
Ming Ming
9469ee1d6f Retain EXIF in enhanced files 2022-05-14 15:00:43 +08:00
Ming Ming
6d0f612c7b Enhance original file instead of cached preview 2022-05-14 15:00:43 +08:00
Ming Ming
1cf2e565ba Handle android permission request on dart side 2022-05-14 15:00:43 +08:00
Ming Ming
d33e3af806 Delete files via MediaStore api 2022-05-14 15:00:43 +08:00
Ming Ming
b71620ee28 Query files from media store 2022-05-14 15:00:43 +08:00
Ming Ming
c6e6b99128 Add image provider backed by content uri 2022-05-14 15:00:43 +08:00
Ming Ming
e343e59741 Add image enhancement algorithm: ZeroDCE 2022-05-14 15:00:43 +08:00
Ming Ming
4beb93c552 Overhaul and migrate MediaStore 2022-05-14 15:00:43 +08:00
Ming Ming
a5e6f806ba Update some action and extra name 2022-05-14 15:00:43 +08:00
Ming Ming
a4b7f2adfe Fix dangling lock if app killed before unlocking 2022-04-23 04:26:19 +08:00
Ming Ming
653c981a99 Move native code to plugin 2022-04-23 04:26:19 +08:00
Ming Ming
2ca5d4c8e1 (plugin) Upgrade flutter 2022-04-23 04:26:19 +08:00
Ming Ming
996bebfdd2 (plugin) Add native event stream 2022-04-06 02:37:58 +08:00
Ming Ming
46b90cadfe Break plugin classes into separated files 2022-04-06 02:37:58 +08:00
Ming Ming
5554c32781 Platform side lock 2022-04-06 02:37:58 +08:00
Ming Ming
701d2c40da Increase compileSdkVersion to 31 2022-04-06 02:37:58 +08:00
Ming Ming
c94c2708db Migrate android native code to plugin 2022-04-06 02:37:58 +08:00