Commit graph

26529 commits

Author SHA1 Message Date
BifrostTenmei e258aa3524
Fixed typo 2024-04-29 10:53:20 +02:00
Manav Rathi 3b6204f47d
Take 2 2024-04-29 13:49:02 +05:30
Manav Rathi 2d8bcd2530
Propagate 2024-04-29 11:59:08 +05:30
Manav Rathi 63841abd30
Envision 2024-04-29 11:44:43 +05:30
Manav Rathi e8687caba2
wip pending 2024-04-29 11:07:57 +05:30
Manav Rathi aa111b2a24
Outline the plan 2024-04-29 10:12:53 +05:30
Manav Rathi 75c058fc4c
This is where it comes from 2024-04-29 09:53:54 +05:30
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
Manav Rathi 24b64f9522
Verify assumption 2024-04-28 20:38:50 +05:30
Manav Rathi 13f0ff3af5
wip zip selection on web itself 2024-04-28 20:31:11 +05:30
Manav Rathi a3d06c54af
Prune 2024-04-28 17:38:03 +05:30
Manav Rathi 243d019e8b
Potential implementation 2024-04-28 17:24:11 +05:30
Manav Rathi e65307517d
Scaffold 2024-04-28 17:08:22 +05:30
Manav Rathi 0e9507be34
Understand better 2024-04-28 16:47:03 +05:30
Manav Rathi 0202f8f38b
More debug 2024-04-28 16:32:45 +05:30
Manav Rathi 42b0b6e9bb
convert to mp4 2024-04-28 16:28:57 +05:30
Manav Rathi 7179b0a603
less line 2024-04-28 15:58:15 +05:30
Manav Rathi 69193e374c
Wait for i18n loaded before accessing messages 2024-04-28 15:51:45 +05:30
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
laurenspriem 968eaaf5f6 [mob][photos] Better error logging 2024-04-27 09:39:12 +05:30