mirror of
https://gitee.com/openharmony/xts_hats
synced 2024-11-27 09:00:57 +00:00
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:
parent
2a00009fee
commit
49adeb10a5
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user