Class VideoCodecInfo
- java.lang.Object
-
- com.avaya.clientservices.media.codec.VideoCodecInfo
-
public class VideoCodecInfo extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVideoCodecInfo.PredicateVideoCodecInfo
-
Constructor Summary
Constructors Constructor Description VideoCodecInfo(boolean bEncoder, java.lang.String strFormat, android.media.MediaCodecInfo info)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringAvcLevelToString(int level)static java.lang.StringAvcProfileToString(int profile)static java.lang.StringColorToString(int color)intcompareTo(VideoCodecInfo other)android.media.MediaCodeccreateCodec()static VideoCodecInfofindCodecInfoForFormat(boolean bEncoder, java.lang.String strFormat, java.lang.Object objTestFunction)static VideoCodecInfogetCodecInfoForFormat(boolean bEncoder, java.lang.String strFormat)static java.lang.StringgetDriverForFormat(boolean bEncoder, java.lang.String strFormat, java.lang.Object objTestFunction)java.lang.StringgetFormat()intgetHeightAlignment()intgetMaxLevel(int profile)intgetMaxProfile()intgetMaxProfileForLevel(int nRequestedProfile, int nRequestedLevel)java.lang.StringgetName()intgetSupportedColorFormat(int nRequested)intgetSupportedHeight(int nRequested)intgetSupportedWidth(int nRequested)intgetWidthAlignment()static booleanHasLibMediaNdk()booleanisEncoder()booleanisH263()booleanisH264()booleanisH265()booleanisVP8()voidlog()static voidlogCodecs(boolean bEncoder, java.lang.String strFormat)booleansupportsBps(int nBPS)booleansupportsColor(int nColor)booleansupportsFps(int nFPS)booleansupportsHeight(int nHeight)intsupportsLevel(int level)booleansupportsProfile(int profile)booleansupportsProfileAndLevel(int profile, int level)booleansupportsWidth(int nWidth)
-
-
-
Method Detail
-
HasLibMediaNdk
public static boolean HasLibMediaNdk()
-
getDriverForFormat
public static java.lang.String getDriverForFormat(boolean bEncoder, java.lang.String strFormat, java.lang.Object objTestFunction)
-
getCodecInfoForFormat
public static VideoCodecInfo getCodecInfoForFormat(boolean bEncoder, java.lang.String strFormat)
-
findCodecInfoForFormat
public static VideoCodecInfo findCodecInfoForFormat(boolean bEncoder, java.lang.String strFormat, java.lang.Object objTestFunction)
-
logCodecs
public static void logCodecs(boolean bEncoder, java.lang.String strFormat)
-
createCodec
public android.media.MediaCodec createCodec()
-
compareTo
public int compareTo(VideoCodecInfo other)
-
getName
public java.lang.String getName()
-
isEncoder
public boolean isEncoder()
-
getFormat
public java.lang.String getFormat()
-
isH265
public boolean isH265()
-
isH264
public boolean isH264()
-
isH263
public boolean isH263()
-
isVP8
public boolean isVP8()
-
supportsProfile
public boolean supportsProfile(int profile)
-
supportsLevel
public int supportsLevel(int level)
-
supportsProfileAndLevel
public boolean supportsProfileAndLevel(int profile, int level)
-
getMaxProfileForLevel
public int getMaxProfileForLevel(int nRequestedProfile, int nRequestedLevel)
-
getMaxProfile
public int getMaxProfile()
-
getMaxLevel
public int getMaxLevel(int profile)
-
supportsColor
public boolean supportsColor(int nColor)
-
supportsBps
public boolean supportsBps(int nBPS)
-
supportsFps
public boolean supportsFps(int nFPS)
-
getSupportedColorFormat
public int getSupportedColorFormat(int nRequested)
-
getSupportedWidth
public int getSupportedWidth(int nRequested)
-
getSupportedHeight
public int getSupportedHeight(int nRequested)
-
supportsWidth
public boolean supportsWidth(int nWidth)
-
supportsHeight
public boolean supportsHeight(int nHeight)
-
getWidthAlignment
public int getWidthAlignment()
-
getHeightAlignment
public int getHeightAlignment()
-
log
public void log()
-
AvcProfileToString
public static java.lang.String AvcProfileToString(int profile)
-
AvcLevelToString
public static java.lang.String AvcLevelToString(int level)
-
ColorToString
public static java.lang.String ColorToString(int color)
-
-