summaryrefslogtreecommitdiff
path: root/media/libaom/src/aom_ports/mem.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/libaom/src/aom_ports/mem.h')
-rw-r--r--media/libaom/src/aom_ports/mem.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/media/libaom/src/aom_ports/mem.h b/media/libaom/src/aom_ports/mem.h
index 3ffea3cd6d..9e3d424037 100644
--- a/media/libaom/src/aom_ports/mem.h
+++ b/media/libaom/src/aom_ports/mem.h
@@ -66,4 +66,34 @@
#define CONVERT_TO_SHORTPTR(x) ((uint16_t *)(((uintptr_t)(x)) << 1))
#define CONVERT_TO_BYTEPTR(x) ((uint8_t *)(((uintptr_t)(x)) >> 1))
+/*!\brief force enum to be unsigned 1 byte*/
+#define UENUM1BYTE(enumvar) \
+ ; \
+ typedef uint8_t enumvar
+
+/*!\brief force enum to be signed 1 byte*/
+#define SENUM1BYTE(enumvar) \
+ ; \
+ typedef int8_t enumvar
+
+/*!\brief force enum to be unsigned 2 byte*/
+#define UENUM2BYTE(enumvar) \
+ ; \
+ typedef uint16_t enumvar
+
+/*!\brief force enum to be signed 2 byte*/
+#define SENUM2BYTE(enumvar) \
+ ; \
+ typedef int16_t enumvar
+
+/*!\brief force enum to be unsigned 4 byte*/
+#define UENUM4BYTE(enumvar) \
+ ; \
+ typedef uint32_t enumvar
+
+/*!\brief force enum to be unsigned 4 byte*/
+#define SENUM4BYTE(enumvar) \
+ ; \
+ typedef int32_t enumvar
+
#endif // AOM_AOM_PORTS_MEM_H_