mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 07:37:20 +08:00
2023-10-17 15:38:39 CST W42D2
This commit is contained in:
10
postproc.go
10
postproc.go
@@ -30,11 +30,17 @@ type PpContext C.pp_context
|
||||
type PpMode C.pp_mode
|
||||
|
||||
// PpPostprocess
|
||||
func PpPostprocess(src [3]*uint8, srcStride []int32,
|
||||
dst [3]*uint8, dstStride []int32,
|
||||
func PpPostprocess(src []*uint8, srcStride []int32,
|
||||
dst []*uint8, dstStride []int32,
|
||||
horizontalSize, verticalSize int32,
|
||||
QPStore *int8, QPStride int32,
|
||||
ppMode *PpMode, ppContext *PpContext, pictType int32) {
|
||||
if len(src) != 3 {
|
||||
panic("src need len = 3")
|
||||
}
|
||||
if len(dst) != 3 {
|
||||
panic("dst need len = 3")
|
||||
}
|
||||
C.pp_postprocess((**C.uint8_t)(unsafe.Pointer(&src[0])), (*C.int)(&srcStride[0]),
|
||||
(**C.uint8_t)(unsafe.Pointer(&dst[0])), (*C.int)(&dstStride[0]),
|
||||
(C.int)(horizontalSize), (C.int)(verticalSize),
|
||||
|
Reference in New Issue
Block a user