public class FakeVideoCapturer
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
FakeVideoCapturer.FourccType
视频图像格式.
|
static interface |
FakeVideoCapturer.Listener |
限定符 | 构造器和说明 |
---|---|
protected |
FakeVideoCapturer(FakeVideoCapturer.Listener listener,
FakeVideoCapturer.FourccType fourFormat,
boolean isScreen) |
限定符和类型 | 方法和说明 |
---|---|
static FakeVideoCapturer |
Create(FakeVideoCapturer.FourccType fourFormat,
boolean isScreen,
FakeVideoCapturer.Listener listener)
创建一个视频采集器对象
|
static void |
destoryCapturer(FakeVideoCapturer capturer)
销毁一个视频采集器对象
|
protected void |
dispose() |
protected long |
getNativeobj() |
int |
inputCapturedFrame(long timestamp_ns,
int w,
int h,
byte[] data,
int len,
int rotation,
boolean mirror)
给Capturer输入原始图像
|
int |
inputCapturedFrame(long timestamp_ns,
int w,
int h,
byte[] data,
int len,
int rotation,
boolean mirror,
FakeVideoCapturer.FourccType fourFormat) |
int |
inputEncodedFrame(long timestamp_ns,
int w,
int h,
byte[] data,
int len)
给Capturer输入编码后的数据
|
boolean |
isRunning()
判断Capturer是否正在运行
|
long |
nativeCapture() |
protected FakeVideoCapturer(FakeVideoCapturer.Listener listener, FakeVideoCapturer.FourccType fourFormat, boolean isScreen)
public static FakeVideoCapturer Create(FakeVideoCapturer.FourccType fourFormat, boolean isScreen, FakeVideoCapturer.Listener listener)
public static void destoryCapturer(FakeVideoCapturer capturer)
public boolean isRunning()
public int inputCapturedFrame(long timestamp_ns, int w, int h, byte[] data, int len, int rotation, boolean mirror)
public int inputCapturedFrame(long timestamp_ns, int w, int h, byte[] data, int len, int rotation, boolean mirror, FakeVideoCapturer.FourccType fourFormat)
public int inputEncodedFrame(long timestamp_ns, int w, int h, byte[] data, int len)
public long nativeCapture()
protected long getNativeobj()
protected void dispose()