summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (from parent 1: 63c3338)
raw | patch | inline | side by side (from parent 1: 63c3338)
author | Saurabh Bipin Chandra <a0131926@ti.com> | |
Fri, 10 May 2013 13:31:56 +0000 (15:31 +0200) | ||
committer | Saurabh Bipin Chandra <a0131926@ti.com> | |
Thu, 23 May 2013 06:50:23 +0000 (12:20 +0530) |
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>
patch moves the MemHeader declaration from
memplugin_qnx.c to memplugin.h.
Change-Id: I881ee18903a906a6e31284710949709a5be4132e
Signed-off-by: Saurabh Bipin Chandra <a0131926@ti.com>
memplugin.h | patch | blob | history | |
memplugin_qnx.c | patch | blob | history |
diff --git a/memplugin.h b/memplugin.h
index f4dda8ec5e6fb56956876f18fb28170efc3bf7e0..816829b50306d2b8620592f4e27c5b153c09b2fb 100644 (file)
--- a/memplugin.h
+++ b/memplugin.h
#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,
diff --git a/memplugin_qnx.c b/memplugin_qnx.c
index 5555037629de532d0994679ea8f1e4ca85abfd72..610a4f9aea7b16b88ce6e4bba965a466ce26f5a2 100644 (file)
--- a/memplugin_qnx.c
+++ b/memplugin_qnx.c
#include "dce_priv.h"
-/* Would it be good to have MemHeaders for Tiler 2D buffers?? */
-/* Since the decision is to not support allocation of IO buffers, no */
-/* need to worry about Tiler 2D Buffers. Hence below Memheader */
-/* can be used. */
-/*
-typedef struct {
- dce_memory_type memory_type;
- union {
- struct {
- Uint32 size;
- Uint32 ducati_addr;
- } tilerHeader;
- shm_buf shm_bufHeader;
- }
-} MemHeader;
-else for Tiler 1D buffers */
-
-/* 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;
-
-
/* For TILER 2D Buffers : sz = width */
/* : height = nonzero */
/* For other memory_types : height = 0 */