Commit graph

26430 commits

Author SHA1 Message Date
laurenspriem 8d4f9fe966 [mob][photos] Move code 2024-04-30 14:29:25 +05:30
laurenspriem 29b9bee1be [mob][photos] Use thumbnails for generating face crop in suggestions 2024-04-30 14:20:21 +05:30
laurenspriem a80c9dd589 [mob][photos] Rename method 2024-04-30 12:35:05 +05:30
laurenspriem 046a96f586 Merge remote-tracking branch 'origin/mobile_face' into mobile_face 2024-04-30 11:57:03 +05:30
laurenspriem 740ca907f2 [mob][photos] Prevent face cropping out of image bounds 2024-04-30 11:38:39 +05:30
laurenspriem c783735e86 [mob][photos] Log clustering time for each bucket 2024-04-30 11:24:06 +05:30
Neeraj Gupta cbf2a77d5b refactor 2024-04-30 11:06:41 +05:30
laurenspriem 9f5c5fde49 [mob][photos] Parallelize the cropping and encoding of faces 2024-04-30 10:59:45 +05:30
laurenspriem 1cd31d2cab [mob][photos] Only decode image once for face thumbnails in file info 2024-04-30 10:46:16 +05:30
Neeraj Gupta 4b6ecbdd30 Merge branch 'main' of https://github.com/ente-io/auth into mobile_face 2024-04-30 10:17:13 +05:30
Vishnu Mohandas e7ca750168
Fixed typo (#1555)
## Description
Fixed a small typo
2024-04-29 17:39:13 +05:30
Neeraj Gupta 7d2633190f Merge branch 'mobile_face' of https://github.com/ente-io/auth into mobile_face 2024-04-29 17:18:32 +05:30
Neeraj Gupta 52f605831f Merge branch 'main' into mobile_face 2024-04-29 17:18:16 +05:30
laurenspriem 8b1545239c [mob][photos] Use canvas again for generating face thumbnail 2024-04-29 16:28:19 +05:30
laurenspriem aad1327705 [mob][photos] Small cleanup 2024-04-29 15:29:00 +05:30
laurenspriem 8058c6b621 [mob][photos] Remove unnecessary write transactions 2024-04-29 15:20:01 +05:30
laurenspriem d03d8d564d [mob][photos] Fix DB issue 2024-04-29 15:13:51 +05:30
BifrostTenmei e258aa3524
Fixed typo 2024-04-29 10:53:20 +02:00
Manav Rathi 7ce34c9b2e
[web] Allow thumbnail cache to be optional (#1552)
See:
https://github.com/ente-io/ente/discussions/1449#discussioncomment-9255346

I'm not yet sure what was the case why it was not initialized, hoping to
get some logs for the error when initializing the cache to see how we
got to this state. But meanwhile, ensure that the code works even
without the cache.
2024-04-29 09:28:41 +05:30
Manav Rathi 0f46a25a5d
[web] Allow thumbnail cache to be optional
See: https://github.com/ente-io/ente/discussions/1449#discussioncomment-9255346

I'm not yet sure what was the case why it was not initialized, hoping to get
some logs for the error when initializing the cache to see how we got to this
state. But meanwhile, ensure that the code works even without the cache.
2024-04-29 09:25:55 +05:30
Vishnu Mohandas 6f52df1fda
Fixed typo (#1549)
## Description
Fixed a small typo
2024-04-28 22:36:20 +05:30
BifrostTenmei d46dbf1e73
Fixed typo 2024-04-28 18:20:58 +02:00
Vishnu Mohandas 650a078fd7
Fixed typo (#1544)
## Description
Fixed a small typo
2024-04-28 13:32:03 +05:30
Manav Rathi c61d58f6ea
[web] Upload refactoring - Part x/x (happy paths working checkpoint) (#1547)
Checkpoint
- Both upload and export work now (in both the desktop and web apps)
- Uploads after individual selection and takeout uploads still need to
be fixed when in desktop
2024-04-28 13:31:58 +05:30
Manav Rathi c90e9b7fd1
Add a debug inspector 2024-04-28 13:26:43 +05:30
Manav Rathi b66972e884
Handle missing stacks 2024-04-28 12:48:00 +05:30
Manav Rathi 05b9f834cf
ffmpeg wasm timings 2024-04-28 12:42:34 +05:30
Manav Rathi e7a4e3e7c2
fix logger 2024-04-28 12:27:36 +05:30
Manav Rathi 85d0a72df3
Rework the stream handling 2024-04-28 11:32:23 +05:30
Manav Rathi 9a37141d29
Not yet sure how but desktop drag drops have the full path 2024-04-27 20:50:45 +05:30
Manav Rathi 7836562ff1
less noise 2024-04-27 20:21:54 +05:30
Manav Rathi 17275ed29d
Inline 2024-04-27 18:03:09 +05:30
Manav Rathi bb2ddec163
Inline
The zip-file tests are no longer directly usable, the way we read the files has
changed, these will have to be recreated in a new form.
2024-04-27 17:45:34 +05:30
BifrostTenmei c2b55d4389
Fixed typo 2024-04-27 13:58:27 +02:00
Manav Rathi 6671a62c78
duh 2024-04-27 17:06:33 +05:30
Manav Rathi 536bcf1091
Add a fixed size block transformer
Surprisingly, this is not a primitive. Or maybe I didn't find it.

The highWaterMark-ing didn't work, that seems more of a recommendation than an
enforcement.
2024-04-27 17:00:01 +05:30
Manav Rathi 31a70674ff
Revert "Read in 4 MB blocks"
This reverts commit db30d8d81e.
2024-04-27 16:49:22 +05:30
laurenspriem 87571159cc [mob][photos] Fix faces db conflict 2024-04-27 14:30:34 +05:30
laurenspriem 97d8c5f83e Merge remote-tracking branch 'origin/mobile_face' into mobile_face 2024-04-27 14:03:40 +05:30
laurenspriem a2023bd457 [mob][photos] Fix database issue 2024-04-27 13:38:34 +05:30
Vishnu Mohandas a16910a4ee
[mob][photos] Remove unnecessary optional parameter (#1543) 2024-04-27 13:20:52 +05:30
ashilkn 54d3ad9743 [mob][photos] Remove unnecessary optional parameter 2024-04-27 12:37:42 +05:30
laurenspriem 6235f7ee78 [mob][photos] Move FaceBoxImage to face_util 2024-04-27 12:19:29 +05:30
Laurens Priem 9eeab36392
[mob][photos] Generate face crops faster (#1542)
## Description

Have written two new methods, `generateImgFaceThumbnails()` and
`generateJpgFaceThumbnails()`.
Using `generateJpgFaceThumbnails()` now since it returns
`Future<List<Uint8List>>` and is easier to integrate within the code
base because the return type remains the same with the older
`generateFaceThumbnailsForImage()`

There is performance improvement with `generateImgFaceThumbnails()`, but
it's not very significant and it requires changes in codebase to work
with it's return type `Future<List<Image>>` (`Image` from the `Image`
package). Can consider using it if it feels necessary in future.

If multiple faces are being generated from the same image, the image can
be decoded once and passed to `generateImgFaceThumbnails()` or
`generateJpgFaceThumbnails()` to avoid repeated decoding of the same
image.

`generateImgFaceThumbnails()` and `generateJpgFaceThumbnails()` uses the
isolates available from the pool of 4 spawned by `Computer` and
processes multiple faces in parallel unlike
`generateImgFaceThumbnails()`, which processes only one at a time.
2024-04-27 12:05:32 +05:30
laurenspriem f422e30a8e [mob][photos] Migrate fully to sqlite async for faces, removing sqflite fully 2024-04-27 11:13:52 +05:30
ashilkn 58cd9350c0 Merge branch 'mobile_face' into fix_face_thumbnail 2024-04-27 11:10:10 +05:30
ashilkn ab5985a08b [mob][photos] Use generated face crops and crop it using the new method 2024-04-27 11:06:54 +05:30
ashilkn 19f2c5f00a [mob][photos] remove negation 2024-04-27 11:02:38 +05:30
ashilkn 707916f677 [mob][photos] Add method to convert Image from Image package to UI image 2024-04-27 10:57:49 +05:30
ashilkn 8b236cde09 [mob][photos] When cropping a face from an image, make the image a square and add some buffer around it 2024-04-27 09:59:16 +05:30