From e76039ed3db729204c94e542cceb5f28a9f61f56 Mon Sep 17 00:00:00 2001 From: Saurabh Bipin Chandra Date: Fri, 10 May 2013 15:31:56 +0200 Subject: Add Header declaration for MemHeader To maintain a generic implementation this patch moves the MemHeader declaration from memplugin_qnx.c to memplugin.h. Change-Id: I881ee18903a906a6e31284710949709a5be4132e Signed-off-by: Saurabh Bipin Chandra --- memplugin.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'memplugin.h') diff --git a/memplugin.h b/memplugin.h index f4dda8e..816829b 100644 --- a/memplugin.h +++ b/memplugin.h @@ -53,6 +53,16 @@ #define P2H(p) (&(((MemHeader *)(p))[-1])) #define H2P(h) ((void *)&(h)[1]) +/* MemHeader is important because it is necessary to know the */ +/* size of the parameter buffers on IPU for Cache operations */ +/* The size can't be assumed as codec supports different inputs */ +/* For ex: static params can be VIDDEC3_Params, IVIDDEC3_Params */ +/* or IH264DEC_Params */ +typedef struct MemHeader { + int size; + void *ptr; +} MemHeader; + typedef enum mem_type { TILER_1D_BUFFER, TILER8_2D_BUFFER, -- cgit v1.2.3-54-g00ecf