Commit Graph

1208 Commits

Author SHA1 Message Date
Marc Rousavy
0bb9ba1e8a docs: Remove outdated "use-cases" docs 2021-07-06 16:59:09 +02:00
Marc Rousavy
2fa0f8fd46
chore: Clean up root directory (#236)
* Clean up root

* remove unused REA patches

* Remove `cpp/` and create headers per platform

* fix `#import`

* fix `VISION_CAMERA_DISABLE_FRAME_PROCESSORS`
2021-07-06 16:42:58 +02:00
Marc Rousavy
65168f7abb
Update FRAME_PROCESSORS_CREATE_OVERVIEW.mdx 2021-07-06 15:28:17 +02:00
Marc Rousavy
444e421e67
Update FRAME_PROCESSORS_CREATE_OVERVIEW.mdx 2021-07-06 15:21:40 +02:00
Marc Rousavy
1f680276a0
Update FRAME_PROCESSORS.mdx 2021-07-06 15:16:54 +02:00
Marc Rousavy
3e3485ff7e
Update FRAME_PROCESSORS.mdx 2021-07-06 15:15:57 +02:00
Marc Rousavy
18e0d3ec7d
docs: Re-order Frame Processor docs 2021-07-06 15:12:29 +02:00
Marc Rousavy
db9c7d8e00
Update FRAME_PROCESSORS.mdx 2021-07-06 15:06:14 +02:00
Marc Rousavy
4a362a544f
Update FRAME_PROCESSORS.mdx 2021-07-06 15:05:13 +02:00
Marc Rousavy
d4057e9d8e
Update FRAME_PROCESSORS.mdx 2021-07-06 15:03:40 +02:00
Marc Rousavy
5ad386bfbc
Update FRAME_PROCESSORS.mdx 2021-07-06 15:01:58 +02:00
Marc Rousavy
94914907ba
docs: Shorten code sample 2021-07-06 14:56:44 +02:00
Marc Rousavy
1646bb56f4
docs: Link to Worklets docs 2021-07-06 14:54:05 +02:00
Marc Rousavy
db0baaefe8
docs: Use Hotdog/Not Hotdog as sample 2021-07-06 14:52:28 +02:00
Marc Rousavy
b39b38006c
docs: Update "The Frame object" docs 2021-07-06 14:32:39 +02:00
Marc Rousavy
ff892c2f4b
docs: Emphasize "video processing" 2021-07-06 14:02:04 +02:00
Marc Rousavy
949c44a97f
docs: Fix confusing wording 2021-07-06 14:00:48 +02:00
Marc Rousavy
0f6d0978f0
docs: Update Frame Processor Technical docs 2021-07-06 10:37:56 +02:00
Marc Rousavy
03cd0bb635
docs: Add link to Frame Processors to README 2021-07-06 10:26:41 +02:00
Marc Rousavy
fa5f5c0cab
feat: Implement Frame.close() (#229)
* Implement `Frame.close()`

* close frame in dtor

* Update JImageProxyHostObject.cpp

* fix close

* Check if closed

* remove a few logs

* r

* fix `isValid` and `isReady`

* Add JImage

* Release JNI frame ref on destroy

* fix pod setup

* Fix isValid call

* Fix `close` not returning a function

* throw error if closed twice

* iOS: Schedule `console.error` call on JS thread

* Android: Log Frame Processor Error to JS

* fix syntax

* Check if valid `toString()`

* Update Frame.ts

* Remove `isReady`

* Fix JImage accessors

* remove `JImage` C++ sources

* Throw error if accessing props on closed Frame

* Delete `JImage.h`
2021-07-06 10:08:44 +02:00
Marc Rousavy
7d3b352155
perf: Avoid expensive CMSampleBuffer copy (#235)
* Don't copy CMSampleBuffer

* Update CameraView+RecordVideo.swift

* Update Podfile.lock
2021-07-06 09:25:11 +02:00
Marc Rousavy
cd7235c7a2 chore: release 2.4.2-beta.7 2021-06-29 10:39:16 +02:00
Marc Rousavy
bfb1b67c2f Update FrameProcessorRuntimeManager.cpp 2021-06-29 10:38:35 +02:00
Marc Rousavy
5ab1a72e01 chore: Fix C++ indents 2021-06-29 10:38:13 +02:00
Marc Rousavy
45fad5ab19 fix: Add more logs 2021-06-29 10:36:39 +02:00
Marc Rousavy
359fd00c73 fix: print stacktrace on error 2021-06-29 10:34:48 +02:00
Marc Rousavy
fe745cc296 chore: release 2.4.2-beta.6 2021-06-29 10:21:06 +02:00
Marc Rousavy
f1a5ee7ee1 fix: Log errors in update and configureSession 2021-06-29 10:18:39 +02:00
Marc Rousavy
f07f4a8770 fix: Correctly propagate Errors in configureSession() 2021-06-29 10:16:38 +02:00
Marc Rousavy
f80e606c6d fix: Report all errors to JS in configureSession 2021-06-29 10:14:33 +02:00
Marc Rousavy
a591cea809 chore: Also run CI on android-npm changes 2021-06-29 09:22:05 +02:00
Marc Rousavy
1a78fc9550 chore: release 2.4.2-beta.5 2021-06-29 09:07:14 +02:00
Marc Rousavy
9b645a886e fix: Fix unset Frame Processor not being called 2021-06-29 09:05:18 +02:00
Marc Rousavy
5275b1e49c chore: release 2.4.2-beta.4 2021-06-28 20:59:22 +02:00
Marc Rousavy
d0764ada79 Update Podfile.lock 2021-06-28 20:51:12 +02:00
Marc Rousavy
f1a93664ae perf: clean up delay code 2021-06-28 20:50:35 +02:00
Marc Rousavy
da84a0fd42 perf: Avoid error message copying 2021-06-28 20:45:08 +02:00
Marc Rousavy
4bacee796a feat: Print Frame Processor errors to Metro console 2021-06-28 20:44:50 +02:00
Marc Rousavy
0bbb03df90 Update Camera.tsx 2021-06-28 20:41:50 +02:00
Marc Rousavy
2f95ecc67f fix: Delay frame processor setting on Android by 300ms 2021-06-28 20:39:16 +02:00
Marc Rousavy
4baf58429c fix: Run setFrameProcessor after interactions have completed 2021-06-28 20:30:16 +02:00
Marc Rousavy
26d19d5152 perf: Remove a few unnecessary log statements 2021-06-28 18:30:42 +02:00
Marc Rousavy
0f0f1fbb07
fix: React Native 0.65 compatibility (#230)
* Update Hermes Header import for RN 0.65

* Update VisionCamera.podspec
2021-06-28 18:27:03 +02:00
Marc Rousavy
d8644ffe81 chore: release 2.4.2-beta.3 2021-06-28 18:20:44 +02:00
Marc Rousavy
b10b2c10fc fix: Frame Processor not setting on first render 2021-06-28 18:18:35 +02:00
Marc Rousavy
53338fac71
Update package.json 2021-06-28 17:31:53 +02:00
Marc Rousavy
cca9414e6b chore: release 2.4.2-beta.2 2021-06-28 17:30:53 +02:00
Marc Rousavy
9dad027b41
fix: Fix autolinking for android (#231)
* Create `react-native.config.js`

* Update react-native.config.js

* Create dummy CameraPackage as proxy for CLI
2021-06-28 17:27:24 +02:00
Marc Rousavy
08d04d1be1 docs: Update documentation titles 2021-06-28 15:56:49 +02:00
Marc Rousavy
7dddc0ae44
Update README.md 2021-06-28 13:54:16 +02:00