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.

Display Buffers mechanism

Guru 20755 points

Hello,

I would like to ask if there is an API to configure the number in display buffer.  Since this buffer is for the frames before sending to hdvenc for display, we find intereset in having control over its length and policy. by policy I mean that we can use it as cyclic buffer (old frames are overwritten if not output yet). So my question is wether we can change Diplsay buffer length and policy?

Thank you,

Ran

  • Hi Ran,

     

    Why can't you do this in application, by allocating few buffers and then rotating them for the display?

     

    Thx,

    Brijesh

  • Hi Brijesh,

    Where do you mean by application ? In Display Link ?
    We use simple chain decode->display (vout0,vout1), and have requirements to control the display mechanism as following:
    1. control the length of the buffer
    2. drop oldest frame [in case extract rate is slower then insertion rate]
    3. duplicate frame if only one frame left [in order to repeat last frame, I suppose]
    I therefore thought that the display driver is the right place for such buffering mechanism.

    Regards, Ran

  • Hi Brijesh,

    One more thing about the display driver buffering mechanism:
    VpsDdrv_queue API for submitting a video frame uses linked list. As I understand from the code, there is no limitation on length of this linked list.
    If it is so, then on the one hand it seems deal perfectly with the "jitter" problems we are trying to deal with, but in the other hand isn't it a problem in memory terms if there is no limitation of number of buffers ?

    Regards, Ran