-
-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;
-}