Interface IVideoFormat
interface IVideoFormat
Extends com.amazon.apmf.IStandard
Interface to configure the video format
Methods
setResolution()
Sets the resolutions. Recomended to provide the max resolution during transform initialization and required resolution for any dynamic resolution switching during encoding in running state. This method can also be called for dynamic configuration.voidsetResolution(Resolutionresolution)
Parameters
resolution
Resolution — Required
i.e. width and height in no of pixels
setColorFormat()
Sets the color format. This color format is associated with the raw buffers which is applicable for decoders output or encoders input. Codec support standard and/or proprietary color formats, where application has to choose based on the usecase. For example, if the video decoder supports “FLEX_YCbCr_420_888/FLEX_YCbCr_420_101010” which means proprietary color format, is best choice for video decoding when application will not read the buffer and its needed just for rendering on display.voidsetColorFormat(com.amazon.kepler.graphics.BufferPixelFormat*format)
Parameters
format
com.amazon.kepler.graphics.BufferPixelFormat* — Required
The color format value, supported values are defined in
BufferPixelFormat,
setColorPrimaries()
Sets the color primaries. Color Primaries represent three points(RGB primaries) of the triangle on the CIE 1931 chromaticity diagram, and the space inside the triangle is the gamut. Applicable for decoders input or encoders output.voidsetColorPrimaries(VideoColorPrimaries*primaries)
Parameters
primaries
VideoColorPrimaries* — Required
The color primaries value, supported values are
defined in VideoColorPrimaries.
setColorTransfer()
Sets the color transfer. Color Transfer characteristics map the color gamut to the screen signal Applicable for decoders input or encoders output.voidsetColorTransfer(VideoColorTransfer*transfer)
Parameters
transfer
VideoColorTransfer* — Required
The color transfer value, supported values are
defined in VideoColorTransfer.
setColorMatrix()
Sets the color matrix. Values are taken from Table 4 of ISO/IEC 23001-8:2016 Applicable for decoders input or encoders output.voidsetColorMatrix(VideoColorMatrix*matrix)
Parameters
matrix
VideoColorMatrix* — Required
The color matrix value, supported values are defined in
VideoColorMatrix.
setColorRange()
Sets the color range. Applicable for decoders input or encoders output.voidsetColorRange(VideoColorRange*range)
Parameters
range
VideoColorRange* — Required
The color range value, supported values are defined in
VideoColorRange.
setFrameRate()
Sets the frameRate. This method can also be called for dynamic configuration.voidsetFrameRate(floatframerate)
Parameters
framerate
float — Required
The framerate value in no of frames/sec.

