VideoDecoder

tee3.webrtc

## 接口 VideoDecoder

- 所有已知实现类:
    VideoDecoderFallback

      public interface VideoDecoder

  Interface for a video decoder that can be used in WebRTC. All calls to the class will be made on a single decoding thread.

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 接口和说明
    --- | ---
    `static interface` | `VideoDecoder.Callback`
    `static class` | `VideoDecoder.DecodeInfo` Additional info for decoding.
    `static class` | `VideoDecoder.Settings` Settings passed to the decoder by WebRTC.

  - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `VideoCodecStatus` | `decode(EncodedImage frame, VideoDecoder.DecodeInfo info)` Request the decoder to decode a frame.
    `java.lang.String` | `getImplementationName()` Should return a descriptive name for the implementation.
    `boolean` | `getPrefersLateDecoding()` The decoder should return true if it prefers late decoding.
    `VideoCodecStatus` | `initDecode(VideoDecoder.Settings settings, VideoDecoder.Callback decodeCallback)` Initializes the decoding process with specified settings.
    `VideoCodecStatus` | `release()` Called when the decoder is no longer needed.

- - ### 方法详细资料

    - #### initDecode

          VideoCodecStatus initDecode(VideoDecoder.Settings settings,
                                      VideoDecoder.Callback decodeCallback)

      Initializes the decoding process with specified settings. Will be called on the decoding thread before any decode calls.

    - #### release

          VideoCodecStatus release()

      Called when the decoder is no longer needed. Any more calls to decode will not be made.

    - #### decode

          VideoCodecStatus decode(EncodedImage frame,
                                  VideoDecoder.DecodeInfo info)

      Request the decoder to decode a frame.

    - #### getPrefersLateDecoding

          boolean getPrefersLateDecoding()

      The decoder should return true if it prefers late decoding. That is, it can not decode infinite number of frames before the decoded frame is consumed.

    - #### getImplementationName

          java.lang.String getImplementationName()

      Should return a descriptive name for the implementation. Gets called once and cached. May be called from arbitrary thread.