mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-09-26 18:51:13 +08:00
33 lines
451 B
Go
33 lines
451 B
Go
package pkg
|
|
|
|
type CodecCtx struct {
|
|
}
|
|
type IRaw interface {
|
|
}
|
|
type IVideoData interface {
|
|
ToRaw(*CodecCtx) IRaw
|
|
FromRaw(*CodecCtx, IRaw)
|
|
}
|
|
|
|
type IAudioData interface {
|
|
ToRaw(*CodecCtx) IRaw
|
|
FromRaw(*CodecCtx, IRaw)
|
|
}
|
|
|
|
type IData interface {
|
|
}
|
|
|
|
type H264Nalu struct {
|
|
}
|
|
|
|
func (nalu *H264Nalu) ToRaw(ctx *CodecCtx) IRaw {
|
|
return nalu
|
|
}
|
|
|
|
func (nalu *H264Nalu) FromRaw(ctx *CodecCtx, raw IRaw) {
|
|
*nalu = *raw.(*H264Nalu)
|
|
}
|
|
|
|
type H265Nalu struct {
|
|
}
|