1 parent 8769d13 commit 6c229feCopy full SHA for 6c229fe
1 file changed
av/sidedata/encparams.pyx
@@ -2,7 +2,6 @@ cimport libav as lib
2
from libc.stdint cimport uint8_t, int32_t
3
4
from enum import IntEnum
5
-import numpy as np
6
7
8
VideoEncParamsType = IntEnum(
@@ -85,6 +84,8 @@ cdef class VideoEncParams(SideData):
85
84
Convenience method that creates a 2-D map with the quantization parameters per macroblock.
86
Only for MPEG2 and H264 encoded videos.
87
"""
+ import numpy as np
88
+
89
cdef int mb_h = (self.frame.ptr.height + 15) // 16
90
cdef int mb_w = (self.frame.ptr.width + 15) // 16
91
cdef int nb_mb = mb_h * mb_w
0 commit comments