Interface IVideoFormatCapabilities
interface IVideoFormatCapabilities
Extends com.amazon.apmf.IStandard
Interface to get video format capabilities
of a video codec.
Methods
getResolution()
Gets the supported resolutions. Gets the supported resolution range for codec or runtime get the resolution associated with buffers, where return array size varies according to usecase:-Resolution[]getResolution()
- for the codec capabilities, array size of two means min resolution at 0 index and max resolution at 1 index.
Returns
Resolution[]
resolution supported by codec in range or resolution for buffer.
getColorFormat()
Gets the supported color formats. Gets the supported color formats(for decoders output or encoders input) for codec or runtime gets the color format of buffers, where return array size varies according to usecase:-com.amazon.kepler.graphics.BufferPixelFormat[]getColorFormat()
- for the codec capabilities, array size of one and more than one is supported.
Returns
com.amazon.kepler.graphics.BufferPixelFormat[]
list of supported color formats from the available formats.
defined in BufferPixelFormat.
getMaxFrameRate()
Gets the maximum FrameRate for particular width and height. Platform internally uses some existing measurement points in idle condition to extrapolate framerate for particular width/heigh which should be treated as hint and may not be feasible in all the system conditions.floatgetMaxFrameRate(Resolutionresolution)
Parameters
resolution
Resolution — Required
for which supported max frame rate is to be queried
Returns
float
maximum supported framerate per second.

