Redefine 'tdm_transform' enumaration 77/291377/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 1 Nov 2022 00:30:39 +0000 (09:30 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Fri, 14 Apr 2023 02:51:47 +0000 (11:51 +0900)
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

index a3ccede..48192ab 100644 (file)
@@ -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;
 
 /**