Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/augmented_image_c/app/src/main/cpp/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ bool LoadImageFromAssetManager(const std::string& path, int* out_width,
ANDROID_BITMAP_RESULT_SUCCESS);

// Copy jvm_buffer_address to pixel_buffer_address
int32_t total_size_in_byte = bitmap_info.stride * bitmap_info.width;
int32_t total_size_in_byte = bitmap_info.stride * bitmap_info.height;
*out_pixel_buffer = new uint8_t[total_size_in_byte];
memcpy(*out_pixel_buffer, jvm_buffer, total_size_in_byte);

Expand Down