diff options
author | Buddy Liong | 2017-06-27 11:03:59 -0500 |
---|---|---|
committer | Buddy Liong | 2017-07-28 09:10:09 -0500 |
commit | 6d206d7165e617fc164f045f7518556d13d88530 (patch) | |
tree | 765d4c646d728fbe7fb6540cfd8dff6ecce0ba20 | |
parent | 75810b7bb53d2d076a96c2d1e2f8c61b3c12cb6b (diff) | |
download | hardware-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||