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
*/
typedef enum {
TDM_TRANSFORM_NORMAL = 0, /**< no transform */
*/
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 = 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 */