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