X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fmedia_image.c;h=592a2a33a599efd2455c6d58d69c64831e03c5ac;hb=9d15701e2caada225fd93cd0b4b14fee53a9263d;hp=b114c1221112d1912d78fda6f23bb24ede4cf17c;hpb=c9a986357ca34d8f7baf9775f791b180e4bad81a;p=platform%2Fcore%2Fapi%2Fmedia-content.git diff --git a/src/media_image.c b/src/media_image.c index b114c12..592a2a3 100755 --- a/src/media_image.c +++ b/src/media_image.c @@ -114,9 +114,10 @@ int image_meta_get_date_taken(image_meta_h image, char **date_taken) return MEDIA_CONTENT_ERROR_NONE; } - +// LCOV_EXCL_START int image_meta_get_exposure_time(image_meta_h image, char **exposure_time) { + content_warn("DEPRECATION WARNING: image_meta_get_exposure_time() is deprecated and will be removed from next release."); image_meta_s *_image = (image_meta_s*)image; content_retip_if_fail(image); @@ -129,6 +130,7 @@ int image_meta_get_exposure_time(image_meta_h image, char **exposure_time) int image_meta_get_fnumber(image_meta_h image, double *fnumber) { + content_warn("DEPRECATION WARNING: image_meta_get_fnumber() is deprecated and will be removed from next release."); image_meta_s *_image = (image_meta_s*)image; content_retip_if_fail(image); @@ -141,6 +143,7 @@ int image_meta_get_fnumber(image_meta_h image, double *fnumber) int image_meta_get_iso(image_meta_h image, int *iso) { + content_warn("DEPRECATION WARNING: image_meta_get_iso() is deprecated and will be removed from next release."); image_meta_s *_image = (image_meta_s*)image; content_retip_if_fail(image); @@ -153,6 +156,7 @@ int image_meta_get_iso(image_meta_h image, int *iso) int image_meta_get_model(image_meta_h image, char **model) { + content_warn("DEPRECATION WARNING: image_meta_get_model() is deprecated and will be removed from next release."); image_meta_s *_image = (image_meta_s*)image; content_retip_if_fail(image); @@ -162,41 +166,4 @@ int image_meta_get_model(image_meta_h image, char **model) return MEDIA_CONTENT_ERROR_NONE; } - -int image_meta_set_orientation(image_meta_h image, media_content_orientation_e orientation) -{ - content_warn("DEPRECATION WARNING: image_meta_set_orientation() is deprecated and will be removed from next release."); - image_meta_s *_image = (image_meta_s*)image; - - content_retip_if_fail(image); - content_retvm_if(orientation < MEDIA_CONTENT_ORIENTATION_NOT_AVAILABLE || orientation > MEDIA_CONTENT_ORIENTATION_ROT_270, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid orientation"); - - _image->orientation = orientation; - - return MEDIA_CONTENT_ERROR_NONE; -} - -int image_meta_update_to_db(image_meta_h image) -{ - int ret = MEDIA_CONTENT_ERROR_NONE; - content_warn("DEPRECATION WARNING: image_meta_update_to_db() is deprecated and will be removed from next release."); - image_meta_s *_image = (image_meta_s*)image; - char *sql = NULL; - - content_retip_if_fail(image); - content_retip_if_fail(STRING_VALID(_image->media_id)); - -#ifdef _USE_TVPD_MODE - char *storage_id = NULL; - ret = _media_db_get_storage_id_by_media_id(_image->media_id, &storage_id); - content_retv_if(ret != MEDIA_CONTENT_ERROR_NONE, ret); - sql = sqlite3_mprintf(UPDATE_IMAGE_META_FROM_MEDIA, storage_id, _image->orientation, _image->media_id); - g_free(storage_id); -#else - sql = sqlite3_mprintf(UPDATE_IMAGE_META_FROM_MEDIA, _image->orientation, _image->media_id); -#endif - ret = _content_query_sql(sql); - SQLITE3_SAFE_FREE(sql); - - return ret; -} +// LCOV_EXCL_STOP \ No newline at end of file