"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "srcs/api-java/cpp/MimeItemJNI.cpp" between
heif-3.6.0.tar.gz and heif-3.6.1.tar.gz

About: HEIF (High Efficiency Image File Format) is a visual media container format for images and image sequences (MPEG-standard). This HEIF engine demonstrates its powerful features and capabilities (under Nokia HEIF license).

MimeItemJNI.cpp  (heif-3.6.0):MimeItemJNI.cpp  (heif-3.6.1)
skipping to change at line 27 skipping to change at line 27
#include "Helpers.h" #include "Helpers.h"
#include "MimeItem.h" #include "MimeItem.h"
#define CLASS_NAME MimeItem #define CLASS_NAME MimeItem
extern "C" extern "C"
{ {
JNI_METHOD(jobject, getItemDataNative) JNI_METHOD(jobject, getItemDataNative)
{ {
NATIVE_SELF; NATIVE_SELF;
return env->NewDirectByteBuffer(const_cast<uint8_t *>(nativeSelf->getDat a()), return env->NewDirectByteBuffer(const_cast<uint8_t*>(nativeSelf->getData ()),
static_cast<jlong>(nativeSelf->getDataSi ze())); static_cast<jlong>(nativeSelf->getDataSi ze()));
} }
JNI_METHOD_ARG(void, setItemDataNative, jbyteArray data) JNI_METHOD_ARG(void, setItemDataNative, jbyteArray data)
{ {
NATIVE_SELF; NATIVE_SELF;
jbyte *nativeData = env->GetByteArrayElements(data, nullptr); jbyte* nativeData = env->GetByteArrayElements(data, nullptr);
nativeSelf->setData((uint8_t *) nativeData, static_cast<uint64_t>(env->G nativeSelf->setData((uint8_t*) nativeData, static_cast<uint64_t>(env->Ge
etArrayLength(data))); tArrayLength(data)));
env->ReleaseByteArrayElements(data, nativeData, 0); env->ReleaseByteArrayElements(data, nativeData, 0);
} }
} }
 End of changes. 2 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)