ScaleScreenCapturer

tee3.webrtc

## 类 ScaleScreenCapturer

- java.lang.Object
- - tee3.webrtc.ScaleScreenCapturer

- 所有已实现的接口:
    ScreenCapturerAndroid.TextureFrameAvailable, SurfaceTextureHelper.OnTextureFrameAvailableListener, VideoCapturer

      public class ScaleScreenCapturer
      extends java.lang.Object
      implements VideoCapturer, SurfaceTextureHelper.OnTextureFrameAvailableListener, ScreenCapturerAndroid.TextureFrameAvailable

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `ScaleScreenCapturer.ScaleZone`

    - ### 从接口继承的嵌套类/接口 tee3.webrtc.VideoCapturer

      `VideoCapturer.CapturerObserver`

  - ### 构造器概要

    构造器
    构造器和说明
    `ScaleScreenCapturer()`

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `changeCaptureFormat(int width, int height, int framerate)`
    `void` | `dispose()` Perform any final cleanup here.
    `static ScaleScreenCapturer.ScaleZone` | `getScaleZone()`
    `void` | `initialize(SurfaceTextureHelper surfaceTextureHelper, android.content.Context applicationContext, VideoCapturer.CapturerObserver capturerObserver)` This function is used to initialize the camera thread, the android application context, and the capture observer.
    `boolean` | `isScreencast()`
    `void` | `onTextureFrameAvailable(int oesTextureId, float[] transformMatrix, long timestampNs)`
    `void` | `onTextureFrameAvailable(VideoFrame.I420Buffer i420Buffer, long timestampNs)`
    `static void` | `setScaleZone(ScaleScreenCapturer.ScaleZone scaleZone)`
    `void` | `startCapture(int width, int height, int framerate)` Start capturing frames in a format that is as close as possible to `width x height` and `framerate`.
    `void` | `stopCapture()` Stop capturing.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### ScaleScreenCapturer

          public ScaleScreenCapturer()

  - ### 方法详细资料

    - #### onTextureFrameAvailable

          public void onTextureFrameAvailable(int oesTextureId,
                                              float[] transformMatrix,
                                              long timestampNs)

      指定者:
        `onTextureFrameAvailable` 在接口中 `SurfaceTextureHelper.OnTextureFrameAvailableListener`

    - #### initialize

          public void initialize(SurfaceTextureHelper surfaceTextureHelper,
                                 android.content.Context applicationContext,
                                 VideoCapturer.CapturerObserver capturerObserver)

      从接口复制的说明: `VideoCapturer`
      This function is used to initialize the camera thread, the android application context, and the capture observer. It will be called only once and before any startCapture() request. The camera thread is guaranteed to be valid until dispose() is called. If the VideoCapturer wants to deliver texture frames, it should do this by rendering on the SurfaceTexture in `surfaceTextureHelper`, register itself as a listener, and forward the frames to CapturerObserver.onFrameCaptured(). The caller still has ownership of `surfaceTextureHelper` and is responsible for making sure surfaceTextureHelper.dispose() is called. This also means that the caller can reuse the SurfaceTextureHelper to initialize a new VideoCapturer once the previous VideoCapturer has been disposed.
      指定者:
        `initialize` 在接口中 `VideoCapturer`

    - #### startCapture

          public void startCapture(int width,
                                   int height,
                                   int framerate)

      从接口复制的说明: `VideoCapturer`
      Start capturing frames in a format that is as close as possible to `width x height` and `framerate`.
      指定者:
        `startCapture` 在接口中 `VideoCapturer`

    - #### stopCapture

          public void stopCapture()
                           throws java.lang.InterruptedException

      从接口复制的说明: `VideoCapturer`
      Stop capturing. This function should block until capture is actually stopped.
      指定者:
        `stopCapture` 在接口中 `VideoCapturer`
      抛出:
        `java.lang.InterruptedException`

    - #### changeCaptureFormat

          public void changeCaptureFormat(int width,
                                          int height,
                                          int framerate)

      指定者:
        `changeCaptureFormat` 在接口中 `VideoCapturer`

    - #### dispose

          public void dispose()

      从接口复制的说明: `VideoCapturer`
      Perform any final cleanup here. No more capturing will be done after this call.
      指定者:
        `dispose` 在接口中 `VideoCapturer`

    - #### isScreencast

          public boolean isScreencast()

      指定者:
        `isScreencast` 在接口中 `VideoCapturer`
      返回:
        true if-and-only-if this is a screen capturer.

    - #### onTextureFrameAvailable

          public void onTextureFrameAvailable(VideoFrame.I420Buffer i420Buffer,
                                              long timestampNs)

      指定者:
        `onTextureFrameAvailable` 在接口中 `ScreenCapturerAndroid.TextureFrameAvailable`

    - #### setScaleZone

          public static void setScaleZone(ScaleScreenCapturer.ScaleZone scaleZone)

    - #### getScaleZone

          public static ScaleScreenCapturer.ScaleZone getScaleZone()