Package com.banuba.sdk.frame
Enum FramePixelBufferFormat
- java.lang.Object
-
- java.lang.Enum<FramePixelBufferFormat>
-
- com.banuba.sdk.frame.FramePixelBufferFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FramePixelBufferFormat>
public enum FramePixelBufferFormat extends java.lang.Enum<FramePixelBufferFormat>
Available image formats forFramePixelBuffer
Which are supported by thePlayer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BPC8_RGBA
I420_BT601_FULL
I420_BT601_VIDEO
I420_BT709_FULL
I420_BT709_VIDEO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.banuba.sdk.effect_player.ColorRange
getColorRange()
Get color range.com.banuba.sdk.effect_player.ColorStd
getColorStandard()
Get color standard.int
getPixelComponents()
Get number of color components.com.banuba.sdk.types.PixelFormat
getPixelFormat()
Get pixel format.boolean
isBpc8()
boolean
isI420()
static FramePixelBufferFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FramePixelBufferFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BPC8_RGBA
public static final FramePixelBufferFormat BPC8_RGBA
-
I420_BT601_FULL
public static final FramePixelBufferFormat I420_BT601_FULL
-
I420_BT601_VIDEO
public static final FramePixelBufferFormat I420_BT601_VIDEO
-
I420_BT709_FULL
public static final FramePixelBufferFormat I420_BT709_FULL
-
I420_BT709_VIDEO
public static final FramePixelBufferFormat I420_BT709_VIDEO
-
-
Method Detail
-
values
public static FramePixelBufferFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FramePixelBufferFormat c : FramePixelBufferFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FramePixelBufferFormat valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isBpc8
public boolean isBpc8()
- Returns:
- true if the current format has only one plane
-
isI420
public boolean isI420()
- Returns:
- true if the current format is i420 (has three planes)
-
getPixelFormat
@Nullable public com.banuba.sdk.types.PixelFormat getPixelFormat()
Get pixel format. IMPORTANT: available only for Bpc8 formats.- Returns:
- pixel format or null if the format is not Bpc8
- See Also:
Available formats of pixels (only RGBA available here)
-
getColorStandard
@Nullable public com.banuba.sdk.effect_player.ColorStd getColorStandard()
Get color standard. IMPORTANT: available only for i420 (yuv) formats.- Returns:
- color standard or null if the format is not i420 (is not yuv)
- See Also:
Available color standards
-
getColorRange
@Nullable public com.banuba.sdk.effect_player.ColorRange getColorRange()
Get color range. IMPORTANT: available only for i420 (yuv) formats.- Returns:
- color range or null if the format is not i420 (is not yuv)
- See Also:
Available color ranges
-
getPixelComponents
public int getPixelComponents()
Get number of color components. IMPORTANT: available only for bpc8 (RGB) formats.- Returns:
- number of color components
-
-