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
unsigned int request_id;
unsigned int face_request_id;
int is_360;
+ int stitched_info;
int extract_flag;
#ifdef _USE_SENIOR_MODE
char* contact;
#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"
/* 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, 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, stitched_info, 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, 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, stitched_info, extract_flag, modified_date"
#endif
/*Folder info*/
_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));
_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
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;
media_content_error("error when get info : [%d]", ret);
media_content_debug("is_drm : [%d]", b_value);
- ret = media_info_is_360(media, &b_value);
+ ret = media_info_is_360_content(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");