[FFmpeg-devel] [PATCH] avformat/mov: get heif image rotation from irot box
Anton Khirnov
anton at khirnov.net
Fri Sep 27 20:08:55 EEST 2024
Quoting James Almer (2024-09-27 19:07:42)
> On 9/27/2024 1:43 PM, Anton Khirnov wrote:
> > Quoting James Almer (2024-09-25 02:14:46)
> >> Based on a patch by Hacene Bouaroua.
> >>
> >> Co-authored-by: Hacene Bouaroua <hbouaroua at freebox.fr>
> >> Signed-off-by: James Almer <jamrial at gmail.com>
> >> ---
> >> libavformat/avformat.h | 6 +++++
> >> libavformat/isom.h | 1 +
> >> libavformat/mov.c | 54 ++++++++++++++++++++++++++++++++++++++----
> >> 3 files changed, 57 insertions(+), 4 deletions(-)
> >>
> >> diff --git a/libavformat/avformat.h b/libavformat/avformat.h
> >> index 56c1c80289..a54aac0f3a 100644
> >> --- a/libavformat/avformat.h
> >> +++ b/libavformat/avformat.h
> >> @@ -1082,6 +1082,12 @@ typedef struct AVStreamGroupTileGrid {
> >> * final image before presentation.
> >> */
> >> int height;
> >> +
> >> + /**
> >> + * The angle in which the reconstructed image is rotated (in anti-clockwise
> >> + * direction) before presentation, in units of degrees.
> >> + */
> >> + AVRational rotation;
> >
> > Should it not be a display matrix rather than just an angle?
>
> What's the benefit?
A consistent interface.
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list