update hdf/camera/cameraMg/v1_3/src/camera_tag_test_v1_3.cpp.

Signed-off-by: huangshengqing <huangshengqing8@huawei.com>
This commit is contained in:
huangshengqing 2024-08-29 03:22:53 +00:00 committed by Gitee
parent 2a00009fee
commit 49adeb10a5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -527,15 +527,13 @@ HWTEST_F(CameraTagTestV1_3, SUB_Driver_Camera_ProfessionalVideo_0800, TestSize.L
if (ret == HDI::Camera::V1_0::NO_ERROR && entry.data.r != nullptr && entry.count > 0) {
CAMERA_LOGI("print tag<OHOS_ABILITY_AE_COMPENSATION_STEP> f value start.");
printf("OHOS_ABILITY_AE_COMPENSATION_STEP f value count %d\n", entry.count);
if (entry.count == 1) {
CAMERA_LOGI("%{public}d/%{public}d\n", entry.data.r[0].numerator, entry.data.r[0].denominator);
printf("OHOS_ABILITY_AE_COMPENSATION_STEP %d/%d\n", entry.data.r[0].numerator, entry.data.r[0].denominator);
return;
}
constexpr size_t step = 4; // print step
std::stringstream ss;
if (entry.count == 1) {
ss << entry.data.r[0].numerator << "/" << entry.data.r[0].denominator <<" ";
CAMERA_LOGI("%{public}s\n", ss.str().c_str());
printf("OHOS_ABILITY_AE_COMPENSATION_STEP %s\n", ss.str().c_str());
ss.clear();
ss.str("");
}
for (size_t i = 0; i < entry.count; i++) {
ss << entry.data.r[i].numerator << "/" << entry.data.r[i].denominator <<" ";
if ((i != 0) && (i % step == 0 || i == entry.count - 1)) {