Class CodecMetadata
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<CodecMetadata.Builder,
CodecMetadata>
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Integer
bitDepth()
The number of bits used per color component in the video essence such as 8, 10, or 12 bits.static CodecMetadata.Builder
builder()
final String
The chroma subsampling format used in the video encoding, such as "4:2:0" or "4:4:4".final FrameRate
The frame rate of the video or audio track, expressed as a fraction with numerator and denominator values.final ColorPrimaries
The color space primaries of the video track, defining the red, green, and blue color coordinates used for the video.final String
The color space primaries of the video track, defining the red, green, and blue color coordinates used for the video.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Integer
height()
The height in pixels as coded by the codec.final String
level()
The codec level or tier that specifies the maximum processing requirements and capabilities.final MatrixCoefficients
The color space matrix coefficients of the video track, defining how RGB color values are converted to and from YUV color space.final String
The color space matrix coefficients of the video track, defining how RGB color values are converted to and from YUV color space.final String
profile()
The codec profile used to encode the video.final String
scanType()
The scanning method specified in the video essence, indicating whether the video uses progressive or interlaced scanning.static Class
<? extends CodecMetadata.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final TransferCharacteristics
The color space transfer characteristics of the video track, defining the relationship between linear light values and the encoded signal values.final String
The color space transfer characteristics of the video track, defining the relationship between linear light values and the encoded signal values.final Integer
width()
The width in pixels as coded by the codec.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
bitDepth
The number of bits used per color component in the video essence such as 8, 10, or 12 bits. Standard range (SDR) video typically uses 8-bit, while 10-bit is common for high dynamic range (HDR).- Returns:
- The number of bits used per color component in the video essence such as 8, 10, or 12 bits. Standard range (SDR) video typically uses 8-bit, while 10-bit is common for high dynamic range (HDR).
-
chromaSubsampling
The chroma subsampling format used in the video encoding, such as "4:2:0" or "4:4:4". This describes how color information is sampled relative to brightness information. Different subsampling ratios affect video quality and file size, with "4:4:4" providing the highest color fidelity and "4:2:0" being most common for standard video.- Returns:
- The chroma subsampling format used in the video encoding, such as "4:2:0" or "4:4:4". This describes how color information is sampled relative to brightness information. Different subsampling ratios affect video quality and file size, with "4:4:4" providing the highest color fidelity and "4:2:0" being most common for standard video.
-
codedFrameRate
The frame rate of the video or audio track, expressed as a fraction with numerator and denominator values.- Returns:
- The frame rate of the video or audio track, expressed as a fraction with numerator and denominator values.
-
colorPrimaries
The color space primaries of the video track, defining the red, green, and blue color coordinates used for the video. This information helps ensure accurate color reproduction during playback and transcoding.If the service returns an enum value that is not available in the current SDK version,
colorPrimaries
will returnColorPrimaries.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcolorPrimariesAsString()
.- Returns:
- The color space primaries of the video track, defining the red, green, and blue color coordinates used for the video. This information helps ensure accurate color reproduction during playback and transcoding.
- See Also:
-
colorPrimariesAsString
The color space primaries of the video track, defining the red, green, and blue color coordinates used for the video. This information helps ensure accurate color reproduction during playback and transcoding.If the service returns an enum value that is not available in the current SDK version,
colorPrimaries
will returnColorPrimaries.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcolorPrimariesAsString()
.- Returns:
- The color space primaries of the video track, defining the red, green, and blue color coordinates used for the video. This information helps ensure accurate color reproduction during playback and transcoding.
- See Also:
-
height
The height in pixels as coded by the codec. This represents the actual encoded video height as specified in the video stream headers.- Returns:
- The height in pixels as coded by the codec. This represents the actual encoded video height as specified in the video stream headers.
-
level
The codec level or tier that specifies the maximum processing requirements and capabilities. Levels define constraints such as maximum bit rate, frame rate, and resolution.- Returns:
- The codec level or tier that specifies the maximum processing requirements and capabilities. Levels define constraints such as maximum bit rate, frame rate, and resolution.
-
matrixCoefficients
The color space matrix coefficients of the video track, defining how RGB color values are converted to and from YUV color space. This affects color accuracy during encoding and decoding processes.If the service returns an enum value that is not available in the current SDK version,
matrixCoefficients
will returnMatrixCoefficients.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommatrixCoefficientsAsString()
.- Returns:
- The color space matrix coefficients of the video track, defining how RGB color values are converted to and from YUV color space. This affects color accuracy during encoding and decoding processes.
- See Also:
-
matrixCoefficientsAsString
The color space matrix coefficients of the video track, defining how RGB color values are converted to and from YUV color space. This affects color accuracy during encoding and decoding processes.If the service returns an enum value that is not available in the current SDK version,
matrixCoefficients
will returnMatrixCoefficients.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommatrixCoefficientsAsString()
.- Returns:
- The color space matrix coefficients of the video track, defining how RGB color values are converted to and from YUV color space. This affects color accuracy during encoding and decoding processes.
- See Also:
-
profile
The codec profile used to encode the video. Profiles define specific feature sets and capabilities within a codec standard. For example, H.264 profiles include Baseline, Main, and High, each supporting different encoding features and complexity levels.- Returns:
- The codec profile used to encode the video. Profiles define specific feature sets and capabilities within a codec standard. For example, H.264 profiles include Baseline, Main, and High, each supporting different encoding features and complexity levels.
-
scanType
The scanning method specified in the video essence, indicating whether the video uses progressive or interlaced scanning.- Returns:
- The scanning method specified in the video essence, indicating whether the video uses progressive or interlaced scanning.
-
transferCharacteristics
The color space transfer characteristics of the video track, defining the relationship between linear light values and the encoded signal values. This affects brightness and contrast reproduction.If the service returns an enum value that is not available in the current SDK version,
transferCharacteristics
will returnTransferCharacteristics.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtransferCharacteristicsAsString()
.- Returns:
- The color space transfer characteristics of the video track, defining the relationship between linear light values and the encoded signal values. This affects brightness and contrast reproduction.
- See Also:
-
transferCharacteristicsAsString
The color space transfer characteristics of the video track, defining the relationship between linear light values and the encoded signal values. This affects brightness and contrast reproduction.If the service returns an enum value that is not available in the current SDK version,
transferCharacteristics
will returnTransferCharacteristics.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtransferCharacteristicsAsString()
.- Returns:
- The color space transfer characteristics of the video track, defining the relationship between linear light values and the encoded signal values. This affects brightness and contrast reproduction.
- See Also:
-
width
The width in pixels as coded by the codec. This represents the actual encoded video width as specified in the video stream headers.- Returns:
- The width in pixels as coded by the codec. This represents the actual encoded video width as specified in the video stream headers.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<CodecMetadata.Builder,
CodecMetadata> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-