mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 15:47:33 +08:00
2023-10-19 14:31:46 CST W42D4
This commit is contained in:
@@ -35,11 +35,11 @@ func PpPostprocess(src []*uint8, srcStride []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(src) < 3 {
|
||||
panic("src len < 3")
|
||||
}
|
||||
if len(dst) != 3 {
|
||||
panic("dst need len = 3")
|
||||
if len(dst) < 3 {
|
||||
panic("dst 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]),
|
||||
|
Reference in New Issue
Block a user