LOGI("%u: scale[%3.2f], zeropoint[%3.2f]", elem, s, z);
}
}
- option.insert(std::make_pair(iterLayer->first, opt));
- }
- if (json_object_has_member(preprocess_object, "resize")) {
- const char *resizer = static_cast<const char *>(json_object_get_string_member(preprocess_object, "resize"));
- if (strcmp(resizer, "LETTERBOX") == 0) {
- opt.resizer = Resizer::LETTERBOX;
- LOGI("resizer changed to letterbox");
+ if (json_object_has_member(pObject, "resize")) {
+ const char *resizer = static_cast<const char *>(json_object_get_string_member(pObject, "resize"));
+ if (strcmp(resizer, "LETTERBOX") == 0) {
+ opt.resizer = Resizer::LETTERBOX;
+ LOGI("resizer changed to letterbox");
+ }
}
+ option.insert(std::make_pair(iterLayer->first, opt));
}
- option.insert(std::make_pair(iterLayer->first, opt));
-
LOGI("LEAVE");
return MEDIA_VISION_ERROR_NONE;