本文整理汇总了Java中org.webrtc.SurfaceTextureHelper类的典型用法代码示例。如果您正苦于以下问题:Java SurfaceTextureHelper类的具体用法?Java SurfaceTextureHelper怎么用?Java SurfaceTextureHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SurfaceTextureHelper类属于org.webrtc包,在下文中一共展示了SurfaceTextureHelper类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSurfaceTextureHelper
import org.webrtc.SurfaceTextureHelper; //导入依赖的package包/类
@Override
public SurfaceTextureHelper getSurfaceTextureHelper() {
return mSurfaceHelper;
}
示例2: FrameProducer
import org.webrtc.SurfaceTextureHelper; //导入依赖的package包/类
public FrameProducer(final EglBase eglBase, final File videoFile, final int fps,
final Callback callback) {
mVideoFile = videoFile;
mFps = fps;
mCallback = callback;
mBufferInfo = new MediaCodec.BufferInfo();
mSurfaceTextureHelper = SurfaceTextureHelper.create("SurfaceTextureHelper",
eglBase.getEglBaseContext());
mSurfaceTextureHelper.startListening(this);
mHubSurface = new Surface(mSurfaceTextureHelper.getSurfaceTexture());
}
示例3: VideoCapturerExternalResource
import org.webrtc.SurfaceTextureHelper; //导入依赖的package包/类
/**
* Constructor.
*
* @param uri uri of resource
* @param width width
* @param height height
*/
public VideoCapturerExternalResource(EglBase.Context sharedContext, final String uri, final int width, final int height) {
mUri = uri;
mWidth = width;
mHeight = height;
mFPS = 30;
HandlerThread cameraThread = new HandlerThread(TAG);
cameraThread.start();
mCameraThreadHandler = new Handler(cameraThread.getLooper());
mSurfaceHelper = SurfaceTextureHelper.create(sharedContext, mCameraThreadHandler);
}