Debian Codegraph @

av/sidedata/encparams.pyi

raw
1 from enum import IntEnum
2 from typing import Any, cast
3
4 import numpy as np
5
6 class VideoEncParamsType(IntEnum):
7 NONE = cast(int, ...)
8 VP9 = cast(int, ...)
9 H264 = cast(int, ...)
10 MPEG2 = cast(int, ...)
11
12 class VideoEncParams:
13 nb_blocks: int
14 blocks_offset: int
15 block_size: int
16 codec_type: VideoEncParamsType
17 qp: int
18 delta_qp: int
19 def block_params(self, idx: int) -> VideoBlockParams: ...
20 def qp_map(self) -> np.ndarray[Any, Any]: ...
21
22 class VideoBlockParams:
23 src_x: int
24 src_y: int
25 w: int
26 h: int
27 delta_qp: int