File: encparams.pyi

package info (click to toggle)
python-av 16.1.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,728 kB
  • sloc: python: 8,059; sh: 181; ansic: 174; makefile: 140
file content (27 lines) | stat: -rw-r--r-- 571 bytes parent folder | download
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