MainRender

@RequiresApi(api = 18)
class MainRender

Created by pedro on 20/3/22.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
fun drawScreen(width: Int, height: Int, mode: AspectRatioMode, rotation: Int, flipStreamVertical: Boolean, flipStreamHorizontal: Boolean)
Link copied to clipboard
fun drawScreenEncoder(width: Int, height: Int, isPortrait: Boolean, rotation: Int, flipStreamVertical: Boolean, flipStreamHorizontal: Boolean)
Link copied to clipboard
fun drawScreenPreview(width: Int, height: Int, isPortrait: Boolean, mode: AspectRatioMode, rotation: Int, flipStreamVertical: Boolean, flipStreamHorizontal: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun initGl(context: Context, encoderWidth: Int, encoderHeight: Int, previewWidth: Int, previewHeight: Int)
Link copied to clipboard
Link copied to clipboard
fun release()
Link copied to clipboard
fun setCameraFlip(isFlipHorizontal: Boolean, isFlipVertical: Boolean)
Link copied to clipboard
fun setCameraRotation(rotation: Int)
Link copied to clipboard
fun setFilterAction(filterAction: FilterAction, position: Int, baseFilterRender: BaseFilterRender)
Link copied to clipboard
fun setPreviewSize(previewWidth: Int, previewHeight: Int)
Link copied to clipboard