* @see image_util_decode_run_async()
* @see image_util_decode_destroy()
*/
-int image_util_decode_set_colorspace(image_util_encode_h handle, image_util_colorspace_e colorspace);
+int image_util_decode_set_colorspace(image_util_decode_h handle, image_util_colorspace_e colorspace);
/**
* @brief Sets the downscale value at which JPEG image should be decoded.
* @see image_util_decode_run_async()
* @see image_util_decode_destroy()
*/
-int image_util_decode_set_jpeg_downscale(image_util_encode_h handle, image_util_scale_e down_scale);
+int image_util_decode_set_jpeg_downscale(image_util_decode_h handle, image_util_scale_e down_scale);
/**
* @brief Starts decoding of the image and fills the output buffer set using image_util_decode_set_output_buffer().
* @post image_util_encode_frame_destroy()
* @see image_util_encode_frame_destroy()
*/
-int image_util_frame_create(void *decode_encode_h, image_util_frame_h *frame_h);
+int image_util_frame_create(image_util_encode_h handle, image_util_frame_h *frame_h);
/**
* @internal
return IMAGE_UTIL_ERROR_NONE;
}
-int image_util_decode_set_colorspace(image_util_encode_h handle, image_util_colorspace_e colorspace)
+int image_util_decode_set_colorspace(image_util_decode_h handle, image_util_colorspace_e colorspace)
{
decode_s *_handle = (decode_s *) handle;
return IMAGE_UTIL_ERROR_NONE;
}
-int image_util_decode_set_jpeg_downscale(image_util_encode_h handle, image_util_scale_e down_scale)
+int image_util_decode_set_jpeg_downscale(image_util_decode_h handle, image_util_scale_e down_scale)
{
decode_s *_handle = (decode_s *) handle;
return _image_error_capi(ERR_TYPE_TRANSFORM, err);
}
-int image_util_frame_create(void *decode_encode_h, image_util_frame_h *frame_h)
+int image_util_frame_create(image_util_encode_h handle, image_util_frame_h *frame_h)
{
int ret = MM_UTIL_ERROR_NONE;
- image_util_retvm_if((decode_encode_h == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
+ image_util_retvm_if((handle == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
image_util_retvm_if((frame_h == NULL), IMAGE_UTIL_ERROR_INVALID_PARAMETER, "Invalid Handle");
- encode_s *image = (encode_s *)decode_encode_h;
+ encode_s *image = (encode_s *)handle;
image_util_retvm_if((image->image_h == NULL), IMAGE_UTIL_ERROR_INVALID_OPERATION, "The image handle is wrong");
frame_s *frame = calloc(1, sizeof(frame_s));