PDA

View Full Version : how to share data between component A and component B



openmaxqq
08-06-2008, 01:13 AM
hi,
i have a problem that how to share data between components.
for example, i get samplerate and channels from component A, and i want to set the two values to component B.
what can i do?
idea1:
transfer the two from A to B like usual file data.
idea2:
using GetParameter() to get from component A and using SetParameter() function to set component B.

Another problem is about framebuffer.
i am working on debian in VM.
what's the detail steps for establish the enviroment for framebuffer?
how to compile the core and what is the selected items?

Have some guys done these before? if any, share your idea to me.

thank.

rnixon
08-18-2008, 01:37 PM
for example, i get samplerate and channels from component A, and i want to set the two values to component B.
what can i do?
I'd recommend using the buffer flag OMX_BUFFERFLAG_EXTRADATA and adding the extra data between the filled length (aligned) and the allocated length. This data should have the headers defined in "4.2.33 OMX_OTHER_EXTRADATATYPE". A closing header with nDataSize set to 0 should be used.

Another problem is about framebuffer.
what's the detail steps for establish the enviroment for framebuffer?
how to compile the core and what is the selected items?
What use-case are you trying to achieve?

Thanks,

Roger