mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avfilter/vf_showinfo: use av_spherical_projection_name()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
6da38e11f6
commit
778096757d
@ -78,16 +78,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, const AVFrameSi
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR)
|
av_log(ctx, AV_LOG_INFO, "%s ", av_spherical_projection_name(spherical->projection));
|
||||||
av_log(ctx, AV_LOG_INFO, "equirectangular ");
|
|
||||||
else if (spherical->projection == AV_SPHERICAL_CUBEMAP)
|
|
||||||
av_log(ctx, AV_LOG_INFO, "cubemap ");
|
|
||||||
else if (spherical->projection == AV_SPHERICAL_EQUIRECTANGULAR_TILE)
|
|
||||||
av_log(ctx, AV_LOG_INFO, "tiled equirectangular ");
|
|
||||||
else {
|
|
||||||
av_log(ctx, AV_LOG_WARNING, "unknown\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
yaw = ((double)spherical->yaw) / (1 << 16);
|
yaw = ((double)spherical->yaw) / (1 << 16);
|
||||||
pitch = ((double)spherical->pitch) / (1 << 16);
|
pitch = ((double)spherical->pitch) / (1 << 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user