Results 1 to 5 of 5

Thread: Processing buffers whilst output port disabled

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

    Processing buffers whilst output port disabled

    Are there any assumptions that the IL client can make wrt components processing buffers whilst it's output ports are disabled?

    For example, a video decoder could process input buffers until it determines the output frame size. However, an implementor could make the component wait until it has been told to fill a minimum number of output buffers (of the default size).

    Thanks
    Phil

  2. #2
    Member
    Join Date
    May 2008
    Location
    California, USA
    Posts
    51

    Re: Processing buffers whilst output port disabled

    Yes, you should process buffers in a component with a disabled port. Obviously that port can't be used (it doesn't have any buffers). This is useful for the use-case that you mention, as you may get a PortSettingsChanged event once the start of the stream has been parsed. If the output port is disabled, you could tunnel it only once the format is known.

    There is some ongoing discussion about this though, as you may not get the event if the settings match the default ones.

    Thanks,

    Roger
    Roger Nixon, Broadcom Corporation

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

    Re: Processing buffers whilst output port disabled

    I think that disabling a port should not leed to any data being thrown away. On that basis a video decoder with a disabled output port can only process input data until the point that the decoder needs to output a frame. Does that fit with your understanding?

    Thanks
    Phil

  4. #4
    Member
    Join Date
    May 2008
    Location
    California, USA
    Posts
    51

    Re: Processing buffers whilst output port disabled

    Quote Originally Posted by pedwo
    I think that disabling a port should not leed to any data being thrown away. On that basis a video decoder with a disabled output port can only process input data until the point that the decoder needs to output a frame. Does that fit with your understanding?
    Yes.

    Roger
    Roger Nixon, Broadcom Corporation

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

    Re: Processing buffers whilst output port disabled

    For a video decoder, if we assume that the IL client can ask a component to process input buffers with the output port disabled, how does it know when to enable the port? The IL client can't wait for PortSettingsChanged event as this is only sent if the port changes to non-default values.

    Thanks
    Phil Edworthy

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. Replies: 4
    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
  •