From: Minje Ahn Date: Sun, 16 Feb 2025 23:58:52 +0000 (+0900) Subject: Remove the feature checker for face APIs X-Git-Tag: accepted/tizen/unified/20250218.161800~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d07dbd0455a1f85d07587bfb2ec94197feaf3e3;p=platform%2Fcore%2Fapi%2Fmedia-content.git Remove the feature checker for face APIs Face related APIs are internal APIs now. Therefore, feature verification is no longer necessary. Change-Id: Iaa2b6eb3d1b770fbfa272a3778f5d2ac5c030efb Signed-off-by: Minje Ahn --- diff --git a/packaging/capi-content-media-content.spec b/packaging/capi-content-media-content.spec index cf9c4bd..6c64be2 100644 --- a/packaging/capi-content-media-content.spec +++ b/packaging/capi-content-media-content.spec @@ -1,6 +1,6 @@ Name: capi-content-media-content Summary: A Media content library in Tizen Native API -Version: 0.6.3 +Version: 0.6.4 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_info.c b/src/media_info.c index 006ed87..bf532e2 100644 --- a/src/media_info.c +++ b/src/media_info.c @@ -17,7 +17,6 @@ #include #include #include -#include static void __media_info_insert_completed_cb(media_request_result_s *result, void *user_data); static int __media_info_insert_batch(const char **path_array, unsigned int array_length, media_insert_completed_cb completed_cb, void *user_data); @@ -46,21 +45,7 @@ static void __media_info_insert_completed_cb(media_request_result_s *result, voi g_free(_cb_data); } -// LCOV_EXCL_START -static bool __media_info_isFaceRecognition_feature_supported(void) -{ - bool isFaceRecognitionSupported = false; - - const int nRetVal = system_info_get_platform_bool("http://tizen.org/feature/vision.face_recognition", &isFaceRecognitionSupported); - if (nRetVal != SYSTEM_INFO_ERROR_NONE) { - content_debug("SYSTEM_INFO_ERROR: vision.face_recognition [%d]", nRetVal); - return false; - } - - return isFaceRecognitionSupported; -} -// LCOV_EXCL_STOP static int __media_info_insert_batch(const char **path_array, unsigned int array_length, media_insert_completed_cb completed_cb, @@ -1281,11 +1266,6 @@ int media_info_start_face_detection(media_info_h media, media_face_detection_com content_warn("DEPRECATION WARNING: media_info_start_face_detection() is deprecated and will be removed from next release."); media_info_s *_media = (media_info_s*)media; - if (!__media_info_isFaceRecognition_feature_supported()) { - content_error("NOT_SUPPORTED(0x%08x)", MEDIA_CONTENT_ERROR_NOT_SUPPORTED); - return MEDIA_CONTENT_ERROR_NOT_SUPPORTED; - } - content_retip_if_fail(media); content_retip_if_fail(STRING_VALID(_media->media_id)); content_retip_if_fail(STRING_VALID(_media->file_path)); @@ -1304,11 +1284,6 @@ int media_info_cancel_face_detection(media_info_h media) content_warn("DEPRECATION WARNING: media_info_cancel_face_detection() is deprecated and will be removed from next release."); media_info_s *_media = (media_info_s*)media; - if (!__media_info_isFaceRecognition_feature_supported()) { - content_error("NOT_SUPPORTED(0x%08x)", MEDIA_CONTENT_ERROR_NOT_SUPPORTED); - return MEDIA_CONTENT_ERROR_NOT_SUPPORTED; - } - content_retip_if_fail(media); content_retip_if_fail(STRING_VALID(_media->media_id)); content_retip_if_fail(_media->face_request_id > 0);