Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
added getRotation() and test #34
I've added an FFmpegMovie->getRotation() method and test to return the rotation, or 0, of the movie file. This is particularly useful when dealing with movies that have been recorded portrait on mobile phones and where the width and height parameters should be transposed for presentation.
I've not changed the values returned from getFrameWidth() and getFrameHeight() when the getRotation() values is 90 or -90, though this should possible be discussed in future, it would be a breaking change to the API.
@dorianfm I have incorporated your PR into the PSR-4-develop branch. Fixed some typos and formatting.... Unfortunately I had to handpick the changes and the trace that you contributed the code will be lost. Are you ok with that, if now what can I do to make it right ?
Thank you very much for your contribution.