From f634150363b538b3d22800b86446eb9a5ea875e5 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Tue, 1 Nov 2022 09:30:39 +0900 Subject: [PATCH] Redefine 'tdm_transform' enumaration It was discovered that some tdm backend driver actually tnranslated 90 and 270 degree rotations of 'tdm_transform' enumeration as counter-clockwise. Since there is no other tdm backend drivers using 'tdm_transform' enumeration, we've decided to redefine `tdm_transform` enumeration rather than guide the tdm backend driver to follow the spec in the documentation. Change-Id: Ibea6ecd7e8ff38ac2312580507001ebbe826fb67 --- include/tdm_common.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/tdm_common.h b/include/tdm_common.h index a3ccede..48192ab 100644 --- a/include/tdm_common.h +++ b/include/tdm_common.h @@ -78,13 +78,13 @@ typedef enum { */ typedef enum { TDM_TRANSFORM_NORMAL = 0, /**< no transform */ - TDM_TRANSFORM_90 = 1, /**< rotate 90 degrees clockwise */ - TDM_TRANSFORM_180 = 2, /**< rotate 180 degrees clockwise */ - TDM_TRANSFORM_270 = 3, /**< rotate 270 degrees clockwise */ + TDM_TRANSFORM_90 = 1, /**< rotate 90 degrees counter-clockwise */ + TDM_TRANSFORM_180 = 2, /**< rotate 180 degrees counter-clockwise */ + TDM_TRANSFORM_270 = 3, /**< rotate 270 degrees counter-clockwise */ TDM_TRANSFORM_FLIPPED = 4, /**< no rotate and horizontal flip */ - TDM_TRANSFORM_FLIPPED_90 = 5, /**< rotate 90 degrees clockwise and horizontal flip */ - TDM_TRANSFORM_FLIPPED_180 = 6, /**< rotate 180 degrees clockwise and horizontal flip */ - TDM_TRANSFORM_FLIPPED_270 = 7, /**< rotate 270 degrees clockwise and horizontal flip */ + TDM_TRANSFORM_FLIPPED_90 = 5, /**< rotate 90 degrees counter-clockwise and horizontal flip */ + TDM_TRANSFORM_FLIPPED_180 = 6, /**< rotate 180 degrees counter-clockwise and horizontal flip */ + TDM_TRANSFORM_FLIPPED_270 = 7, /**< rotate 270 degrees counter-clockwise and horizontal flip */ } tdm_transform; /** -- 2.7.4