java.lang.Object | ||
↳ | org.opencdnunion.media.streamer.framework.SrcPin<T> | |
↳ | org.opencdnunion.media.streamer.capture.ImgTexSrcPin |
Convert bitmap image to ImgTexFrame.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ImgTexSrcPin(GLRender glRender) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | getUseSyncMode() | ||||||||||
void | release() | ||||||||||
void |
repeatFrame()
Repeat to send current image frame with current system time as new pts.
| ||||||||||
void |
repeatFrame(long pts)
Repeat to send current image frame, do nothing if no frame uploaded yet.
| ||||||||||
void | reset() | ||||||||||
void | setUseSyncMode(boolean syncMode) | ||||||||||
void | updateFrame(ByteBuffer buf, int stride, int width, int height) | ||||||||||
void |
updateFrame(ByteBuffer buf, int stride, int width, int height, int rotate, long pts)
Update image frame with RGBA ByteBuffer.
| ||||||||||
void |
updateFrame(Bitmap img, int rotate, long pts, boolean recycle)
Update image with Bitmap.
| ||||||||||
void | updateFrame(Bitmap img, boolean recycle) | ||||||||||
void | updateFrame(ByteBuffer buf, int stride, int width, int height, long pts) | ||||||||||
void | updateFrame(Bitmap img, long pts, boolean recycle) | ||||||||||
void |
updateYUVFrame(ByteBuffer buf, int[] strides, int width, int height, int rotate, long pts)
Update image frame with YUV420P ByteBuffer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Repeat to send current image frame with current system time as new pts. Do nothing if no frame uploaded yet.
Repeat to send current image frame, do nothing if no frame uploaded yet.
pts | new pts to set |
---|
Update image frame with RGBA ByteBuffer.
buf | image ByteBuffer with RGBA data |
---|---|
stride | stride of current frame, in bytes |
width | width of frame |
height | height of frame |
rotate | rotate degrees, only 0, 90, 180, 270 valid |
pts | pts of current frame |
Update image with Bitmap.
img | source image |
---|---|
rotate | rotate degrees, only 0, 90, 180, 270 valid |
pts | pts of current image frame |
recycle | should be recycled |
Update image frame with YUV420P ByteBuffer.
buf | image ByteBuffer with I420 data |
---|---|
strides | strides of each planar |
width | width of frame |
height | height of frame |
rotate | rotate degrees, only 0, 90, 180, 270 valid |
pts | pts of current frame |