{
LOGI("ENTER");
- if (json_object_has_member(root, "score") == false) {
+ if (!json_object_has_member(root, "score")) {
LOGI("No score outputmetadata");
LOGI("LEAVE");
return MEDIA_VISION_ERROR_NONE;
{
LOGI("ENTER");
- if (json_object_has_member(root, "box") == false) {
+ if (!json_object_has_member(root, "box")) {
LOGE("No box outputmetadata");
LOGI("LEAVE");
return MEDIA_VISION_ERROR_NONE;
{
LOGI("ENTER");
- if (json_object_has_member(root, "label") == false) {
+ if (!json_object_has_member(root, "label")) {
LOGE("No box outputmetadata");
LOGI("LEAVE");
return MEDIA_VISION_ERROR_INVALID_OPERATION;
{
LOGI("ENTER");
- if (json_object_has_member(root, "number") == false) {
+ if (!json_object_has_member(root, "number")) {
LOGE("No number outputmetadata");
LOGI("LEAVE");
return MEDIA_VISION_ERROR_INVALID_OPERATION;
{
LOGI("ENTER");
- if (json_object_has_member(root, "box") == false) {
+ if (!json_object_has_member(root, "box")) {
LOGE("No box outputmetadata");
LOGI("LEAVE");
return MEDIA_VISION_ERROR_NONE;
JsonNode *pNode = json_array_get_element(rootArray, elem);
JsonObject *pObject = json_node_get_object(pNode);
- if (json_object_has_member(pObject, "decoding_info") == false) {
+ if (!json_object_has_member(pObject, "decoding_info")) {
LOGE("decoding_info is mandatory. Invalid metadata");
LOGI("LEAVE");
}
JsonObject *cObject = json_object_get_object_member(pObject, "decoding_info");
- if (json_object_has_member(cObject, "anchor") == false) {
+ if (!json_object_has_member(cObject, "anchor")) {
LOGE("anchor is mandatory. Invalid metadata");
LOGI("LEAVE");
int BoxInfo::DecodeInfo::ParseNms(JsonObject *root)
{
- if (json_object_has_member(root, "nms") == false) {
+ if (!json_object_has_member(root, "nms")) {
LOGI("nms is empty. skip it");
return MEDIA_VISION_ERROR_NONE;
}
int BoxInfo::DecodeInfo::ParseRotate(JsonObject *root)
{
- if (json_object_has_member(root, "rotate") == false) {
+ if (!json_object_has_member(root, "rotate")) {
LOGI("rotate is empty. skip it");
return MEDIA_VISION_ERROR_NONE;
}
int BoxInfo::DecodeInfo::ParseRoiOption(JsonObject *root)
{
- if (json_object_has_member(root, "roi") == false) {
+ if (!json_object_has_member(root, "roi")) {
LOGI("roi is empty. skip it");
return MEDIA_VISION_ERROR_NONE;
}
{
LOGI("ENTER");
- if (json_object_has_member(root, "landmark") == false) {
+ if (!json_object_has_member(root, "landmark")) {
LOGI("No landmark outputmetadata");
LOGI("LEAVE");
return MEDIA_VISION_ERROR_NONE;
{
LOGI("ENTER");
- if (json_object_has_member(root, "landmark") == false) {
+ if (!json_object_has_member(root, "landmark")) {
LOGI("No landmark outputmetadata");
LOGI("LEAVE");
return MEDIA_VISION_ERROR_NONE;
JsonNode *pNode = json_array_get_element(rootArray, elem);
JsonObject *pObject = json_node_get_object(pNode);
- if (json_object_has_member(pObject, "decoding_info") == false) {
+ if (!json_object_has_member(pObject, "decoding_info")) {
LOGE("decoding_info is mandatory. Invalid metadata");
LOGI("LEAVE");
}
JsonObject *cObject = json_object_get_object_member(pObject, "decoding_info");
- if (json_object_has_member(cObject, "heatmap") == false) {
+ if (!json_object_has_member(cObject, "heatmap")) {
LOGE("heatmap is mandatory. Invalid metadata");
LOGI("LEAVE");
{
LOGI("ENTER");
- if (json_object_has_member(root, "offset") == false) {
+ if (!json_object_has_member(root, "offset")) {
LOGI("No offset outputmetadata");
LOGI("LEAVE");
return MEDIA_VISION_ERROR_INVALID_OPERATION;
{
LOGI("ENTER");
- if (json_object_has_member(root, "displacement") == false) {
+ if (!json_object_has_member(root, "displacement")) {
LOGI("No displacement outputmetadata");
LOGI("LEAVE");
return MEDIA_VISION_ERROR_INVALID_OPERATION;
{
LOGI("ENTER");
- if (json_object_has_member(root, "edgemap") == false) {
+ if (!json_object_has_member(root, "edgemap")) {
LOGI("No edgemap outputmetadata");
LOGI("LEAVE");
return MEDIA_VISION_ERROR_INVALID_OPERATION;