From bddd8cbf68551f6405b2bf77cc3e212af9fbe834 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Thu, 15 May 2014 22:06:49 -0400 Subject: Add transformation matrix API. Add AV_PKT_DATA_DISPLAYMATRIX and AV_FRAME_DATA_DISPLAYMATRIX as stream and frame side data (respectively) to describe a display transformation matrix for linear transformation operations on the decoded video. Add functions to easily extract a rotation angle from a matrix and conversely to setup a matrix for a given rotation angle. Signed-off-by: Anton Khirnov --- libavutil/frame.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavutil/frame.h') diff --git a/libavutil/frame.h b/libavutil/frame.h index 3bec8e5948..958cd26975 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -73,6 +73,14 @@ enum AVFrameSideDataType { * ReplayGain information in the form of the AVReplayGain struct. */ AV_FRAME_DATA_REPLAYGAIN, + /** + * This side data contains a 3x3 transformation matrix describing an affine + * transformation that needs to be applied to the frame for correct + * presentation. + * + * See libavutil/display.h for a detailed description of the data. + */ + AV_FRAME_DATA_DISPLAYMATRIX, }; typedef struct AVFrameSideData { -- cgit v1.2.3