diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-05-30 13:54:43 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-05-30 14:08:29 +0300 |
commit | af3f9890cc3927d92de4048bc238d62866784a35 (patch) | |
tree | 93049fd58b5dbe486b823ea7f9f890edd63d8a97 /py/pykms | |
parent | a53d19fccc8656f5190385e028261e4bcff84531 (diff) |
py: move Rotation enum to __init__.py
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/__init__.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/py/pykms/__init__.py b/py/pykms/__init__.py index 41c1219..3b5f743 100644 --- a/py/pykms/__init__.py +++ b/py/pykms/__init__.py @@ -16,6 +16,20 @@ white = RGB(255, 255, 255) cyan = RGB(0, 255, 255) # +# Rotation enum +# + +class Rotation(int, Enum): + ROTATE_0 = 1 << 0 + ROTATE_90 = 1 << 1 + ROTATE_180 = 1 << 2 + ROTATE_270 = 1 << 3 + ROTATE_MASK = ROTATE_0 | ROTATE_90 | ROTATE_180 | ROTATE_270 + REFLECT_X = 1 << 4 + REFLECT_Y = 1 << 5 + REFLECT_MASK = REFLECT_X | REFLECT_Y + +# # DrmObject API extensions # |