You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
dump: use av_spherical_projection_name() to print spherical projection names
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
committed by
Vittorio Giovara
parent
ad52eef997
commit
498864fe80
@@ -317,16 +317,7 @@ static void dump_spherical(void *ctx, AVCodecParameters *par, AVPacketSideData *
|
|||||||
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");
|
|
||||||
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);
|
||||||
|
Reference in New Issue
Block a user