提交 254652a3 编写于 作者: L Limin Wang

avfilter/vf_showinfo: minor adjustment for the dump format of ROI

Signed-off-by: NLimin Wang <lance.lmwang@gmail.com>
上级 00ec682a
......@@ -147,10 +147,10 @@ static void dump_roi(AVFilterContext *ctx, const AVFrameSideData *sd)
}
nb_rois = sd->size / roi_size;
av_log(ctx, AV_LOG_INFO, "Regions Of Interest(RoI) information: ");
av_log(ctx, AV_LOG_INFO, "Regions Of Interest(ROI) information:\n");
for (int i = 0; i < nb_rois; i++) {
roi = (const AVRegionOfInterest *)(sd->data + roi_size * i);
av_log(ctx, AV_LOG_INFO, "index: %d, region: (%d, %d)/(%d, %d), qp offset: %d/%d.\n",
av_log(ctx, AV_LOG_INFO, "index: %d, region: (%d, %d) -> (%d, %d), qp offset: %d/%d.\n",
i, roi->left, roi->top, roi->right, roi->bottom, roi->qoffset.num, roi->qoffset.den);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册