aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaurabh Bipin Chandra2013-05-10 08:31:56 -0500
committerSaurabh Bipin Chandra2013-05-23 01:50:23 -0500
commite76039ed3db729204c94e542cceb5f28a9f61f56 (patch)
tree99c4a3ddac67cfb70c5afe1bbdf398a75d93d4d0 /memplugin.h
parent63c3338c18361f8aa2286530edd2e5fa41e1f47c (diff)
downloadrepo-libdce-e76039ed3db729204c94e542cceb5f28a9f61f56.tar.gz
repo-libdce-e76039ed3db729204c94e542cceb5f28a9f61f56.tar.xz
repo-libdce-e76039ed3db729204c94e542cceb5f28a9f61f56.zip
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 <a0131926@ti.com>
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,