Revert "add stitched info field." 25/103125/1 accepted/tizen/common/20161208.135234 accepted/tizen/ivi/20161208.013117 accepted/tizen/mobile/20161208.013022 accepted/tizen/tv/20161208.013054 accepted/tizen/wearable/20161208.013105 submit/tizen/20161207.232858
authorYong Yeon Kim <yy9875.kim@samsung.com>
Mon, 5 Dec 2016 09:45:23 +0000 (01:45 -0800)
committerJiyong Min <jiyong.min@samsung.com>
Wed, 7 Dec 2016 09:36:57 +0000 (01:36 -0800)
This reverts commit 5bf4cf203d6919d9efa96981d873a3239eeac747.

Change-Id: Ib981ed64b93feb6b401b92cd3511f92f6b020a55
(cherry picked from commit e389dd75c1e6715e25bb726b9662b749eece30b7)

include_product/media_info.h
include_product/media_info_private.h
packaging/capi-content-media-content.spec
src/media_content.c
src/media_info.c
test/media-content_test.c

index a1d1202..e9f6ecf 100755 (executable)
@@ -1074,9 +1074,6 @@ int media_info_is_drm(media_info_h media, bool *is_drm);
  */
 int media_info_is_360_content(media_info_h media, bool *is_360);
 
-int media_info_get_360_stitched_content(media_info_h media, int *type_360);
-int media_info_get_360_engine_content(media_info_h media, int *type_360);
-
 /**
  * @brief Gets the storage type of media info.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
index e766540..e1f79c3 100755 (executable)
@@ -131,7 +131,6 @@ typedef enum {
        MEDIA_INFO_SYNC_STATUS,
        MEDIA_INFO_STORAGE_UUID,
        MEDIA_INFO_IS_360,
-       MEDIA_INFO_STITCHED_INFO,
        MEDIA_INFO_EXTRACT_FLAG,
        MEDIA_INFO_MODIFIED_MONTH,
 #ifdef _USE_SENIOR_MODE
@@ -330,7 +329,6 @@ typedef struct {
        unsigned int request_id;
        unsigned int face_request_id;
        int is_360;
-       int stitched_info;
        int extract_flag;
 #ifdef _USE_SENIOR_MODE
        char* contact;
@@ -579,7 +577,6 @@ typedef struct _media_content_cb_data {
 #define DB_FIELD_MEDIA_AGE_RATING_PINYIN                       "age_rating_pinyin"
 #define DB_FIELD_MEDIA_KEYWORD_PINYIN                          "keyword_pinyin"
 #define DB_FIELD_MEDIA_360                                                     "is_360"
-#define DB_FIELD_MEDIA_STITCHED_INFO                           "stitched_info"
 #ifdef _USE_SENIOR_MODE
 #define DB_FIELD_MEDIA_CONTACT                 "contact"
 #define DB_FIELD_MEDIA_APP_DATA                        "app_data"
@@ -745,10 +742,10 @@ typedef struct _media_content_cb_data {
 /* Get Media list of Group */
 #ifdef _USE_SENIOR_MODE
 #define MEDIA_INFO_ITEM "media_uuid, path, file_name, media_type, mime_type, size, added_time, modified_time, thumbnail_path, description, \
-                                                       rating, favourite, author, provider, content_name, category, location_tag, age_rating, keyword, is_drm, storage_type, longitude, latitude, altitude, exposure_time, fnumber, iso, model, width, height, datetaken, orientation, title, album, artist, album_artist, genre, composer, year, recorded_date, copyright, track_num, bitrate, bitpersample, duration, played_count, last_played_time, last_played_position, samplerate, channel, burst_id, timeline, weather, sync_status, storage_uuid, is_360, stitched_info, extract_flag, modified_date, contact, app_data"
+                                                       rating, favourite, author, provider, content_name, category, location_tag, age_rating, keyword, is_drm, storage_type, longitude, latitude, altitude, exposure_time, fnumber, iso, model, width, height, datetaken, orientation, title, album, artist, album_artist, genre, composer, year, recorded_date, copyright, track_num, bitrate, bitpersample, duration, played_count, last_played_time, last_played_position, samplerate, channel, burst_id, timeline, weather, sync_status, storage_uuid, is_360, extract_flag, modified_date, contact, app_data"
 #else
 #define MEDIA_INFO_ITEM "media_uuid, path, file_name, media_type, mime_type, size, added_time, modified_time, thumbnail_path, description, \
-                                                       rating, favourite, author, provider, content_name, category, location_tag, age_rating, keyword, is_drm, storage_type, longitude, latitude, altitude, exposure_time, fnumber, iso, model, width, height, datetaken, orientation, title, album, artist, album_artist, genre, composer, year, recorded_date, copyright, track_num, bitrate, bitpersample, duration, played_count, last_played_time, last_played_position, samplerate, channel, burst_id, timeline, weather, sync_status, storage_uuid, is_360, stitched_info, extract_flag, modified_date"
+                                                       rating, favourite, author, provider, content_name, category, location_tag, age_rating, keyword, is_drm, storage_type, longitude, latitude, altitude, exposure_time, fnumber, iso, model, width, height, datetaken, orientation, title, album, artist, album_artist, genre, composer, year, recorded_date, copyright, track_num, bitrate, bitpersample, duration, played_count, last_played_time, last_played_position, samplerate, channel, burst_id, timeline, weather, sync_status, storage_uuid, is_360, extract_flag, modified_date"
 #endif
 
 /*Folder info*/
index 1149da8..3bca763 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-content-media-content
 Summary:    A Media content library in Tizen Native API
-Version:    0.2.92
+Version:    0.2.91
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index dbf8353..d0175f9 100755 (executable)
@@ -294,11 +294,6 @@ static int __media_content_create_attr_handle(void)
        ret = _media_filter_attribute_add(g_attr_handle, MEDIA_360, DB_FIELD_MEDIA_360);
        media_content_retv_if(ret != MEDIA_CONTENT_ERROR_NONE, ret);
 
-#ifdef _USE_TV_PROFILE
-       ret = _media_filter_attribute_add(g_attr_handle, MEDIA_STITCHED_INFO, DB_FIELD_MEDIA_STITCHED_INFO);
-       media_content_retv_if(ret != MEDIA_CONTENT_ERROR_NONE, ret);
-#endif
-
        /* Storage*/
        ret = _media_filter_attribute_add(g_attr_handle, MEDIA_STORAGE_ID, DB_FIELD_STORAGE_ID);
        media_content_retv_if(ret != MEDIA_CONTENT_ERROR_NONE, ret);
index a3bc321..39f7435 100755 (executable)
@@ -309,9 +309,6 @@ void _media_info_item_get_detail(sqlite3_stmt* stmt, media_info_h media)
        _media->sync_status = (int)sqlite3_column_int(stmt, MEDIA_INFO_SYNC_STATUS);
        _media->storage_uuid = g_strdup((const char *)sqlite3_column_text(stmt, MEDIA_INFO_STORAGE_UUID));
        _media->is_360 = (int)sqlite3_column_int(stmt, MEDIA_INFO_IS_360);
-#ifdef _USE_TV_PROFILE
-       _media->stitched_info = (int)sqlite3_column_int(stmt, MEDIA_INFO_STITCHED_INFO);
-#endif
 
        if (_media->media_type == MEDIA_CONTENT_TYPE_IMAGE) {
                _media->image_meta = (image_meta_s *)calloc(1, sizeof(image_meta_s));
@@ -1079,7 +1076,6 @@ int media_info_clone(media_info_h *dst, media_info_h src)
                _dst->face_request_id = _src->face_request_id;
                _dst->is_360 = _src->is_360;
 #ifdef _USE_TV_PROFILE
-               _dst->stitched_info = _src->stitched_info;
                _dst->extract_flag = _src->extract_flag;
 #endif
 
@@ -2134,40 +2130,6 @@ int media_info_is_360_content(media_info_h media, bool *is_360)
        return ret;
 }
 
-#ifdef _USE_TV_PROFILE
-int media_info_get_stitched_state(media_info_h media, int *stitched_info)
-{
-       int ret = MEDIA_CONTENT_ERROR_NONE;
-       media_info_s *_media = (media_info_s*)media;
-
-       if (_media) {
-               *stitched_info = (_media->stitched_info & 0xFFFF0000) >> 16;
-               ret = MEDIA_CONTENT_ERROR_NONE;
-       } else {
-               media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
-               ret = MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
-       }
-
-       return ret;
-}
-
-int media_info_get_stitched_engine(media_info_h media, int *stitched_info)
-{
-       int ret = MEDIA_CONTENT_ERROR_NONE;
-       media_info_s *_media = (media_info_s*)media;
-
-       if (_media) {
-               *stitched_info = _media->stitched_info & 0x0000FFFF;
-               ret = MEDIA_CONTENT_ERROR_NONE;
-       } else {
-               media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
-               ret = MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
-       }
-
-       return ret;
-}
-#endif
-
 int media_info_get_storage_type(media_info_h media, media_content_storage_e *storage_type)
 {
        int ret = MEDIA_CONTENT_ERROR_NONE;
index 9c1be5c..b6b830d 100755 (executable)
@@ -500,21 +500,11 @@ bool media_item_cb(media_info_h media, void *user_data)
                media_content_error("error when get info : [%d]", ret);
        media_content_debug("is_drm : [%d]", b_value);
 
-       ret = media_info_is_360_content(media, &b_value);
+       ret = media_info_is_360(media, &b_value);
        if (ret != MEDIA_CONTENT_ERROR_NONE)
                media_content_error("error when get info : [%d]", ret);
        media_content_debug("is_360 : [%d]", b_value);
 
-       ret = media_info_get_stitched_state(media, &i_value);
-       if (ret != MEDIA_CONTENT_ERROR_NONE)
-               media_content_error("error when get info : [%d]", ret);
-       media_content_debug("360 stitched : [%d]", i_value);
-
-       ret = media_info_get_stitched_engine(media, &i_value);
-       if (ret != MEDIA_CONTENT_ERROR_NONE)
-               media_content_error("error when get info : [%d]", ret);
-       media_content_debug("360 engine : [%d]", i_value);
-
        ret = media_info_set_weather(media, "Sunny");
        if (ret != MEDIA_CONTENT_ERROR_NONE) {
                media_content_error("Fail to set weather");