diff tools/lib64gfx.h @ 1591:3cc7b2aadda3

Add inline helper function fmtGetEncDecOp() and use it.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 May 2018 05:53:22 +0300
parents ca087c0cc9c4
children 91d1bb571fca
line wrap: on
line diff
--- a/tools/lib64gfx.h	Mon May 14 05:38:58 2018 +0300
+++ b/tools/lib64gfx.h	Mon May 14 05:53:22 2018 +0300
@@ -316,6 +316,12 @@
 }
 
 
+static inline const DMC64EncDecOp * fmtGetEncDecOp(const DMC64ImageFormat *fmt, const int index)
+{
+    return &fmt->encdecOps[index];
+}
+
+
 #ifdef __cplusplus
 }
 #endif