Page MenuHomePhabricator

[native] Create expo-module for Thumbhash generation
ClosedPublic

Authored by bartek on May 10 2023, 3:59 AM.
Tags
None
Referenced Files
F3398385: D7778.diff
Sun, Dec 1, 10:39 PM
Unknown Object (File)
Wed, Nov 6, 10:10 AM
Unknown Object (File)
Mon, Nov 4, 10:39 AM
Unknown Object (File)
Mon, Nov 4, 10:39 AM
Unknown Object (File)
Mon, Nov 4, 8:34 AM
Unknown Object (File)
Mon, Nov 4, 8:07 AM
Unknown Object (File)
Mon, Nov 4, 8:07 AM
Unknown Object (File)
Oct 30 2024, 5: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