Skip to content

Commit

Permalink
feat: expose pointer to underlying C object
Browse files Browse the repository at this point in the history
  • Loading branch information
l0rem1psum committed Nov 4, 2024
1 parent 8df7d52 commit e521315
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions codec_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ func (cc *CodecContext) SetExtraHardwareFrames(n int) {
cc.c.extra_hw_frames = C.int(n)
}

func (cc *CodecContext) UnsafePointer() unsafe.Pointer {
return unsafe.Pointer(cc.c)
}

type CodecContextPixelFormatCallback func(pfs []PixelFormat) PixelFormat

var (
Expand Down

0 comments on commit e521315

Please sign in to comment.