Remove the feature checker for face APIs 05/319705/1
authorMinje Ahn <minje.ahn@samsung.com>
Sun, 16 Feb 2025 23:58:52 +0000 (08:58 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Sun, 16 Feb 2025 23:58:52 +0000 (08:58 +0900)
Face related APIs are internal APIs now.
Therefore, feature verification is no longer necessary.

Change-Id: Iaa2b6eb3d1b770fbfa272a3778f5d2ac5c030efb
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/capi-content-media-content.spec
src/media_info.c

index cf9c4bd06ba9d1725865070f9afb4e883a79c913..6c64be25933c16c699139fa590343c34d049e026 100644 (file)
@@ -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
index 006ed87eb2594707c2ec9f555e101e6f258c1ced..bf532e299fd2c3dd5712a20abdf29bc08abc720e 100644 (file)
@@ -17,7 +17,6 @@
 #include <media_info.h>
 #include <media_info_private.h>
 #include <media_util_private.h>
-#include <system_info.h>
 
 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);