unsigned char in[64];
} MD5_CTX;
-extern void media_thumb_MD5Init(MD5_CTX *context);
-extern void media_thumb_MD5Update(MD5_CTX *context,unsigned char const *buf,unsigned len);
-extern void media_thumb_MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
-extern void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
+extern void media_thumb_MD5Init(MD5_CTX *context);
+extern void media_thumb_MD5Update(MD5_CTX *context, unsigned char const *buf, unsigned len);
+extern void media_thumb_MD5Final(unsigned char digest[MD5_HASHBYTES], MD5_CTX *context);
+extern void MD5Transform(uint32_t buf[4], uint32_t const in[16]);
#endif
md5out[2 * n] = '\0';
return md5out;
-}
\ No newline at end of file
+}
} while (0)
#define thumb_retv_if(expr, val) do { \
if (expr) { \
- LOGE(FONT_COLOR_RED""FONT_COLOR_RESET); \
+ LOGE(FONT_COLOR_RED""FONT_COLOR_RESET); \
return (val); \
} \
} while (0)
thumb_req->path = g_strdup(origin_path);
thumb_req->userData = userData;
thumb_req->isCanceled = false;
- thumb_req->isRequested= false;
+ thumb_req->isRequested = false;
thumb_req->request_id = request_id;
thumb_req->uid = uid;
thumb_req->height = height;
thumb_req->userData = userData;
thumb_req->isCanceled = false;
- thumb_req->isRequested= false;
+ thumb_req->isRequested = false;
thumb_req->uid = uid;
len = g_queue_get_length(g_manage_raw_queue);
_media_thumb_get_file_ext(file_full_path, file_ext, sizeof(file_ext));
ret = ms_user_get_storage_type(uid, file_full_path, &storage_type);
- if((ret != MS_MEDIA_ERR_NONE) || ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL))) {
+ if ((ret != MS_MEDIA_ERR_NONE) || ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL))) {
thumb_err_slog("origin path(%s) is invalid. err : [%d] storage_type [%d]", file_full_path, ret, storage_type);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
ms_user_storage_type_e store_type = -1;
err = ms_user_get_storage_type(uid, origin_path, &store_type);
- if((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
+ if ((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
thumb_err_slog("origin path(%s) is invalid. err : [%d] store_type [%d]", origin_path, err, store_type);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
ms_user_storage_type_e store_type = -1;
err = ms_user_get_storage_type(uid, origin_path, &store_type);
- if((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
+ if ((err != MS_MEDIA_ERR_NONE) || ((store_type != MS_USER_STORAGE_INTERNAL) && (store_type != MS_USER_STORAGE_EXTERNAL))) {
thumb_err_slog("origin path(%s) is invalid. err : [%d] store_type [%d]", origin_path, err, store_type);
return MS_MEDIA_ERR_INVALID_PARAMETER;
}
thumb_dbg("time [%s: %s] : %f", func_name, time_string, totaltime);
#endif
}
-#endif
\ No newline at end of file
+#endif