This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

explaination of dm8168 encode parameter

What is the meaning of the numBufs parameter in VCODEC_BITSBUF_LIST_S structure? I can't undetstand its note. Who can give me a detailed description. My colleague tell me it is numbers of data buffer.eg, may I need encode four channel at the same time, but I can encode data in one buffer or four buffer, above two state, the value of numBuf is one or four, right? If wrong, the value of numBufs should be what. Tank you.
  • Which API are you using VCODEC_BITSBUF_LIST_S as argument. Based on that numBufs meaning differs.

    On returning from Venc_getBitstreamBuffer, VCODEC_BITSBUF_LIST_S.numBufs is the number of encoded buffers available.

    As argument to Venc_releaseBitstreamBuffer VCODEC_BITSBUF_LIST_S.numBufs is populated by application and indictaed number of buffers to be freed back.

    Going thru /dvr_rdk/demos/mcfw_api_demos/mcfw_demo/demo_vcap_venc_vdis_bits_wr.c should give idead on what it means and how to use.