History

avfilter/vf_showinfo: use av_spherical_projection_name()

James Almer committed 2 years ago

Commit 77809671 parent 6da38e11 file · +1 −10Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_showinfo.c+1−10
@@ -78,16 +78,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, const AVFrameSi · 77 unmodified lines
7878 return;
7979 }
8080
81− if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR)
82− av_log(ctx, AV_LOG_INFO, "equirectangular ");
83− else if (spherical->projection == AV_SPHERICAL_CUBEMAP)
84− av_log(ctx, AV_LOG_INFO, "cubemap ");
85− else if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR_TILE)
86− av_log(ctx, AV_LOG_INFO, "tiled equirectangular ");
87− else {
88− av_log(ctx, AV_LOG_WARNING, "unknown\n");
89− return;
90− }
81+ av_log(ctx, AV_LOG_INFO, "%s ", av_spherical_projection_name(spherical->projection));
9182
9283 yaw = ((double)spherical->yaw) / (1 << 16);
9384 pitch = ((double)spherical->pitch) / (1 << 16);

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