In general terms, an "overlay" is part of a display controller hardware block that it uses primarily to combine multiple streams of image frames into a single output frame which is sent to a display panel of some sort. The Android abstraction for this is a hardware specific library that implements the interface defined in the overlay.h file, nested deep within the root hardware folder. In this abstraction, the surface flinger provides positional control information and some other entity provide the frame data. The typical frame data providers are Camera HAL and Video Playback "HAL". To answer your questions directly: 1) the hardware performs the frame composition and the overlay library |
|
来自: tracyf > 《multimedia》