// // Created by Marc on 21.07.2023. // #pragma once #include #include #include namespace vision { using namespace facebook; using namespace jni; struct JFrame : public JavaClass { static constexpr auto kJavaDescriptor = "Lcom/mrousavy/camera/frameprocessor/Frame;"; public: int getWidth() const; int getHeight() const; bool getIsValid() const; bool getIsMirrored() const; int getPlanesCount() const; int getBytesPerRow() const; jlong getTimestamp() const; local_ref getOrientation() const; local_ref getPixelFormat() const; #if __ANDROID_API__ >= 26 AHardwareBuffer* getHardwareBuffer() const; #endif void incrementRefCount(); void decrementRefCount(); void close(); }; } // namespace vision