Android SDK 100ms
lib
/
live.hms.video.utils
/
YuvFrame
Yuv
Frame
open
class
YuvFrame
Constructors
Functions
Properties
Constructors
Yuv
Frame
Link copied to clipboard
open
fun
YuvFrame
(
videoFrame
:
VideoFrame
)
Creates a YuvFrame from the provided VideoFrame.
Yuv
Frame
Link copied to clipboard
open
fun
YuvFrame
(
videoFrame
:
VideoFrame
,
processingFlags
:
Int
)
Creates a YuvFrame from the provided VideoFrame.
Yuv
Frame
Link copied to clipboard
open
fun
YuvFrame
(
videoFrame
:
VideoFrame
,
processingFlags
:
Int
,
timestamp
:
Long
)
Creates a YuvFrame from the provided VideoFrame.
Functions
dispose
Link copied to clipboard
open
fun
dispose
(
)
from
Video
Frame
Link copied to clipboard
open
fun
fromVideoFrame
(
videoFrame
:
VideoFrame
,
processingFlags
:
Int
,
timestamp
:
Long
)
Replaces the data in this YuvFrame with the data from the provided frame.
get
Bitmap
Link copied to clipboard
open
fun
getBitmap
(
)
:
Bitmap
Converts this YUV frame to an ARGB_8888 Bitmap.
has
Data
Link copied to clipboard
open
fun
hasData
(
)
:
Boolean
Properties
height
Link copied to clipboard
open
var
height
:
Int
nv21Buffer
Link copied to clipboard
open
var
nv21Buffer
:
Array
<
Byte
>
PROCESSING_CROP_TO_SQUARE
Link copied to clipboard
val
PROCESSING_CROP_TO_SQUARE
:
Int
=
1
PROCESSING_NONE
Link copied to clipboard
val
PROCESSING_NONE
:
Int
=
0
rotation
Degree
Link copied to clipboard
open
var
rotationDegree
:
Int
timestamp
Link copied to clipboard
open
var
timestamp
:
Long
width
Link copied to clipboard
open
var
width
:
Int