Closed projectgus closed 10 months ago
Is the matrix useful for anything else? Maybe these methods could take/return the 9-element DisplayMatrix
type, which has rotation()
and from_rotation()
methods?
@kornelski It's a very reasonable question, thanks! My thinking on this was:
ffmpeg
and ffprobe
seem to support it only as a rotation.[*] I wasn't able to turn up another use for it.All that said, if you think it may be useful then I am very happy to refactor this to introduce a DisplayMatrix type as described. If so, then I would appreciate any advice on the most appropriate answer for point (2), above. Cheers!
[*] For completeness, I stumbled across it when processing some QuickTime videos taken by iOS, where the rotation of the phone is encoded here.
Thanks for the explanation
Thanks for the quick merge!
Wraps the relevant side_data accessors and display.h utility functions for this. The API is a bit weird as things apply to an abstract Stream in libavcodec, couldn't see a better way to factor it.