2023-10-17 15:38:39 CST W42D2

This commit is contained in:
aggresss
2023-10-17 15:38:39 +08:00
parent 3189856a17
commit 762aa14362
39 changed files with 1481 additions and 309 deletions

View File

@@ -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),