"Fossies" - the Fresh Open Source Software Archive  

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

GridImageItemJNI.cpp  (heif-3.6.0):GridImageItemJNI.cpp  (heif-3.6.1)
skipping to change at line 27 skipping to change at line 27
#include "GridImageItem.h" #include "GridImageItem.h"
#include "Helpers.h" #include "Helpers.h"
#define CLASS_NAME GridImageItem #define CLASS_NAME GridImageItem
extern "C" extern "C"
{ {
JNI_METHOD_ARG(jlong, createContextNative, jobject javaHEIF) JNI_METHOD_ARG(jlong, createContextNative, jobject javaHEIF)
{ {
UNUSED(self); UNUSED(self);
NATIVE_HEIF(nativeHeif, javaHEIF); NATIVE_HEIF(nativeHeif, javaHEIF);
auto *nativeObject = new HEIFPP::GridImageItem(nativeHeif); auto* nativeObject = new HEIFPP::GridImageItem(nativeHeif);
return reinterpret_cast<jlong>(nativeObject); return reinterpret_cast<jlong>(nativeObject);
} }
JNI_METHOD_ARG(void, resizeNative, jint width, jint height) JNI_METHOD_ARG(void, resizeNative, jint width, jint height)
{ {
NATIVE_SELF; NATIVE_SELF;
nativeSelf->resize(static_cast<uint32_t>(width), static_cast<uint32_t>(h eight)); nativeSelf->resize(static_cast<uint32_t>(width), static_cast<uint32_t>(h eight));
} }
JNI_METHOD(jint, getColumnCountNative) JNI_METHOD(jint, getColumnCountNative)
skipping to change at line 53 skipping to change at line 53
JNI_METHOD(jint, getRowCountNative) JNI_METHOD(jint, getRowCountNative)
{ {
NATIVE_SELF; NATIVE_SELF;
return static_cast<jint>(nativeSelf->rows()); return static_cast<jint>(nativeSelf->rows());
} }
JNI_METHOD_ARG(jobject, getImageNative, jint column, jint row) JNI_METHOD_ARG(jobject, getImageNative, jint column, jint row)
{ {
NATIVE_SELF; NATIVE_SELF;
HEIFPP::ImageItem *imageItem = nullptr; HEIFPP::ImageItem* imageItem = nullptr;
CHECK_ERROR(nativeSelf->getImage(static_cast<uint32_t>(column), static_c ast<uint32_t>(row), imageItem), CHECK_ERROR(nativeSelf->getImage(static_cast<uint32_t>(column), static_c ast<uint32_t>(row), imageItem),
"getImage failed"); "getImage failed");
return imageItem ? GET_JAVA_ITEM(imageItem) : nullptr; return imageItem ? GET_JAVA_ITEM(imageItem) : nullptr;
} }
JNI_METHOD_ARG(void, setImageNative, jint column, jint row, jobject image) JNI_METHOD_ARG(void, setImageNative, jint column, jint row, jobject image)
{ {
NATIVE_SELF; NATIVE_SELF;
NATIVE_IMAGE_ITEM(nativeImage, image); NATIVE_IMAGE_ITEM(nativeImage, image);
CHECK_ERROR(nativeSelf->setImage(static_cast<uint32_t>(column), static_c ast<uint32_t>(row), nativeImage), CHECK_ERROR(nativeSelf->setImage(static_cast<uint32_t>(column), static_c ast<uint32_t>(row), nativeImage),
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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