-
public class Stream.BuilderUse
Builderto construct an Stream object instance.By default, Stream objects are ACQUIRED and must have external images pushed to them via setAcquiredImage.To create a NATIVE stream, call the
method on the builder.stream
-
-
Constructor Summary
Constructors Constructor Description Stream.Builder()Use Builderto construct an Stream object instance.
-
Method Summary
Modifier and Type Method Description Stream.Builderstream(@NonNull() Object streamSource)Creates a NATIVE stream. Stream.Builderwidth(int width)Stream.Builderheight(int height)Streambuild(@NonNull() Engine engine)Creates a new Streamobject instance.-
-
Method Detail
-
stream
@NonNull() Stream.Builder stream(@NonNull() Object streamSource)
Creates a NATIVE stream. Native streams can sample datadirectly from an opaque platform object such as a SurfaceTexture on Android.
- Parameters:
streamSource- an opaque native stream handle, e.g.
-
width
@NonNull() Stream.Builder width(int width)
- Parameters:
width- initial width of the incoming stream.
-
height
@NonNull() Stream.Builder height(int height)
- Parameters:
height- initial height of the incoming stream.
-
-
-
-