Files
goav/avcodec/packet_struct.go
T

43 lines
904 B
Go

// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// Giorgis (habtom@giorgis.io)
package avcodec
//#cgo pkg-config: libavcodec
//#include <libavcodec/avcodec.h>
import "C"
func (p *Packet) Buf() *AvBufferRef {
return (*AvBufferRef)(p.buf)
}
func (p *Packet) Duration() int {
return int(p.duration)
}
func (p *Packet) Flags() int {
return int(p.flags)
}
func (p *Packet) SideDataElems() int {
return int(p.side_data_elems)
}
func (p *Packet) Size() int {
return int(p.size)
}
func (p *Packet) StreamIndex() int {
return int(p.stream_index)
}
func (p *Packet) ConvergenceDuration() int64 {
return int64(p.convergence_duration)
}
func (p *Packet) Dts() int64 {
return int64(p.dts)
}
func (p *Packet) Pos() int64 {
return int64(p.pos)
}
func (p *Packet) Pts() int64 {
return int64(p.pts)
}
func (p *Packet) Data() *uint8 {
return (*uint8)(p.data)
}