summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils/gen-formats.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/gen-formats.py b/utils/gen-formats.py
index 60dcecc3..da79a8bb 100755
--- a/utils/gen-formats.py
+++ b/utils/gen-formats.py
@@ -59,10 +59,13 @@ def generate_h(formats, drm_fourcc):
for format in formats:
name, format = format.popitem()
+ fourcc = drm_fourcc.fourcc(format['fourcc'])
+ if format.get('big-endian'):
+ fourcc += '| DRM_FORMAT_BIG_ENDIAN'
data = {
'name': name,
- 'fourcc': drm_fourcc.fourcc(format['fourcc']),
+ 'fourcc': fourcc,
'mod': '0, 0',
}