assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = image_util_decode_set_output_buffer(jpeg_decode_h, &data);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
- ret = image_util_decode_run(jpeg_decode_h, NULL, NULL, NULL);
+ ret = image_util_decode_run(jpeg_decode_h, &image_width, &image_height, &image_size);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
if (data) {
free(data);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = image_util_decode_set_output_buffer(png_decode_h, &data);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
- ret = image_util_decode_run(png_decode_h, NULL, NULL, NULL);
+ ret = image_util_decode_run(png_decode_h, &image_width, &image_height, &image_size);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
if (data) {
free(data);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = image_util_decode_set_output_buffer(gif_decode_h, &data);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
- ret = image_util_decode_run(gif_decode_h, NULL, NULL, NULL);
+ ret = image_util_decode_run(gif_decode_h, &image_width, &image_height, &image_size);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
if (data) {
free(data);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = image_util_decode_set_output_buffer(bmp_decode_h, &data);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
- ret = image_util_decode_run(bmp_decode_h, NULL, NULL, NULL);
+ ret = image_util_decode_run(bmp_decode_h, &image_width, &image_height, &image_size);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
if (data) {
free(data);
int utc_image_util_encode_run_p3(void)
{
int ret;
+ unsigned long long size = 0;
ret = fill_jpeg_decoded_encoded_buffer();
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = image_util_encode_set_output_path(jpeg_encode_h, jpeg_path2);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
- ret = image_util_encode_run(jpeg_encode_h, NULL);
+ ret = image_util_encode_run(jpeg_encode_h, &size);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = fill_png_decoded_encoded_buffer();
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = image_util_encode_set_output_path(png_encode_h, png_path2);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
- ret = image_util_encode_run(png_encode_h, NULL);
+ ret = image_util_encode_run(png_encode_h, &size);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = fill_gif_decoded_encoded_buffer();
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = image_util_encode_set_output_path(gif_encode_h, gif_path2);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
- ret = image_util_encode_run(gif_encode_h, NULL);
+ ret = image_util_encode_run(gif_encode_h, &size);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = fill_bmp_decoded_encoded_buffer();
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = image_util_encode_set_output_path(bmp_encode_h, bmp_path2);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
- ret = image_util_encode_run(bmp_encode_h, NULL);
+ ret = image_util_encode_run(bmp_encode_h, &size);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
return 0;
int utc_image_util_encode_run_p4(void)
{
int ret;
+ unsigned long long size = 0;
ret = fill_gif_decoded_encoded_buffer();
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
ret = image_util_encode_set_output_path(gif_encode_h, gif_path2);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
- ret = image_util_encode_run(gif_encode_h, NULL);
+ ret = image_util_encode_run(gif_encode_h, &size);
assert_eq(ret, IMAGE_UTIL_ERROR_NONE);
return 0;