History

avfilter/vf_showinfo: fix HDR vivid info

Zhao Zhili committed 3 years ago

Commit 4ec28611 parent 0f2bef21 file · +9 −8Browse files

Unified · Split

libavfilter/vf_showinfo.c+9−8
@@ -354,19 +354,20 @@ static void dump_dynamic_hdr_vivid(AVFilterContext *ctx, AVFrameSideData *sd) · 353 unmodified lines
354354 av_log(ctx, AV_LOG_INFO, "3Spline_enable_flag[%d][%d]: %d, ",
355355 w, i, tm_params->three_Spline_enable_flag);
356356 if (tm_params->three_Spline_enable_flag) {
357− av_log(ctx, AV_LOG_INFO, "3Spline_TH_mode[%d][%d]: %d, ", w, i, tm_params->three_Spline_TH_mode);
358−
359357 for (int j = 0; j < tm_params->three_Spline_num; j++) {
360− av_log(ctx, AV_LOG_INFO, "3Spline_TH_enable_MB[%d][%d][%d]: %.4f, ",
361− w, i, j, av_q2d(tm_params->three_Spline_TH_enable_MB));
358+ const AVHDRVivid3SplineParams *three_spline = &tm_params->three_spline[j];
359+ av_log(ctx, AV_LOG_INFO, "3Spline_TH_mode[%d][%d]: %d, ", w, i, three_spline->th_mode);
360+ if (three_spline->th_mode == 0 || three_spline->th_mode == 2)
361+ av_log(ctx, AV_LOG_INFO, "3Spline_TH_enable_MB[%d][%d][%d]: %.4f, ",
362+ w, i, j, av_q2d(three_spline->th_enable_mb));
362363 av_log(ctx, AV_LOG_INFO, "3Spline_TH_enable[%d][%d][%d]: %.4f, ",
363− w, i, j, av_q2d(tm_params->three_Spline_TH_enable));
364+ w, i, j, av_q2d(three_spline->th_enable));
364365 av_log(ctx, AV_LOG_INFO, "3Spline_TH_Delta1[%d][%d][%d]: %.4f, ",
365− w, i, j, av_q2d(tm_params->three_Spline_TH_Delta1));
366+ w, i, j, av_q2d(three_spline->th_delta1));
366367 av_log(ctx, AV_LOG_INFO, "3Spline_TH_Delta2[%d][%d][%d]: %.4f, ",
367− w, i, j, av_q2d(tm_params->three_Spline_TH_Delta2));
368+ w, i, j, av_q2d(three_spline->th_delta2));
368369 av_log(ctx, AV_LOG_INFO, "3Spline_enable_Strength[%d][%d][%d]: %.4f, ",
369− w, i, j, av_q2d(tm_params->three_Spline_enable_Strength));
370+ w, i, j, av_q2d(three_spline->enable_strength));
370371 }
371372 }
372373 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t