Hi,
I use the demo decode code to implement multi-file decode DVR system.
I create 5 h264 decoder and now I run out of memory of DDRALGHEAP to decode 6th CIF file.
==================== Below is my partion of code: ====================
params.maxWidth = VideoStd_CIF_WIDTH; // 352
params.maxHeight = VideoStd_SIF_NTSC_HEIGHT; //240
/* Create the video decoder */
hVd2 = Vdec2_create(hEngine, algs[envp->videoDecoder], ¶ms, &dynParams);
if (hVd2 == NULL) {
ERR("\r\n video thread: Failed to create video decoder: %s\n", algs[envp->videoDecoder]);
cleanup(THREAD_FAILURE);
}
bufSize=Engine_getUsedMem(hEngine); // get Engine used memory size
===============================================================
Then I got 13231504 byets from above "bufSize".
Does this mean when each h264dc codec engine was created, it will consume 13231504 byets ???
Why a 264 CIF file need so much buffer ??
And When I deocde h264 D1 file (720x480), and set params.maxWidth =720, params.maxHeight=480,
The "bufSize" is still the same !!!! Why ??
If any suggesstin would be very appreciated!!
Thanks,
Tai