ColorInfo.Builder
class ColorInfo.Builder
Builds ColorInfo instances.
Use buildUpon to obtain a builder representing an existing ColorInfo.
Summary
Public constructors |
|---|
Builder()Creates a new instance with default values. |
Public functions |
|
|---|---|
ColorInfo! |
build()Builds a new |
ColorInfo.Builder! |
@CanIgnoreReturnValueSets chroma bit depth. |
ColorInfo.Builder! |
@CanIgnoreReturnValueSets the color range. |
ColorInfo.Builder! |
@CanIgnoreReturnValueSets the color space. |
ColorInfo.Builder! |
@CanIgnoreReturnValueSets the color transfer. |
ColorInfo.Builder! |
@CanIgnoreReturnValueSets the HdrStaticInfo as defined in CTA-861.3. |
ColorInfo.Builder! |
@CanIgnoreReturnValueSets the luma bit depth. |
Public constructors
Public functions
setChromaBitdepth
@CanIgnoreReturnValue
fun setChromaBitdepth(chromaBitdepth: Int): ColorInfo.Builder!
Sets chroma bit depth.
| Returns | |
|---|---|
ColorInfo.Builder! |
The builder. |
setColorRange
@CanIgnoreReturnValue
fun setColorRange(colorRange: @C.ColorRange Int): ColorInfo.Builder!
Sets the color range.
Valid values are COLOR_RANGE_LIMITED, COLOR_RANGE_FULL or NO_VALUE if unknown.
| Parameters | |
|---|---|
colorRange: @C.ColorRange Int |
The color range. The default value is |
| Returns | |
|---|---|
ColorInfo.Builder! |
This |
setColorSpace
@CanIgnoreReturnValue
fun setColorSpace(@C.ColorSpace colorSpace: Int): ColorInfo.Builder!
Sets the color space.
Valid values are COLOR_SPACE_BT601, COLOR_SPACE_BT709, COLOR_SPACE_BT2020 or NO_VALUE if unknown.
| Parameters | |
|---|---|
@C.ColorSpace colorSpace: Int |
The color space. The default value is |
| Returns | |
|---|---|
ColorInfo.Builder! |
This |
setColorTransfer
@CanIgnoreReturnValue
fun setColorTransfer(@C.ColorTransfer colorTransfer: Int): ColorInfo.Builder!
Sets the color transfer.
Valid values are COLOR_TRANSFER_LINEAR, COLOR_TRANSFER_HLG, COLOR_TRANSFER_ST2084, COLOR_TRANSFER_SDR or NO_VALUE if unknown.
| Parameters | |
|---|---|
@C.ColorTransfer colorTransfer: Int |
The color transfer. The default value is |
| Returns | |
|---|---|
ColorInfo.Builder! |
This |
setHdrStaticInfo
@CanIgnoreReturnValue
fun setHdrStaticInfo(hdrStaticInfo: ByteArray<Byte>?): ColorInfo.Builder!
Sets the HdrStaticInfo as defined in CTA-861.3.
| Returns | |
|---|---|
ColorInfo.Builder! |
This |
setLumaBitdepth
@CanIgnoreReturnValue
fun setLumaBitdepth(lumaBitdepth: Int): ColorInfo.Builder!
Sets the luma bit depth.
| Returns | |
|---|---|
ColorInfo.Builder! |
The builder. |