feat: Make Frame thread-safe and improve error messages (#2327)

* fix: Fix multi-Thread access on Java

* fix: Thread-lock access on iOS as well

* whoops add missing header impl

* Update Podfile.lock

* fix: Don't use `CFGetRetainCount`

* fix: Lock access on iOS as well

* C++ format

* More detailed error

* chore: Move getters into `Frame`

* Format c++

* Use enum `orientation` again

* format

* fix: Synchronize `isValid` on Java

* Also log pixelformat

* feat: Use Java enums in C++

* Format C++
This commit is contained in:
Marc Rousavy
2023-12-29 14:09:56 +01:00
committed by GitHub
parent e4393cd83a
commit 895f3ec889
14 changed files with 338 additions and 114 deletions

View File

@@ -10,6 +10,7 @@
#import <CoreMedia/CMSampleBuffer.h>
#import <jsi/jsi.h>
#import <mutex>
#import "Frame.h"
@@ -25,4 +26,11 @@ public:
public:
Frame* frame;
private:
Frame* getFrame();
private:
std::mutex _mutex;
size_t _refCount = 0;
};