public class YYRenderFrameBuffer extends java.lang.Object implements YYSoftDecRender
| Modifier and Type | Class and Description |
|---|---|
static interface |
YYRenderFrameBuffer.newYUVFrameArrivedCallBack |
static class |
YYRenderFrameBuffer.RGB565ImageWithNoPadding |
| Modifier and Type | Field and Description |
|---|---|
static int |
FORMAT_I420 |
static int |
FORMAT_NV12 |
static int |
FORMAT_RGB |
static int |
FORMAT_RGB565 |
static int |
FORMAT_UNKNOWN |
ByteVector |
mBytesVector |
long |
mFirstFrameArrivedTime |
| Constructor and Description |
|---|
YYRenderFrameBuffer(boolean GPUFormatConvert) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkDataComplete() |
java.nio.ByteBuffer |
createByteBufferIfNeed(int width,
int height,
int bits,
int pixWidth) |
long |
getContext() |
int |
getCurFramePts() |
boolean |
GetCurrentPictureDataRGB565(YYRenderFrameBuffer.RGB565ImageWithNoPadding img) |
java.nio.ByteBuffer |
getFrame() |
int |
getFrameFormat() |
int |
getHeight() |
int |
getHeightUV() |
int |
getHeightY() |
long |
getLastDecodeTimeStamp() |
boolean |
getMissRenderFlag() |
int |
getOffsetU() |
int |
getOffsetV() |
int |
getOffsetY() |
int |
getPixWidth() |
int |
getWidth() |
int |
getWidthUV() |
int |
getWidthY() |
boolean |
hasFrame() |
boolean |
linkToStream(long userGroupId,
long streamId) |
static int |
LoadTest() |
void |
pushVideoFrameOut() |
void |
release() |
boolean |
render() |
boolean |
setFrameRendered() |
void |
setMissRenderFlag(boolean miss,
boolean newArrivedFrame) |
void |
setYUVBufferInfo(int format,
int widthY,
int heightY,
int widthUV,
int heightUV,
int offsetY,
int offsetU,
int offsetV) |
void |
setYUVFrameArriveCallback(YYRenderFrameBuffer.newYUVFrameArrivedCallBack callback) |
boolean |
unLinkFromStream(long userGroupId,
long streamId) |
public static final int FORMAT_RGB
public static final int FORMAT_NV12
public static final int FORMAT_I420
public static final int FORMAT_RGB565
public static final int FORMAT_UNKNOWN
public long mFirstFrameArrivedTime
public ByteVector mBytesVector
public void setYUVFrameArriveCallback(YYRenderFrameBuffer.newYUVFrameArrivedCallBack callback)
public boolean linkToStream(long userGroupId,
long streamId)
linkToStream in interface YYSoftDecRenderpublic boolean unLinkFromStream(long userGroupId,
long streamId)
unLinkFromStream in interface YYSoftDecRenderpublic boolean render()
public boolean hasFrame()
public boolean setFrameRendered()
public java.nio.ByteBuffer getFrame()
public long getLastDecodeTimeStamp()
public int getCurFramePts()
public int getWidth()
public int getHeight()
public int getPixWidth()
public int getFrameFormat()
public int getWidthY()
public int getHeightY()
public int getWidthUV()
public int getHeightUV()
public int getOffsetY()
public int getOffsetU()
public int getOffsetV()
public java.nio.ByteBuffer createByteBufferIfNeed(int width,
int height,
int bits,
int pixWidth)
public boolean checkDataComplete()
public void setYUVBufferInfo(int format,
int widthY,
int heightY,
int widthUV,
int heightUV,
int offsetY,
int offsetU,
int offsetV)
public void release()
public boolean GetCurrentPictureDataRGB565(YYRenderFrameBuffer.RGB565ImageWithNoPadding img)
public void setMissRenderFlag(boolean miss,
boolean newArrivedFrame)
public boolean getMissRenderFlag()
public long getContext()
getContext in interface YYSoftDecRenderpublic void pushVideoFrameOut()
public static int LoadTest()