fix: Fix JByteBuffer
This commit is contained in:
parent
521d7c8ccf
commit
3a0d7b3c91
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#include <fbjni/fbjni.h>
|
#include <fbjni/fbjni.h>
|
||||||
|
#include <fbjni/ByteBuffer.h>
|
||||||
|
|
||||||
namespace vision {
|
namespace vision {
|
||||||
|
|
||||||
@ -61,7 +62,6 @@ local_ref<JByteBuffer> JFrame::toByteBuffer() const {
|
|||||||
static const auto toByteBufferMethod = getClass()->getMethod<JByteBuffer()>("toByteBuffer");
|
static const auto toByteBufferMethod = getClass()->getMethod<JByteBuffer()>("toByteBuffer");
|
||||||
return toByteBufferMethod(self());
|
return toByteBufferMethod(self());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void JFrame::incrementRefCount() {
|
void JFrame::incrementRefCount() {
|
||||||
static const auto incrementRefCountMethod = getClass()->getMethod<void()>("incrementRefCount");
|
static const auto incrementRefCountMethod = getClass()->getMethod<void()>("incrementRefCount");
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#include <fbjni/fbjni.h>
|
#include <fbjni/fbjni.h>
|
||||||
|
#include <fbjni/ByteBuffer.h>
|
||||||
|
|
||||||
namespace vision {
|
namespace vision {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user