1 /*
2  * Copyright (C) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef MEDIALIBRARY_VISION_COLUMN_H
17 #define MEDIALIBRARY_VISION_COLUMN_H
18 
19 #include "media_column.h"
20 #include "userfile_manager_types.h"
21 #include "userfilemgr_uri.h"
22 
23 namespace OHOS {
24 namespace Media {
25 // table name
26 const std::string VISION_OCR_TABLE = "tab_analysis_ocr";
27 const std::string VISION_LABEL_TABLE = "tab_analysis_label";
28 const std::string VISION_VIDEO_LABEL_TABLE = "tab_analysis_video_label";
29 const std::string VISION_AESTHETICS_TABLE = "tab_analysis_aesthetics_score";
30 const std::string VISION_OBJECT_TABLE = "tab_analysis_object";
31 const std::string VISION_RECOMMENDATION_TABLE = "tab_analysis_recommendation";
32 const std::string VISION_SEGMENTATION_TABLE = "tab_analysis_segmentation";
33 const std::string VISION_COMPOSITION_TABLE = "tab_analysis_composition";
34 const std::string VISION_SALIENCY_TABLE = "tab_analysis_saliency_detect";
35 const std::string VISION_HEAD_TABLE = "tab_analysis_head";
36 const std::string VISION_POSE_TABLE = "tab_analysis_pose";
37 const std::string VISION_TOTAL_TABLE = "tab_analysis_total";
38 const std::string VISION_IMAGE_FACE_TABLE = "tab_analysis_image_face";
39 const std::string VISION_VIDEO_FACE_TABLE = "tab_analysis_video_face";
40 const std::string VISION_FACE_TAG_TABLE = "tab_analysis_face_tag";
41 const std::string ANALYSIS_ALBUM_TABLE = "AnalysisAlbum";
42 const std::string ANALYSIS_PHOTO_MAP_TABLE = "AnalysisPhotoMap";
43 const std::string ANALYSIS_ASSET_SD_MAP_TABLE = "tab_analysis_asset_sd_map";
44 const std::string ANALYSIS_ALBUM_ASSET_MAP_TABLE = "tab_analysis_album_asset_map";
45 // fake column for merge album
46 const std::string TARGET_ALBUM_ID = "target_album_id";
47 
48 const std::string URI_OCR = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_OCR;
49 const std::string URI_LABEL = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_LABEL;
50 const std::string URI_VIDEO_LABEL = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_VIDEO_LABEL;
51 const std::string URI_AESTHETICS = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_ATTS;
52 const std::string URI_TOTAL = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_TOTAL;
53 const std::string URI_SALIENCY = MEDIALIBRARY_DATA_URI + "/" + VISION_SALIENCY_TABLE;
54 const std::string URI_IMAGE_FACE = MEDIALIBRARY_DATA_URI + "/" + VISION_IMAGE_FACE_TABLE;
55 const std::string URI_VIDEO_FACE = MEDIALIBRARY_DATA_URI + "/" + VISION_VIDEO_FACE_TABLE;
56 const std::string URI_FACE_TAG = MEDIALIBRARY_DATA_URI + "/" + VISION_FACE_TAG_TABLE;
57 const std::string URI_OBJECT = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_OBJECT;
58 const std::string URI_RECOMMENDATION = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_RECOMMENDATION;
59 const std::string URI_SEGMENTATION = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_SEGMENTATION;
60 const std::string URI_COMPOSITION = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_COMPOSITION;
61 const std::string URI_HEAD = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_HEAD;
62 const std::string URI_POSE = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_POSE;
63 const std::string URI_MULTI_CROP = MEDIALIBRARY_DATA_URI + "/" + PAH_ANA_MULTI_CROP;
64 const std::string URI_ASSET_SD_MAP = MEDIALIBRARY_DATA_URI + "/" + ANALYSIS_ASSET_SD_MAP_TABLE;
65 const std::string URI_ALBUM_ASSET_MAP = MEDIALIBRARY_DATA_URI + "/" + ANALYSIS_ALBUM_ASSET_MAP_TABLE;
66 } // namespace Media
67 } // namespace OHOS
68 #endif // MEDIALIBRARY_VISION_COLUMN_H