Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content

Name

VideoFormat provides setters to set different properties which can be used to query for a specific video codec which satisfies all the properties set.

Constructors

new VideoFormat()

new VideoFormat(): VideoFormat

Returns

VideoFormat

Accessors

colorFormat

Get Signature

get colorFormat(): string
Returns
string set by setter.

Set Signature

set colorFormat(format): void 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.
Parameters
format
string
Returns
void

colorMatrix

Get Signature

get colorMatrix(): VideoColorMatrix
Returns
VideoColorMatrix set by the setter

Set Signature

set colorMatrix(matrix): void Sets the color matrix. Values are taken from Table 4 of ISO/IEC 23001-8:2016 Applicable for decoders input or encoders output.
Parameters
matrix
VideoColorMatrix
Returns
void
Last modified on October 2, 2025