IntdashVideoEncoder

open class IntdashVideoEncoder : NSObject, JPEGEncoderDelegate, H264EncoderDelegate, HEVCEncoderDelegate

ビデオ用のエンコーダークラス。

  • エンコードに使用する映像のコーデック。

    Declaration

    Swift

    public private(set) var codec: IntdashVideoCodec { get }
  • エンコード用オプション。

    Declaration

    Swift

    public private(set) var option: IntdashVideoEncoderOption { get }
  • tag

    オブジェクトを識別するためのタグ。

    Declaration

    Swift

    public var tag: Int
  • このクラスが使用する Delegate。

    Declaration

    Swift

    public var delegate: IntdashVideoEncoderDelegate?
  • ログレベル。

    Declaration

    Swift

    public var logLevel: IntdashMediaLogLevel { get set }
  • JPEG用エンコーダー。

    Declaration

    Swift

    public var jpegEncoder: JPEGEncoder?
  • H.264/AVC用エンコーダー。

    Declaration

    Swift

    public var h264Encoder: H264Encoder?
  • H.265/HEVC用エンコーダー。

    Declaration

    Swift

    public var hevcEncoder: HEVCEncoder?
  • ダウンサンプリングが有効か(JPEGのみ設定可能)。

    Declaration

    Swift

    public private(set) var isDownSampling: Bool { get }
  • IntdashVideoEncoder を生成します。

    Declaration

    Parameters

    codec

    使用するコーデック。

    option

    エンコーダー用のオプション。

  • エンコードする画像データを渡します。

    Declaration

    Swift

    public func append(buffer: CMSampleBuffer, timestamp: TimeInterval = -1)

    Parameters

    buffer

    エンコードしたい画像データを格納したバッファー。

    timestamp

    エンコードする画像データに対応するタイムスタンプ 。 エンコードが成功した際に、エンコードされた画像データとともに delegate に渡されます。

  • エンコーダーをリセットします。

    Declaration

    Swift

    public func reset()
  • エンコーダーをリセットします。

    Declaration

    Swift

    public func reset(option: IntdashVideoEncoderOption)

    Parameters

    option

    エンコーダー用オプション。

  • 割り当てを解除します。

    Declaration

    Swift

    public func dispose()

JPEGEncoderDelegate

H264EncoderDelegate

HEVCEncoderDelegate