Package im.zego.zegoexpress.constants
Enum ZegoVideoFrameFormat
- java.lang.Object
-
- java.lang.Enum<ZegoVideoFrameFormat>
-
- im.zego.zegoexpress.constants.ZegoVideoFrameFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoVideoFrameFormat>
public enum ZegoVideoFrameFormat extends java.lang.Enum<ZegoVideoFrameFormat>
Video frame format.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABGR32
ABGR32 formatARGB32
ARGB32 formatBGR24
BGR24 formatBGRA32
BGRA32 formatI420
I420 (YUV420Planar) formatI422
I422 (YUV422Planar) formatNV12
NV12 (YUV420SemiPlanar) formatNV21
NV21 (YUV420SemiPlanar) formatRGB24
RGB24 formatRGBA32
RGBA32 formatUnknown
Unknown format, will take platform default
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoVideoFrameFormat
getZegoVideoFrameFormat(int value)
int
value()
static ZegoVideoFrameFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoVideoFrameFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Unknown
public static final ZegoVideoFrameFormat Unknown
Unknown format, will take platform default
-
I420
public static final ZegoVideoFrameFormat I420
I420 (YUV420Planar) format
-
NV12
public static final ZegoVideoFrameFormat NV12
NV12 (YUV420SemiPlanar) format
-
NV21
public static final ZegoVideoFrameFormat NV21
NV21 (YUV420SemiPlanar) format
-
BGRA32
public static final ZegoVideoFrameFormat BGRA32
BGRA32 format
-
RGBA32
public static final ZegoVideoFrameFormat RGBA32
RGBA32 format
-
ARGB32
public static final ZegoVideoFrameFormat ARGB32
ARGB32 format
-
ABGR32
public static final ZegoVideoFrameFormat ABGR32
ABGR32 format
-
I422
public static final ZegoVideoFrameFormat I422
I422 (YUV422Planar) format
-
BGR24
public static final ZegoVideoFrameFormat BGR24
BGR24 format
-
RGB24
public static final ZegoVideoFrameFormat RGB24
RGB24 format
-
-
Method Detail
-
values
public static ZegoVideoFrameFormat[] 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 (ZegoVideoFrameFormat c : ZegoVideoFrameFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoVideoFrameFormat 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
-
value
public int value()
-
getZegoVideoFrameFormat
public static ZegoVideoFrameFormat getZegoVideoFrameFormat(int value)
-
-