public interface OverlayerAllows to overlay custom graphics on top of a stream rendered by a
After each frame is rendered,
overlay(Rect, Rect, Histogram)will be called; client code must implement this method to render the appropriate overlay on top of the rendered frame.
Overlayer interface also allows to receive color histogram computations, when
enabledonto which the overlayer is installed.
Nested Class Summary
Nested Classes Modifier and Type Interface Description
Overlayer.HistogramColor histogram information.
void overlay(@NonNull Rect renderZone, @NonNull Rect contentZone, @NonNull Overlayer.Histogram histogram)Renders custom overlay on top of current frame.
GsdkStreamViewGL rendering thread.
renderZone- area where the frame was rendered (including any padding introduced by scaling), invalid after this method returns
contentZone- area where frame content was rendered (excluding any padding introduced by scaling), invalid after this method returns
histogram- color histogram info, invalid after this method returns