VideoCodec
Encodes and decodes video using Android media codecs.
Types
Properties
The android.media.MediaCodec instance.
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.
Functions
Installs callbacks and configures the codec with its media format, options, surface, and processing mode.
Releases the Android codec, callback thread, and cached output format.
Tells the receiver to start running.
Tells the receiver to stop running.
Runs a short, nonblocking operation only while instance is the running codec. Use after waiting for input outside the codec's lifetime lock.