Home
last modified time | relevance | path

Searched refs:rootValue (Results 1 - 5 of 5) sorted by relevance

/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_device/
H A Ddmetadata_processor.cpp28 cJSON *rootValue = cJSON_Parse(sinkAbilityInfo.c_str()); in InitDCameraAbility() local
29 CHECK_NULL_RETURN_LOG(rootValue, FAILED, "The sinkAbilityInfo is null."); in InitDCameraAbility()
30 CHECK_OBJECT_FREE_RETURN(rootValue, FAILED, "The sinkAbilityInfo is not object."); in InitDCameraAbility()
31 cJSON *metaObj = cJSON_GetObjectItemCaseSensitive(rootValue, "MetaData"); in InitDCameraAbility()
33 cJSON_Delete(rootValue); in InitDCameraAbility()
58 cJSON_Delete(rootValue); in InitDCameraAbility()
66 cJSON_Delete(rootValue); in InitDCameraAbility()
75 cJSON_Delete(rootValue); in InitDCameraAbility()
160 cJSON *rootValue = cJSON_Parse(sinkAbilityInfo.c_str()); in GetInfoFromJson() local
161 CHECK_NULL_RETURN_LOG(rootValue, fals in GetInfoFromJson()
255 cJSON *rootValue = cJSON_Parse(sinkAbilityInfo.c_str()); InitDCameraOutputAbilityKeys() local
266 cJSON_GetArraySize(modeArray)) > JSON_ARRAY_MAX_SIZE, FAILED, rootValue, "modeArray create error."); InitDCameraOutputAbilityKeys() local
712 GetFormatObj(const std::string rootNode, cJSON* rootValue, std::string& formatStr) GetFormatObj() argument
731 GetEachNodeSupportedResolution(std::vector<int>& formats, const std::string rootNode, std::map<int, std::vector<DCResolution>>& supportedFormats, cJSON* rootValue) GetEachNodeSupportedResolution() argument
745 GetNodeSupportedResolution(int format, const std::string rootNode, std::map<int, std::vector<DCResolution>>& supportedFormats, cJSON* rootValue) GetNodeSupportedResolution() argument
808 cJSON *rootValue = cJSON_Parse(abilityInfo.c_str()); GetDCameraSupportedFormats() local
818 ParsePhotoFormats(cJSON* rootValue, std::map<int, std::vector<DCResolution>>& supportedFormats) ParsePhotoFormats() argument
846 ParsePreviewFormats(cJSON* rootValue, std::map<int, std::vector<DCResolution>>& supportedFormats) ParsePreviewFormats() argument
871 ParseVideoFormats(cJSON* rootValue, std::map<int, std::vector<DCResolution>>& supportedFormats) ParseVideoFormats() argument
[all...]
/drivers/peripheral/distributed_camera/hdi_service/include/dcamera_device/
H A Ddmetadata_processor.h68 void ParsePhotoFormats(cJSON* rootValue, std::map<int, std::vector<DCResolution>>& supportedFormats);
69 void ParsePreviewFormats(cJSON* rootValue, std::map<int, std::vector<DCResolution>>& supportedFormats);
70 void ParseVideoFormats(cJSON* rootValue, std::map<int, std::vector<DCResolution>>& supportedFormats);
73 std::map<int, std::vector<DCResolution>>& supportedFormats, cJSON* rootValue);
75 std::map<int, std::vector<DCResolution>>& supportedFormats, cJSON* rootValue);
84 cJSON* GetFormatObj(const std::string rootNode, cJSON* rootValue, std::string& formatStr);
/drivers/peripheral/distributed_camera/hdi_service/include/dstream_operator/
H A Ddstream_operator.h79 std::vector<DCEncodeType> ParseEncoderTypes(cJSON* rootValue);
80 DCamRetCode ParsePhotoFormats(cJSON* rootValue);
81 DCamRetCode ParsePreviewFormats(cJSON* rootValue);
82 DCamRetCode ParseVideoFormats(cJSON* rootValue);
114 void ExtractCameraAttr(cJSON* rootValue, std::vector<int>& formats, const std::string rootNode);
115 void GetCameraAttr(cJSON* rootValue, std::string formatStr, const std::string rootNode, int format);
116 cJSON* GetFormatObj(const std::string rootNode, cJSON* rootValue, std::string& formatStr);
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_provider/
H A Ddcamera_provider.cpp49 cJSON *rootValue = cJSON_Parse(abilityInfo.c_str()); in GetAbilityInfo() local
50 CHECK_NULL_RETURN_LOG(rootValue, false, "The abilityInfo is null."); in GetAbilityInfo()
51 CHECK_OBJECT_FREE_RETURN(rootValue, false, "The abilityInfo is not object."); in GetAbilityInfo()
53 cJSON *sinkRootValue = cJSON_GetObjectItemCaseSensitive(rootValue, "SinkAbility"); in GetAbilityInfo()
55 cJSON_Delete(rootValue); in GetAbilityInfo()
60 cJSON *srcRootValue = cJSON_GetObjectItemCaseSensitive(rootValue, "SourceCodec"); in GetAbilityInfo()
62 cJSON_Delete(rootValue); in GetAbilityInfo()
69 cJSON_Delete(rootValue); in GetAbilityInfo()
76 cJSON_Delete(rootValue); in GetAbilityInfo()
81 cJSON_Delete(rootValue); in GetAbilityInfo()
[all...]
/drivers/peripheral/distributed_camera/hdi_service/src/dstream_operator/
H A Ddstream_operator.cpp548 cJSON* DStreamOperator::GetFormatObj(const std::string rootNode, cJSON* rootValue, std::string& formatStr) in GetFormatObj() argument
550 cJSON* nodeObj = cJSON_GetObjectItemCaseSensitive(rootValue, rootNode.c_str()); in GetFormatObj()
566 void DStreamOperator::ExtractCameraAttr(cJSON* rootValue, std::vector<int>& formats, const std::string rootNode) in ExtractCameraAttr() argument
570 cJSON *formatObj = GetFormatObj(rootNode, rootValue, formatStr); in ExtractCameraAttr()
575 GetCameraAttr(rootValue, formatStr, rootNode, format); in ExtractCameraAttr()
579 void DStreamOperator::GetCameraAttr(cJSON *rootValue, std::string formatStr, const std::string rootNode, in GetCameraAttr() argument
583 cJSON *formatObj = GetFormatObj(rootNode, rootValue, formatStr); in GetCameraAttr()
636 cJSON *rootValue = cJSON_Parse(sinkAbilityInfo.c_str()); in InitOutputConfigurations() local
637 CHECK_NULL_RETURN_LOG(rootValue, DCamRetCode::INVALID_ARGUMENT, "The sinkAbilityInfo is null."); in InitOutputConfigurations()
638 CHECK_OBJECT_FREE_RETURN(rootValue, DCamRetCod in InitOutputConfigurations()
704 ParseEncoderTypes(cJSON* rootValue) ParseEncoderTypes() argument
727 ParsePhotoFormats(cJSON* rootValue) ParsePhotoFormats() argument
754 ParsePreviewFormats(cJSON* rootValue) ParsePreviewFormats() argument
781 ParseVideoFormats(cJSON* rootValue) ParseVideoFormats() argument
[all...]

Completed in 8 milliseconds