public static enum LPConstants.LPResolutionType extends java.lang.Enum<LPConstants.LPResolutionType>
枚举常量和说明 |
---|
_1080
1080P 1920*1080
|
_360
480*360(后增加的,没法保持队形)
|
_720
720P 1280*720;
|
HIGH
高清 640*480
|
LOW
流畅 320*240
|
限定符和类型 | 方法和说明 |
---|---|
static LPConstants.LPResolutionType |
from(int type) |
int |
getResolutionHeight() |
int |
getResolutionWidth() |
int |
getTypeValue() |
static int |
getTypeValue(int height)
根据高度向下取分辨率
|
static LPConstants.LPResolutionType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static LPConstants.LPResolutionType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final LPConstants.LPResolutionType LOW
public static final LPConstants.LPResolutionType HIGH
public static final LPConstants.LPResolutionType _720
public static final LPConstants.LPResolutionType _1080
public static final LPConstants.LPResolutionType _360
public static LPConstants.LPResolutionType[] values()
for (LPConstants.LPResolutionType c : LPConstants.LPResolutionType.values()) System.out.println(c);
public static LPConstants.LPResolutionType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public int getTypeValue()
public static int getTypeValue(int height)
height
- public int getResolutionHeight()
public int getResolutionWidth()
public static LPConstants.LPResolutionType from(int type)