IntdashVideoDecoder
open class IntdashVideoDecoder : NSObject, JPEGDecoderDelegate, H264DecoderDelegate, HEVCDecoderDelegate
ビデオ用のデコーダークラス。
-
デコードに使用する映像のコーデック。
Declaration
Swift
public private(set) var codec: IntdashVideoCodec { get } -
デコード用オプション。
Declaration
Swift
public private(set) var option: IntdashVideoDecoderOption { get } -
オブジェクトを識別するためのタグ。
Declaration
Swift
public var tag: Int -
このクラスが使用する Delegate。
Declaration
Swift
public weak var delegate: IntdashVideoDecoderDelegate? -
ログレベル。
Declaration
Swift
public var logLevel: IntdashMediaLogLevel { get set } -
デコード時の画像変換をスキップするフラグ。
Declaration
Swift
public var isSkipConvertImage: Bool { get set } -
JPEG用デコーダー。
Declaration
Swift
public var jpegDecoder: JPEGDecoder? -
H.264/AVC用デコーダー。
Declaration
Swift
public var h264Decoder: H264Decoder? -
H.265/HEVC用デコーダー。
Declaration
Swift
public var hevcDecoder: HEVCDecoder? -
IntdashVideoDecoder を生成します。
Declaration
Swift
public init(codec: IntdashVideoCodec, option: IntdashVideoDecoderOption = IntdashVideoDecoderOption())Parameters
codec使用するコーデック
optionデコーダー用のオプション
-
デコードするデータを渡します。
Declaration
Swift
public func append(frameData: Data, timestamp: TimeInterval = -1)Parameters
frameDataエンコードされた映像データ 。 本フィールドに渡すべきデータの形式は、使用するコーデックにより異なります。
timestampsampleDataに対応するタイムスタンプ 。 デコードが成功した際に、デコードされた画像データとともにdelegateに渡されます。 -
デコーダーをリセットします。
Declaration
Swift
public func reset() -
デコーダーをリセットします。
Declaration
Swift
public func reset(option: IntdashVideoDecoderOption)Parameters
optionデコーダー用オプション
-
割り当てを解除します。
Declaration
Swift
public func dispose()
-
delegate のメソッド
JPEGDecoderDelegate.decodedFrameDataToUIImage(_:decodeImage:timestamp:)を呼び出します。Declaration
Swift
public func decodedFrameDataToUIImage(_ decoder: JPEGDecoder, decodeImage: UIImage, timestamp: TimeInterval) -
delegate のメソッド
JPEGDecoderDelegate.decodedFrameDataToNSImage(_:decodeImage:timestamp:)を呼び出します。 -
delegate のメソッド
JPEGDecoderDelegate.decodeFailedFrameData(_:error:)を呼び出します。Declaration
Swift
public func decodeFailedFrameData(_ decoder: JPEGDecoder, error: NSError)
-
delegate のメソッド
H264DecoderDelegate.decodedFrameData(_:decodeBuffer:timestamp:)を呼び出します。Declaration
Swift
public func decodedFrameData(_ decoder: H264Decoder, decodeBuffer: CVImageBuffer, timestamp: TimeInterval) -
delegate のメソッド
H264DecoderDelegate.decodedFrameDataToUIImage(_:decodeImage:timestamp:)を呼び出します。Declaration
Swift
public func decodedFrameDataToUIImage(_ decoder: H264Decoder, decodeImage: UIImage, timestamp: TimeInterval) -
delegate のメソッド
H264DecoderDelegate.decodeFailedFrameData(_:error:)を呼び出します。Declaration
Swift
public func decodeFailedFrameData(_ decoder: H264Decoder, error: NSError)
-
delegate のメソッド
HEVCDecoderDelegate.decodedFrameData(_:decodeBuffer:timestamp:)を呼び出します。Declaration
Swift
public func decodedFrameData(_ decoder: HEVCDecoder, decodeBuffer: CVImageBuffer, timestamp: TimeInterval) -
delegate のメソッド
HEVCDecoderDelegate.decodedFrameDataToUIImage(_:decodeImage:timestamp:)を呼び出します。Declaration
Swift
public func decodedFrameDataToUIImage(_ decoder: HEVCDecoder, decodeImage: UIImage, timestamp: TimeInterval) -
delegate のメソッド
HEVCDecoderDelegate.decodeFailedFrameData(_:error:)を呼び出します。Declaration
Swift
public func decodeFailedFrameData(_ decoder: HEVCDecoder, error: NSError) -
H.264/AVC用のデコーダークラス。
See moreDeclaration
Swift
public class H264Decoder : NSObject -
H.265/HEVC用のデコーダークラス。
See moreDeclaration
Swift
public class HEVCDecoder : NSObject -
JPEG用のデコーダークラス。
See moreDeclaration
Swift
public class JPEGDecoder : NSObject
IntdashVideoDecoder Class Reference