Enum RCCallPlusVideoResolution
-
- All Implemented Interfaces:
public enum RCCallPlusVideoResolution
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RESOLUTION_INVALID无效参数
RESOLUTION_16_16SEI 分辨率
RESOLUTION_144_176分辨率:144 x 176, 最小比特率: 80, 最大码率: 150
RESOLUTION_144_256分辨率:144 x 256, 最小比特率: 120, 最大码率: 240
RESOLUTION_180_180分辨率:180 x 180, 最小比特率: 100, 最大码率: 200
RESOLUTION_180_240分辨率:180 x 240, 最小比特率: 120, 最大码率: 240
RESOLUTION_180_320分辨率:180 x 320, 最小比特率: 120, 最大码率: 280
RESOLUTION_240_240分辨率:240 x 240, 最小比特率: 120, 最大码率: 280
RESOLUTION_240_320分辨率:240 x 320, 最小比特率: 120, 最大码率: 400
RESOLUTION_360_360分辨率:360 x 360, 最小比特率: 260, 最大码率: 520
RESOLUTION_360_480分辨率:360 x 480, 最小比特率: 150, 最大码率: 650
RESOLUTION_360_640分辨率:360 x 640, 最小比特率: 180, 最大码率: 800
RESOLUTION_480_480分辨率:480 x 480, 最小比特率: 180, 最大码率: 800
RESOLUTION_480_640分辨率:480 x 640, 最小比特率: 200, 最大码率: 900
RESOLUTION_480_848分辨率:480 x 848, 最小比特率: 930, 最大码率: 1860
RESOLUTION_480_720分辨率:480 x 720, 最小比特率: 200, 最大码率: 1000
RESOLUTION_720_960分辨率:720 x 960, 最小比特率: 910, 最大码率: 2760
RESOLUTION_720_1280分辨率:720 x 1280, 最小比特率: 250, 最大码率: 2200
RESOLUTION_1080_1920分辨率:1080 x 1920, 最小比特率: 400, 最大码率: 4000
-
Method Summary
Modifier and Type Method Description static RCCallPlusVideoResolutionparseVideoResolution(int width, int height)根据宽高获取对应枚举 static RCCallPlusVideoResolutiongetVideoResolution(String videoProfileLabel)根据字符串查找对应的 RCCallPlusVideoResolution 枚举值 static RCCallPlusVideoResolutiongetVideoResolution(int width, int height)根据分辨率尺寸寻找最佳匹配 intgetWidth()intgetHeight()intgetMinBitRate()intgetMaxBitRate()StringgetLabel()StringtoString()RCRTCVideoResolutiontoRTCVideoResolution()static Array<RCCallPlusVideoResolution>values()Returns an array containing the constants of this enum type, in the order they're declared. static RCCallPlusVideoResolutionvalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
parseVideoResolution
static RCCallPlusVideoResolution parseVideoResolution(int width, int height)
根据宽高获取对应枚举
-
getVideoResolution
static RCCallPlusVideoResolution getVideoResolution(String videoProfileLabel)
根据字符串查找对应的 RCCallPlusVideoResolution 枚举值
- Parameters:
videoProfileLabel- 典型值 VD_480x640_15f 必要条件为 480x640 不区分大小写
-
getVideoResolution
static RCCallPlusVideoResolution getVideoResolution(int width, int height)
根据分辨率尺寸寻找最佳匹配
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
getMinBitRate
int getMinBitRate()
-
getMaxBitRate
int getMaxBitRate()
-
getLabel
String getLabel()
-
toString
String toString()
-
toRTCVideoResolution
RCRTCVideoResolution toRTCVideoResolution()
-
values
static Array<RCCallPlusVideoResolution> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static RCCallPlusVideoResolution valueOf(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.)
- Returns:
the enum constant with the specified name
-
-
-
-