Package com.zego.zegoavkit2.enums
Enum VideoPixelFormat
- java.lang.Object
-
- java.lang.Enum<VideoPixelFormat>
-
- com.zego.zegoavkit2.enums.VideoPixelFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VideoPixelFormat>
public enum VideoPixelFormat extends java.lang.Enum<VideoPixelFormat>
视频格式 Created by zego on 2018/4/26.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PIXEL_FORMAT_ABGR32
PIXEL_FORMAT_ARGB32
PIXEL_FORMAT_AVC_ANNEXB
Deprecated.PIXEL_FORMAT_AVC_AVCC
Deprecated.PIXEL_FORMAT_BGRA32
PIXEL_FORMAT_I420
PIXEL_FORMAT_I422
PIXEL_FORMAT_NV12
PIXEL_FORMAT_NV21
PIXEL_FORMAT_RGBA32
PIXEL_FORMAT_UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
value()
static VideoPixelFormat
valueOf(int value)
Returns the enum constant of this type with the specified name.static VideoPixelFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VideoPixelFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PIXEL_FORMAT_UNKNOWN
public static final VideoPixelFormat PIXEL_FORMAT_UNKNOWN
-
PIXEL_FORMAT_I420
public static final VideoPixelFormat PIXEL_FORMAT_I420
-
PIXEL_FORMAT_NV12
public static final VideoPixelFormat PIXEL_FORMAT_NV12
-
PIXEL_FORMAT_NV21
public static final VideoPixelFormat PIXEL_FORMAT_NV21
-
PIXEL_FORMAT_BGRA32
public static final VideoPixelFormat PIXEL_FORMAT_BGRA32
-
PIXEL_FORMAT_RGBA32
public static final VideoPixelFormat PIXEL_FORMAT_RGBA32
-
PIXEL_FORMAT_ARGB32
public static final VideoPixelFormat PIXEL_FORMAT_ARGB32
-
PIXEL_FORMAT_ABGR32
public static final VideoPixelFormat PIXEL_FORMAT_ABGR32
-
PIXEL_FORMAT_I422
public static final VideoPixelFormat PIXEL_FORMAT_I422
-
PIXEL_FORMAT_AVC_AVCC
@Deprecated public static final VideoPixelFormat PIXEL_FORMAT_AVC_AVCC
Deprecated.过时定义,请查阅VideoCodecType
-
PIXEL_FORMAT_AVC_ANNEXB
@Deprecated public static final VideoPixelFormat PIXEL_FORMAT_AVC_ANNEXB
Deprecated.过时定义,请查阅VideoCodecType
-
-
Method Detail
-
values
public static VideoPixelFormat[] 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 (VideoPixelFormat c : VideoPixelFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VideoPixelFormat 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
-
valueOf
public static VideoPixelFormat valueOf(int value)
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:
value
- 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()
-
-