"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "srcs/api-java/cpp/CodedImageItemJNI.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).

CodedImageItemJNI.cpp  (heif-3.6.0):CodedImageItemJNI.cpp  (heif-3.6.1)
skipping to change at line 33 skipping to change at line 33
{ {
JNI_METHOD(jstring, getDecoderCodeTypeNative) JNI_METHOD(jstring, getDecoderCodeTypeNative)
{ {
NATIVE_SELF; NATIVE_SELF;
return env->NewStringUTF(nativeSelf->getDecoderCodeType().value); return env->NewStringUTF(nativeSelf->getDecoderCodeType().value);
} }
JNI_METHOD(jobject, getItemDataNative) JNI_METHOD(jobject, getItemDataNative)
{ {
NATIVE_SELF; NATIVE_SELF;
return env->NewDirectByteBuffer(const_cast<uint8_t *>(nativeSelf->getIte mData()), return env->NewDirectByteBuffer(const_cast<uint8_t*>(nativeSelf->getItem Data()),
static_cast<jlong>(nativeSelf->getItemDa taSize())); static_cast<jlong>(nativeSelf->getItemDa taSize()));
} }
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->setItemData((uint8_t *) (nativeData), static_cast<uint64_t>( nativeSelf->setItemData((uint8_t*) (nativeData), static_cast<uint64_t>(e
env->GetArrayLength(data))); nv->GetArrayLength(data)));
env->ReleaseByteArrayElements(data, nativeData, 0); env->ReleaseByteArrayElements(data, nativeData, 0);
} }
JNI_METHOD(jint, getBaseImageCountNative) JNI_METHOD(jint, getBaseImageCountNative)
{ {
NATIVE_SELF; NATIVE_SELF;
return static_cast<jint>(nativeSelf->getBaseImageCount()); return static_cast<jint>(nativeSelf->getBaseImageCount());
} }
JNI_METHOD_ARG(jobject, getBaseImageNative, jint index) JNI_METHOD_ARG(jobject, getBaseImageNative, jint index)
 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)