RootEncoder
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
RootEncoder
encoder
/
com.pedro.encoder.input.gl.render
/
CameraRender
Camera
Render
@
RequiresApi
(
api
=
Build.VERSION_CODES.JELLY_BEAN_MR2
)
open
class
CameraRender
:
BaseRenderOffScreen
Created by pedro on 29/01/18.
Members
Constructors
Camera
Render
Link copied to clipboard
constructor
(
)
Properties
FLOAT_
SIZE_
BYTES
Link copied to clipboard
val
FLOAT_SIZE_BYTES
:
Int
=
4
SQUARE_
VERTEX_
DATA_
POS_
OFFSET
Link copied to clipboard
val
SQUARE_VERTEX_DATA_POS_OFFSET
:
Int
=
0
SQUARE_
VERTEX_
DATA_
STRIDE_
BYTES
Link copied to clipboard
val
SQUARE_VERTEX_DATA_STRIDE_BYTES
:
Int
=
20
SQUARE_
VERTEX_
DATA_
UV_
OFFSET
Link copied to clipboard
val
SQUARE_VERTEX_DATA_UV_OFFSET
:
Int
=
3
surface
Link copied to clipboard
open
val
surface
:
Surface
surface
Texture
Link copied to clipboard
open
val
surfaceTexture
:
SurfaceTexture
Functions
draw
Link copied to clipboard
open
fun
draw
(
)
get
Tex
Id
Link copied to clipboard
open
fun
getTexId
(
)
:
Int
init
Gl
Link copied to clipboard
open
fun
initGl
(
width
:
Int
,
height
:
Int
,
context
:
Context
,
previewWidth
:
Int
,
previewHeight
:
Int
)
release
Link copied to clipboard
open
fun
release
(
)
set
Flip
Link copied to clipboard
open
fun
setFlip
(
isFlipHorizontal
:
Boolean
,
isFlipVertical
:
Boolean
)
set
Mode
Link copied to clipboard
open
fun
setMode
(
previewMode
:
Boolean
)
set
Rotation
Link copied to clipboard
open
fun
setRotation
(
rotation
:
Int
)
set
Rotation
Preview
Link copied to clipboard
open
fun
setRotationPreview
(
rotation
:
Int
)
set
Rotation
Stream
Link copied to clipboard
open
fun
setRotationStream
(
rotation
:
Int
)
update
Tex
Image
Link copied to clipboard
open
fun
updateTexImage
(
)