/* For VC1 */
int32_t iInterlace;
+
+#ifdef TIZEN_FEATURE_ARTIK530
+ /* buffer manager */
+ void *bufmgr;
+#endif
};
}
}
}
+#ifdef TIZEN_FEATURE_ARTIK530
+ if (hDec->bufmgr)
+ tbm_bufmgr_deinit (hDec->bufmgr);
+#endif
free (hDec);
buf.length = pSeqIn->imgPlaneNum;
buf.memory = V4L2_MEMORY_DMABUF;
+#ifdef TIZEN_FEATURE_ARTIK530
+ hDec->bufmgr = tbm_bufmgr_init (-1);
+ _D ("bufmgr = %p", hDec->bufmgr);
+ if (!hDec->bufmgr) {
+ _E ("failed to initialize tbm_init");
+ return -1;
+ }
+#endif
/* Allocate Buffer(Internal or External) */
for (i = 0; i < imgBuffCnt; i++) {
if (true == hDec->useExternalFrameBuffer) {
hDec->hImage[i] = pSeqIn->pMemHandle[i];
} else {
hDec->hImage[i] =
- NX_AllocateVideoMemory (pSeqIn->width, pSeqIn->height,
+ NX_AllocateVideoMemory (hDec->bufmgr, pSeqIn->width, pSeqIn->height,
pSeqIn->imgPlaneNum, pSeqIn->imgFormat, 4096);
if (hDec->hImage[i] == NULL) {
_E ("Failed to allocate image buffer(%d, %d, %d)\n", i,