当前位置: 首页>>代码示例>>Java>>正文


Java SurfaceTextureHelper类代码示例

本文整理汇总了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;
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:5,代码来源:VideoCapturerExternalResource.java

示例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());
}
 
开发者ID:Piasy,项目名称:InsideCodec,代码行数:13,代码来源:FrameProducer.java

示例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);
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:19,代码来源:VideoCapturerExternalResource.java


注:本文中的org.webrtc.SurfaceTextureHelper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。