aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'memplugin.h')
-rw-r--r--memplugin.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/memplugin.h b/memplugin.h
index f4dda8e..816829b 100644
--- a/memplugin.h
+++ b/memplugin.h
@@ -53,6 +53,16 @@
53#define P2H(p) (&(((MemHeader *)(p))[-1])) 53#define P2H(p) (&(((MemHeader *)(p))[-1]))
54#define H2P(h) ((void *)&(h)[1]) 54#define H2P(h) ((void *)&(h)[1])
55 55
56/* MemHeader is important because it is necessary to know the */
57/* size of the parameter buffers on IPU for Cache operations */
58/* The size can't be assumed as codec supports different inputs */
59/* For ex: static params can be VIDDEC3_Params, IVIDDEC3_Params */
60/* or IH264DEC_Params */
61typedef struct MemHeader {
62 int size;
63 void *ptr;
64} MemHeader;
65
56typedef enum mem_type { 66typedef enum mem_type {
57 TILER_1D_BUFFER, 67 TILER_1D_BUFFER,
58 TILER8_2D_BUFFER, 68 TILER8_2D_BUFFER,