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 bc14852 commit c7f3974
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 @@ -340,6 +340,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 c7f3974

Please sign in to comment.