public class HardDecodeWayBuffer extends java.lang.Object implements java.lang.Runnable, HardDecodeWay, HardDecRender.IDecoderDataOutCallBack, HardDecRender.OnDecoderYUVListener
| Modifier and Type | Field and Description |
|---|---|
ByteVector |
mBytesVector |
ByteVector |
mTmpBytesVector |
| Constructor and Description |
|---|
HardDecodeWayBuffer() |
| Modifier and Type | Method and Description |
|---|---|
VideoDecoderCenterExt.HardDecoderStaffVersion |
getHardDecodeType() |
android.graphics.Bitmap |
GetScreenShot() |
long |
getUserGroupId() |
YspVideoViewInfo |
getVideoViewInfo(long streamid) |
boolean |
IsDecoderNeedReconfig() |
void |
OnCreateRenderAhead(int width,
int height,
java.lang.String mime) |
void |
OnDecoderYUVListener(int width,
int height,
java.nio.ByteBuffer data,
int bufferLen,
long pts,
int frameFlag,
int colorFormat,
android.media.MediaFormat mediaFormat) |
void |
onFirstDecodedDataOut() |
void |
OnStreamEnd() |
void |
OnSurfaceChanged(android.view.View videoView,
android.view.Surface surface,
int surfaceWidth,
int surfaceHeight,
int parentWidth,
int parentHeight,
int rotateAngle,
YSpVideoView.OrientationType orientationType,
VideoConstant.ScaleMode scaleMode) |
void |
OnSurfaceCreated() |
void |
OnSurfaceDestroyed(android.view.Surface surface) |
void |
OnSurfaceRedraw() |
void |
OnVideoConfig(byte[] header,
int width,
int height,
java.lang.String mime) |
void |
OnVideoDataArrived(byte[] data,
long pts) |
void |
Quit() |
void |
run() |
void |
setDecoderListener(IYMFDecoderListener listener) |
void |
setOnlyDecoded(boolean b) |
void |
SetPlayNotify(PlayNotify playNotify) |
void |
SetVideoIds(long userGroupId,
long streamId) |
void |
setVideoInfoCallback(IVideoInfoCallback callback) |
void |
setVrStream(boolean vrStream) |
void |
setYUVDecodeMode(boolean b) |
void |
Start() |
public ByteVector mBytesVector
public ByteVector mTmpBytesVector
public void Start()
Start in interface HardDecodeWaypublic void OnSurfaceCreated()
OnSurfaceCreated in interface VideoSurfaceListenerpublic void OnSurfaceChanged(android.view.View videoView,
android.view.Surface surface,
int surfaceWidth,
int surfaceHeight,
int parentWidth,
int parentHeight,
int rotateAngle,
YSpVideoView.OrientationType orientationType,
VideoConstant.ScaleMode scaleMode)
OnSurfaceChanged in interface VideoSurfaceListenerpublic void OnSurfaceDestroyed(android.view.Surface surface)
OnSurfaceDestroyed in interface VideoSurfaceListenerpublic void OnSurfaceRedraw()
OnSurfaceRedraw in interface VideoSurfaceListenerpublic boolean IsDecoderNeedReconfig()
IsDecoderNeedReconfig in interface HardDecodeWaypublic void SetPlayNotify(PlayNotify playNotify)
SetPlayNotify in interface HardDecodeWaypublic void SetVideoIds(long userGroupId,
long streamId)
SetVideoIds in interface HardDecodeWaypublic void OnStreamEnd()
OnStreamEnd in interface HardDecodeWaypublic android.graphics.Bitmap GetScreenShot()
GetScreenShot in interface HardDecodeWaypublic void setDecoderListener(IYMFDecoderListener listener)
public void OnDecoderYUVListener(int width,
int height,
java.nio.ByteBuffer data,
int bufferLen,
long pts,
int frameFlag,
int colorFormat,
android.media.MediaFormat mediaFormat)
OnDecoderYUVListener in interface HardDecRender.OnDecoderYUVListenerpublic void OnCreateRenderAhead(int width,
int height,
java.lang.String mime)
OnCreateRenderAhead in interface HardDecodeWaypublic void OnVideoConfig(byte[] header,
int width,
int height,
java.lang.String mime)
OnVideoConfig in interface HardDecodeWaypublic void OnVideoDataArrived(byte[] data,
long pts)
OnVideoDataArrived in interface HardDecodeWaypublic void Quit()
Quit in interface HardDecodeWaypublic void setVrStream(boolean vrStream)
setVrStream in interface HardDecodeWaypublic void setYUVDecodeMode(boolean b)
public void setOnlyDecoded(boolean b)
public VideoDecoderCenterExt.HardDecoderStaffVersion getHardDecodeType()
getHardDecodeType in interface HardDecodeWaypublic long getUserGroupId()
getUserGroupId in interface HardDecodeWaypublic void setVideoInfoCallback(IVideoInfoCallback callback)
setVideoInfoCallback in interface HardDecodeWaypublic YspVideoViewInfo getVideoViewInfo(long streamid)
getVideoViewInfo in interface HardDecodeWaypublic void onFirstDecodedDataOut()
onFirstDecodedDataOut in interface HardDecRender.IDecoderDataOutCallBackpublic void run()
run in interface java.lang.Runnable