]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugin-ducati.git/blobdiff - src/gstducati.h
mpeg2dec: add MPEG-2 support
[glsdk/gst-plugin-ducati.git] / src / gstducati.h
index 9897eab77d1207fbff7d694355986c8cfc18c0e2..60cee7e17a0eacefe935637de0f7706f0c7c7843 100644 (file)
@@ -38,6 +38,9 @@ G_BEGIN_DECLS
 GST_DEBUG_CATEGORY_EXTERN (gst_ducati_debug);
 #define GST_CAT_DEFAULT gst_ducati_debug
 
+/* align x to next highest multiple of 2^n */
+#define ALIGN2(x,n)   (((x) + ((1 << (n)) - 1)) & ~((1 << (n)) - 1))
+
 void * gst_ducati_alloc_1d (gint sz);
 void * gst_ducati_alloc_2d (gint width, gint height);
 XDAS_Int16 gst_ducati_get_mem_type (SSPtr paddr);