Hi,all:
I want to discard buffermanager APIs when I call codec.Because I felt it made application more complex.
I just want to allocat frame buffer by myself.
How could I do ? Would you give some advice? thx!
For example,Now I write some apps base on mpeg2 decoder_ TestAppDecoder in C66x_mpeg2vdec_02_02_01_08_ELF.
I allocate outputBufDesc by myself like below every frame decoding.But result was not right.YUV_OUT was my defined memory space on ddr.
#if 0
outputBufDesc.bufs[0] = (XDAS_Int8 *)(YUV_OUT+offset_out);
outputBufDesc.bufSizes[0] = status->bufInfo.minOutBufSize[0];
printf("outsize=%d\n",outputBufDesc.bufSizes[0]);
for(ii=0; ii< (status->bufInfo.minNumOutBufs-1); ii++ )
{
outputBufDesc.bufs[ii+1] = outputBufDesc.bufs[ii] + status->bufInfo.minOutBufSize[ii];
outputBufDesc.bufSizes[ii+1] = status->bufInfo.minOutBufSize[ii+1];
}
#endif
How could I do to discard buffermanager?