IntdashVideoEncoder
open class IntdashVideoEncoder : NSObject, JPEGEncoderDelegate, H264EncoderDelegate, HEVCEncoderDelegate
ビデオ用のエンコーダークラス。
-
エンコードに使用する映像のコーデック。
Declaration
Swift
public private(set) var codec: IntdashVideoCodec
-
エンコード用オプション。
Declaration
Swift
public private(set) var option: IntdashVideoEncoderOption
-
オブジェクトを識別するためのタグ。
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: IntdashVideoEncoder.JPEGEncoder?
-
H.264/AVC用エンコーダー。
Declaration
Swift
public var h264Encoder: IntdashVideoEncoder.H264Encoder?
-
H.265/HEVC用エンコーダー。
Declaration
Swift
public var hevcEncoder: IntdashVideoEncoder.HEVCEncoder?
-
ダウンサンプリングが有効か(JPEGのみ設定可能)。
Declaration
Swift
public private(set) var isDownSampling: Bool
-
IntdashVideoEncoder を生成します。
Declaration
Swift
public init(codec: IntdashVideoCodec, option: IntdashVideoEncoderOption = IntdashVideoEncoderOption())
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()
-
delegate のメソッド
JPEGEncoderDelegate.encodedFrame(_:frameData:timestamp:)
を呼び出します。Declaration
Swift
public func encodedFrame(_ encoder: JPEGEncoder, frameData: Data, timestamp: TimeInterval)
-
delegate のメソッド
JPEGEncoderDelegate.encodeFailedSampleBuffer(_:error:)
を呼び出します。Declaration
Swift
public func encodeFailedSampleBuffer(_ encoder: JPEGEncoder, error: NSError)
-
delegate のメソッド
H264EncoderDelegate.encodedFrame(_:frameData:timestamp:)
を呼び出します。Declaration
Swift
public func encodedFrame(_ encoder: H264Encoder, frameData: Data, timestamp: TimeInterval)
-
delegate のメソッド
H264EncoderDelegate.encodeFailedSampleBuffer(_:error:)
を呼び出します。Declaration
Swift
public func encodeFailedSampleBuffer(_ encoder: H264Encoder, error: NSError)
-
delegate のメソッド
HEVCEncoderDelegate.encodedFrame(_:frameData:timestamp:)
を呼び出します。Declaration
Swift
public func encodedFrame(_ encoder: HEVCEncoder, frameData: Data, timestamp: TimeInterval)
-
delegate のメソッド
HEVCEncoderDelegate.encodeFailedSampleBuffer(_:error:)
を呼び出します。Declaration
Swift
public func encodeFailedSampleBuffer(_ encoder: HEVCEncoder, error: NSError)
-
H.264/AVC用のエンコーダークラス。
See moreDeclaration
Swift
public class H264Encoder : NSObject
-
H.265/HEVC用のエンコーダークラス。
See moreDeclaration
Swift
public class HEVCEncoder : NSObject
-
JPEG用のエンコーダークラス。
See moreDeclaration
Swift
public class JPEGEncoder : NSObject