toggle menu
RootEncoder
androidJvm
switch theme
search in API
encoder
/
com.pedro.encoder.input.gl.render.filters.object
/
SurfaceFilterRender
Surface
Filter
Render
@
RequiresApi
(
api
=
Build.VERSION_CODES.JELLY_BEAN_MR2
)
open
class
SurfaceFilterRender
:
BaseObjectFilterRender
Created by pedro on 18/07/18.
Members
Constructors
Surface
Filter
Render
Link copied to clipboard
constructor
(
)
constructor
(
surfaceReadyCallback
:
SurfaceFilterRender.SurfaceReadyCallback
)
Types
Surface
Ready
Callback
Link copied to clipboard
interface
SurfaceReadyCallback
Properties
FLOAT_SIZE_BYTES
Link copied to clipboard
val
FLOAT_SIZE_BYTES
:
Int
=
4
preview
Height
Link copied to clipboard
open
val
previewHeight
:
Int
preview
Width
Link copied to clipboard
open
val
previewWidth
:
Int
render
Handler
Link copied to clipboard
open
var
renderHandler
:
RenderHandler
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
Position
Link copied to clipboard
open
fun
getPosition
(
)
:
PointF
get
Previous
Tex
Id
Link copied to clipboard
open
fun
getPreviousTexId
(
)
:
Int
get
Rotation
Link copied to clipboard
open
fun
getRotation
(
)
:
Int
get
Scale
Link copied to clipboard
open
fun
getScale
(
)
:
PointF
get
Tex
Id
Link copied to clipboard
open
fun
getTexId
(
)
:
Int
init
FBOLink
Link copied to clipboard
open
fun
initFBOLink
(
)
init
Gl
Link copied to clipboard
abstract
fun
initGl
(
width
:
Int
,
height
:
Int
,
context
:
Context
,
previewWidth
:
Int
,
previewHeight
:
Int
)
open
fun
initGl
(
width
:
Int
,
height
:
Int
,
context
:
Context
,
previewWidth
:
Int
,
previewHeight
:
Int
)
release
Link copied to clipboard
open
fun
release
(
)
set
Alpha
Link copied to clipboard
open
fun
setAlpha
(
alpha
:
Float
)
set
Default
Scale
Link copied to clipboard
open
fun
setDefaultScale
(
streamWidth
:
Int
,
streamHeight
:
Int
)
set
Position
Link copied to clipboard
open
fun
setPosition
(
positionTo
:
TranslateTo
)
open
fun
setPosition
(
x
:
Float
,
y
:
Float
)
set
Preview
Size
Link copied to clipboard
open
fun
setPreviewSize
(
previewWidth
:
Int
,
previewHeight
:
Int
)
set
Previous
Tex
Id
Link copied to clipboard
open
fun
setPreviousTexId
(
texId
:
Int
)
set
Rotation
Link copied to clipboard
open
fun
setRotation
(
angle
:
Int
)
set
Scale
Link copied to clipboard
open
fun
setScale
(
scaleX
:
Float
,
scaleY
:
Float
)