Page MenuHomePhabricator

[native] Create expo-module for Thumbhash generation
ClosedPublic

Authored by bartek on May 10 2023, 3:59 AM.
Tags
None
Referenced Files
F1665028: D7778.id.diff
Thu, Apr 25, 8:58 PM
Unknown Object (File)
Mon, Apr 15, 6:47 PM
Unknown Object (File)
Mon, Apr 15, 4:23 PM
Unknown Object (File)
Mon, Apr 15, 3:47 PM
Unknown Object (File)
Sun, Apr 14, 7:58 AM
Unknown Object (File)
Sat, Apr 13, 2:46 AM
Unknown Object (File)
Fri, Apr 12, 6:32 PM
Unknown Object (File)
Fri, Apr 12, 11:32 AM
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