GlStreamInterface
Created by pedro on 14/3/22.
Functions
Appends the specified filter to the end. You can modify filter's parameters after set it to stream.
Inserts the specified filter at the specified position. You can modify filter's parameters after set it to stream.
Set surface from MediaCodec class to Opengl. This surface is used to copy pixels from Opengl surface to this surface and encode this pixels.
Remove all filters
Force stream to work with fps selected in prepareVideo method. Must be called before prepareVideo. This is not recommend because could produce fps problems.
Get Surface generated by Opengl. This should be called after start render.
Get SurfaceTexture generated by Opengl. This should be called after start render.
Removes the first occurrence of the specified element from this list, if it is present.
Remove the filter at the specified position.
Remove surface generated from MediaCodec.
Set video encoder size use to Opengl
Replace the filter in position 0 or add the filter if list is empty. You can modify filter's parameters after set it to stream.
Replaces the filter at the specified position with the specified filter. You can modify filter's parameters after set it to stream.
When true, flips only the preview horizontally
When true, flips only the preview vertically
When true, flips only the stream horizontally
When true, flips only the stream vertically
Capture an Image from Opengl.