If MFC run with max multi-instance in NAL_Q mode,
32 slot is needed because one slot is needed for one command(job).
Becuase one instance can get 5 jobs at the same time,
we increase the slot size to 32KB such as below.
- 32 instance * 4 jobs = 128 slot.
- 256 byte(one slot size) * 128 = total 32KB.
Change-Id: I1b32235febc63d4ec4eb2144601c605371cf3bf8
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
#define NAL_Q_OUT_DEC_STR_SIZE 248
#define NAL_Q_OUT_ENC_STR_SIZE 64
-#define NAL_Q_IN_QUEUE_SIZE 16 /* 256*16 = 4096 bytes */
-#define NAL_Q_OUT_QUEUE_SIZE 16 /* 256*16 = 4096 bytes */
+/* 256*128(max instance 32 * slot 4) = 32 kbytes */
+#define NAL_Q_IN_QUEUE_SIZE 128
+#define NAL_Q_OUT_QUEUE_SIZE 128
typedef struct __DecoderInputStr {
int StartCode; /* = 0xAAAAAAAA; Decoder input structure marker */