summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuddy Liong2017-06-27 11:03:59 -0500
committerBuddy Liong2017-07-28 09:10:09 -0500
commit6d206d7165e617fc164f045f7518556d13d88530 (patch)
tree765d4c646d728fbe7fb6540cfd8dff6ecce0ba20
parent75810b7bb53d2d076a96c2d1e2f8c61b3c12cb6b (diff)
downloadhardware-ti-libdce-6d206d7165e617fc164f045f7518556d13d88530.tar.gz
hardware-ti-libdce-6d206d7165e617fc164f045f7518556d13d88530.tar.xz
hardware-ti-libdce-6d206d7165e617fc164f045f7518556d13d88530.zip
libdce [Android]: Increase array size for inbuf_offset and outbuf_offset
For Android only, in process(), it will use the inbuf_offset array and outbuf_offset array when marshalling functions arguments to be sent to remote core. Before this patch, MAX_INPUT_BUF and MAX_OUTPUT_BUF are set to 2 meaning inbuf_offset and outbuf_offset are only an array of 2 instances. With the changes in OMX to enable Error Concealment on MPEG2, which requires an additional meta buffer to be passed in outBufs argument, the outbuf_offset is no longer sufficient. This commit changes the array number to 16 which is based on the XDM_MAX_IO_BUFFERS value for XDM2_BufDesc. For internal reference: CSR OMAPS00343473. Change-Id: Ia490ef03017e4c4cdb82cda1a22cbc8b3f28567d Signed-off-by: Buddy Liong <buddy.liong@ti.com>
-rw-r--r--dce_rpc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/dce_rpc.h b/dce_rpc.h
index 4bd45e6..a4e0193 100644
--- a/dce_rpc.h
+++ b/dce_rpc.h
@@ -44,8 +44,8 @@
44 44
45 45
46#define MAX_NAME_LENGTH 32 46#define MAX_NAME_LENGTH 32
47#define MAX_INPUT_BUF 2 // Need to confirm for interlaced YUVs for Encoders 47#define MAX_INPUT_BUF 16 // Based on the XDM_MAX_IO_BUFFERS value for XDM2_BufDesc
48#define MAX_OUTPUT_BUF 2 48#define MAX_OUTPUT_BUF 16 // Based on the XDM_MAX_IO_BUFFERS value for XDM2_BufDesc
49#define MAX_OUTPUT_BUFPTRS 2//To take care bufs and bufSizes in viddec2 case 49#define MAX_OUTPUT_BUFPTRS 2//To take care bufs and bufSizes in viddec2 case
50#define MAX_TOTAL_BUF (MAX_INPUT_BUF + MAX_OUTPUT_BUF + MAX_OUTPUT_BUFPTRS) 50#define MAX_TOTAL_BUF (MAX_INPUT_BUF + MAX_OUTPUT_BUF + MAX_OUTPUT_BUFPTRS)
51 51