如上图所示,为OpenMax的软件调用流程,下面简要介绍各层的主要功能:
Multimediaframework:
UsesOMXILtoaccessvideohardware
OMXILvideodecoder/encodercomponents:
Wrapthefunctionalityofthecomponentrequiredinthetargetsystem
OMXILwrapperprovidesastandardinterfaceforthefunctiontobe
wrapped
SuitableforV4L2interface
/hardware/qcom/media/mm-video-v4l2/vidc/
Kernelvideodriver:
V4L2framework/interface--》
Video4Linux(secondversion)isavideoAPIandframeworkforLinux;
handlesevents,callbacks,andbuffermanagement
msm_vidc--》
Commondriverforencoderanddecoder;MSM-specificplug-infor
V4L2framework;instance,videoengine,bufferallocation,andclock/bus
management
kernel/drivers/media/platform/msm/vidc/
HFI: