diff options
author | Lynne <dev@lynne.ee> | 2024-06-23 15:58:28 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-06-24 23:53:25 +0200 |
commit | dae12ddb2e5d4ec8cf5a965f4ac793edfa3802d6 (patch) | |
tree | 4161d26f1fdb57c9184fe469841ef0d12f99ebc9 /libavutil | |
parent | 0d748eec8d52715f2949bd03519d39f2bf5baac4 (diff) | |
download | ffmpeg-dae12ddb2e5d4ec8cf5a965f4ac793edfa3802d6.tar.gz |
lavu/stereo3d: change the horizontal FOV field to a rational
This avoids hardcoding any implementation-specific limitiations as
part of the API, and allows for future expandability.
This also allows API users to more conveniently convert the
values into floats without hardcoding specific conversion constants.
The API was committed a few days ago, so changing this field now
is within the realms of acceptable.
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/stereo3d.c | 1 | ||||
-rw-r--r-- | libavutil/stereo3d.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libavutil/stereo3d.c b/libavutil/stereo3d.c index 19e81e4124..ad6064e5d9 100644 --- a/libavutil/stereo3d.c +++ b/libavutil/stereo3d.c @@ -29,6 +29,7 @@ static void get_defaults(AVStereo3D *stereo) { stereo->horizontal_disparity_adjustment = (AVRational) { 0, 1 }; + stereo->horizontal_field_of_view = (AVRational) { 0, 1 }; } AVStereo3D *av_stereo3d_alloc(void) diff --git a/libavutil/stereo3d.h b/libavutil/stereo3d.h index 00a5c3900e..d8b191118c 100644 --- a/libavutil/stereo3d.h +++ b/libavutil/stereo3d.h @@ -224,9 +224,9 @@ typedef struct AVStereo3D { AVRational horizontal_disparity_adjustment; /** - * Horizontal field of view in thousanths of a degree. Zero if unset. + * Horizontal field of view, in degrees. Zero if unset. */ - uint32_t horizontal_field_of_view; + AVRational horizontal_field_of_view; } AVStereo3D; /** |