Interface
Encoder
access this type via:
media.video.Encoder
(provides, requires or uses)
--- semantic variants:
av1
API to encode video frames.
Functions
Encoder(
store
WH
size, int framesPerSecond, int bitsPerSecond)
EncodedFrame[]
encode(
PixelMapYUV
frame, bool keyFrame)
EncodedFrame[]
finish()
Encoder(
store
WH
size, int framesPerSecond, int bitsPerSecond)
Instantiate a new encoder, for a given video resolution (size), a frames-per-second value, and a bits-per-second of encoding quality.
EncodedFrame[]
encode(
PixelMapYUV
frame, bool keyFrame)
Encode the next video frame, indicating whether or not it should be a keyframe.
EncodedFrame[]
finish()
Finish encoding, which may return a final batch of encoded frames.