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.

Video encoder min in and out bufs

Hi,Rob

          First thanks for your help,I have another problem to bother you ,hope to get some hint from you.

Under videnc_copy.c 

#define MININBUFS       1

#define MINOUTBUFS      1

While in encode demo capture.c

/* Buffering for the display driver  */

#define NUM_DISPLAY_BUFS         4

/* Buffering for the capture driver */

#define NUM_CAPTURE_BUFS    4

Do I have to change  MINNBUFS and MINOUTBUFS from 1 to 4.

I have tried once ,and get an error: can't find rirgt pools.Does this means that I need add new pools in "loadmoduls.sh",currently it looks below:

insmod cmemk.ko phys_start=0x84C00000 phys_end=0x8ba00000 pools=2x921600,1x460800,1x1048576,1x345600,2x86400,11x564528,5x677376,14x5396480,3x4147200,4x1451520,4x1843200

Regards,
-David


 


 

  • David,

    From your prev post, http://e2e.ti.com/support/embedded/f/354/t/136451.aspx, looks like you are making your own video codec on DM6467T. Please note that DM6467  has  h/w acclerator (HDVICP) for all standard video codecs. Or you just want to make a video algorithm (not particularly a codec) using DSP ?

    regards

    Yashwant 

  • David said:

    Do I have to change  MINNBUFS and MINOUTBUFS from 1 to 4.

    The minimum number of buffers for the videnc_copy.c codec does not change when you want to pass it more than that.  MININBUFS/MINOUTBUFS is informational, so if you haven't changed the codec to need more in the minimum, then don't change those.

    David said:

    /* Buffering for the display driver  */

    #define NUM_DISPLAY_BUFS         4

    /* Buffering for the capture driver */

    #define NUM_CAPTURE_BUFS    4

    I don't know what those are used for, since I don't know capture.c.

    David said:
    I have tried once ,and get an error: can't find rirgt pools

    I can't say what is causing that without seeing the exact error message (and I still might not know).  Please post the error.

    Regards,

    - Rob