public class CaptureSyncEncodeFrameRateModify extends java.lang.Object implements IFrameRateModify
| Modifier and Type | Field and Description |
|---|---|
AdjustFrameRateModify |
mAjustFRModify |
| Constructor and Description |
|---|
CaptureSyncEncodeFrameRateModify() |
| Modifier and Type | Method and Description |
|---|---|
int |
checkFrameRate(int currentEncodeFrameRate,
java.lang.String encodeParameter,
VideoEncoderType encoderType) |
float |
getLastFrameRate() |
void |
init(int configFrameRate,
int configCodeRate,
int width,
int height,
java.util.List<ResolutionModifyConfig> modifyConfigList) |
boolean |
onInterceptDoFrame(long timeStampNanos)
是否拦截当前摄像头的帧
|
void |
publishCurrentFrameRate(int currentFrameRate)
当前帧率更新时调用
|
void |
publishCurrentResolution(int width,
int height,
int codeRate)
当前分辨率更新时调用
|
void |
publishNetworkCodeRate(int networkCodeRate)
网络码率通知时调用
|
void |
reInit(int configFrameRate,
int configCodeRate,
int width,
int height,
java.util.List<ResolutionModifyConfig> modifyConfigList) |
void |
release()
开播结束/切换开播清晰度时调用
|
void |
setLastFrameRate(float frameRate) |
public AdjustFrameRateModify mAjustFRModify
public boolean onInterceptDoFrame(long timeStampNanos)
IFrameRateModifyonInterceptDoFrame in interface IFrameRateModifypublic void publishNetworkCodeRate(int networkCodeRate)
IFrameRateModifypublishNetworkCodeRate in interface IFrameRateModifypublic void publishCurrentFrameRate(int currentFrameRate)
IFrameRateModifypublishCurrentFrameRate in interface IFrameRateModifypublic void publishCurrentResolution(int width,
int height,
int codeRate)
IFrameRateModifypublishCurrentResolution in interface IFrameRateModifypublic void release()
IFrameRateModifyrelease in interface IFrameRateModifypublic void reInit(int configFrameRate,
int configCodeRate,
int width,
int height,
java.util.List<ResolutionModifyConfig> modifyConfigList)
configFrameRate - configCodeRate - modifyConfigList - public void init(int configFrameRate,
int configCodeRate,
int width,
int height,
java.util.List<ResolutionModifyConfig> modifyConfigList)
configFrameRate - configCodeRate - modifyConfigList - public int checkFrameRate(int currentEncodeFrameRate,
java.lang.String encodeParameter,
VideoEncoderType encoderType)
public float getLastFrameRate()
getLastFrameRate in interface IFrameRateModifypublic void setLastFrameRate(float frameRate)
setLastFrameRate in interface IFrameRateModify