Results 1 to 2 of 2

Thread: Port definition: nBufferCountMin

  1. #1
    Junior Member
    Join Date
    May 2008
    Location
    UK
    Posts
    23

    Port definition: nBufferCountMin

    In the OMX_PARAM_PORTDEFINITIONTYPE struct, there are two fields related to the number of buffers required on a port. From the spec, the nBufferCountActual field is used to gate a port being enabled/populated & this can be modified by the IL Client. The nBufferCountMin field is specified by the component & the Client can't change it.

    So, at initialisation, does a component set both fields to the minimum number of buffers that the port needs? Then should the client modify the nBufferCountActual before it calls AllocateBuffer/UseBuffer on the port?

    I guess that this is used so that the client (or OMX Core when tunnelling) determines the highest value of nBufferCountMin on the transmitting and receiving ports so that ports don't get enabled until both ports have the same number of buffers. Is this correct?

    Thanks
    Phil

  2. #2
    Junior Member
    Join Date
    Oct 2007
    Posts
    2

    Re: Port definition: nBufferCountMin

    So, at initialisation, does a component set both fields to the minimum number of buffers that the port needs?

    >> typically a component puts nBufferCountActual = nBufferCountMin at initialisation.

    Then should the client modify the nBufferCountActual before it calls AllocateBuffer/UseBuffer on the port?

    >> yes if not tunneling. This value is used to determine when a port is populated.

    BR, Bruno

Similar Threads

  1. can i set the port buffers or port as read only?
    By Database4 in forum OpenMAX IL
    Replies: 2
    Last Post: 11-22-2010, 03:57 PM
  2. Port definition: nBufferCountMin
    By pedwo in forum OpenMAX
    Replies: 1
    Last Post: 01-01-1970, 12:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •