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_qnx.c
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_qnx.c')
-rw-r--r--memplugin_qnx.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/memplugin_qnx.c b/memplugin_qnx.c
index 5555037..610a4f9 100644
--- a/memplugin_qnx.c
+++ b/memplugin_qnx.c
@@ -34,34 +34,6 @@
34#include "dce_priv.h" 34#include "dce_priv.h"
35 35
36 36
37/* Would it be good to have MemHeaders for Tiler 2D buffers?? */
38/* Since the decision is to not support allocation of IO buffers, no */
39/* need to worry about Tiler 2D Buffers. Hence below Memheader */
40/* can be used. */
41/*
42typedef struct {
43 dce_memory_type memory_type;
44 union {
45 struct {
46 Uint32 size;
47 Uint32 ducati_addr;
48 } tilerHeader;
49 shm_buf shm_bufHeader;
50 }
51} MemHeader;
52else for Tiler 1D buffers */
53
54/* MemHeader is important because it is necessary to know the */
55/* size of the parameter buffers on IPU for Cache operations */
56/* The size can't be assumed as codec supports different inputs */
57/* For ex: static params can be VIDDEC3_Params, IVIDDEC3_Params */
58/* or IH264DEC_Params */
59typedef struct MemHeader {
60 int size;
61 void *ptr;
62} MemHeader;
63
64
65/* For TILER 2D Buffers : sz = width */ 37/* For TILER 2D Buffers : sz = width */
66/* : height = nonzero */ 38/* : height = nonzero */
67/* For other memory_types : height = 0 */ 39/* For other memory_types : height = 0 */