Interface IMediaTransform
interface IMediaTransform
Extends com.amazon.apmf.IStandard
State of the Transform.
The State machine is as shown below.
--------------INVALID (Start)---| | | | V V | WAIT_FOR_RESOURCE --->INITIALIZED | | | V | CONFIGURED | | | V | START | | | V | STOP | | |
Methods
startAsync()
void startAsync()
Triggers state change of the Transform to RUNNING so that
it can start processing frames.
stopAsync()
void stopAsync()
Triggers state change of the Transform to STOPPED. Transform stops
processing frames further, but the frames queued in input & output
queues remain. Use flush to return all frames to the app.
flushAsync()
void flushAsync()
Triggers return of all input frames back to the app, all
the frames which are enqueued into mediatransform are
dropped and not processed.In case of decoder usecases
clients are expected to send sync frames (I frame) as the first
frame after flush.
getOutputBufferQueue()
Gets the IBufferQueue object for the media frame output queue. Clients must use this object to attach as reader to this queue and recieve output frames from mediatransformcom.amazon.kepler.buffer_queue.IBufferQueue*getOutputBufferQueue()
Returns
com.amazon.kepler.buffer_queue.IBufferQueue*
IBufferQueue object for the output queue/
applyDynamicConfig()
Apply dynamic config when transform in running state. This is mainly for the encoder to change bitrate, bitrate mode, framerate, profile, level, I and IDR frame intervals.voidapplyDynamicConfig(com.amazon.kepler.media_descriptor.IMediaConfig*config)
Parameters
config
com.amazon.kepler.media_descriptor.IMediaConfig* — Required
for Video Encoder dynamic configuration, Application
has to first create IMediaConfig object by calling
createMediaConfigForVideoEncoder followed by the TQI to the
respective interfaces for any Dynamic setting.

