Page MenuHomePhabricator

[native] Create expo-module for Thumbhash generation
ClosedPublic

Authored by bartek on May 10 2023, 3:59 AM.
Tags
None
Referenced Files
F1711364: D7778.diff
Mon, May 6, 9:56 PM
F1710332: D7778.id26335.diff
Mon, May 6, 2:41 PM
F1710256: D7778.id.diff
Mon, May 6, 2:13 PM
Unknown Object (File)
Thu, May 2, 4:37 PM
Unknown Object (File)
Wed, May 1, 5:14 PM
Unknown Object (File)
Tue, Apr 30, 1:16 AM
Unknown Object (File)
Sun, Apr 28, 12:09 AM
Unknown Object (File)
Thu, Apr 25, 8:58 PM
Subscribers

Details

Summary

Thumbhash generation requires raw pixel RGB data, which is not easily available from JS, but we can easily get it in native code. Created an expo module for that purpose.
Basically copy-pasted the aes-crypto module.

Test Plan

generateThumbHash("foo").then(console.log) prints "unimplemented" on iOS and Android

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable