AVCodecParserContext
public final class AVCodecParserContext
Undocumented
-
Undocumented
Declaration
Swift
public init?(codecContext: AVCodecContext)
-
Parse a packet.
Throws
AVErrorDeclaration
Swift
public func parse( data: UnsafePointer<UInt8>, size: Int, pts: Int64 = AVTimestamp.noPTS, dts: Int64 = AVTimestamp.noPTS, pos: Int64 = 0 ) throws -> AVCodecParserResult
Parameters
data
input buffer.
size
buffer size in bytes without the padding. I.e. the full buffer size is assumed to be
buf_size + AVConstant.inputBufferPaddingSize
. To signal EOF, this should be 0 (so that the last frame can be output).pts
input presentation timestamp.
dts
input decoding timestamp.
pos
input byte position in stream.
Return Value
The parsed result.