VideoCodec
Encodes and decodes video using Android media codecs.
Types
Properties
The android.media.MediaCodec instance.
Explicit HLG playback selection; decoding color metadata remains authoritative.
The interval between keyframes, in seconds.
Specifies the input mime type.
Indicates whether the receiver is running.
The listener for codec buffer and format callbacks, or null.
The processing mode: MODE_ENCODE or MODE_DECODE. Set before starting the codec.
Additional media format options applied during configure.
Specifies the output mime type.
The pixel transform instance.
Specifies the profile for a video output.
The surface for a video media codec.
Crop in the decoder's underlying buffer; right/bottom are exclusive.
Functions
Installs callbacks and configures the codec with its media format, options, surface, and processing mode.
Tells the receiver to start running.
Tells the receiver to stop running.
Rejects unsupported HLG settings before a publication request is sent.
Runs a short, nonblocking operation only while instance is the running codec. Use after waiting for input outside the codec's lifetime lock.