encode

Function Usage

Video encoding API of the VideoEncoder class.

Prototype

1
encode(inputImage: Image, frameId: int)

Input Parameters

Parameter

Type

Description

inputImage

Image class

Image class before encoding

frameId

int

Video frame index

Exception Throwing Interface

If the encoding fails, a runtime exception is thrown.