Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
53
venv/lib/python3.12/site-packages/av/video/reformatter.pyi
Normal file
53
venv/lib/python3.12/site-packages/av/video/reformatter.pyi
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
from enum import IntEnum
|
||||
from typing import cast
|
||||
|
||||
from .frame import VideoFrame
|
||||
|
||||
class Interpolation(IntEnum):
|
||||
FAST_BILINEAER = cast(int, ...)
|
||||
BILINEAR = cast(int, ...)
|
||||
BICUBIC = cast(int, ...)
|
||||
X = cast(int, ...)
|
||||
POINT = cast(int, ...)
|
||||
AREA = cast(int, ...)
|
||||
BICUBLIN = cast(int, ...)
|
||||
GAUSS = cast(int, ...)
|
||||
SINC = cast(int, ...)
|
||||
LANCZOS = cast(int, ...)
|
||||
SPLINE = cast(int, ...)
|
||||
|
||||
class Colorspace(IntEnum):
|
||||
ITU709 = cast(int, ...)
|
||||
FCC = cast(int, ...)
|
||||
ITU601 = cast(int, ...)
|
||||
ITU624 = cast(int, ...)
|
||||
SMPTE170M = cast(int, ...)
|
||||
SMPTE240M = cast(int, ...)
|
||||
DEFAULT = cast(int, ...)
|
||||
itu709 = cast(int, ...)
|
||||
fcc = cast(int, ...)
|
||||
itu601 = cast(int, ...)
|
||||
itu624 = cast(int, ...)
|
||||
smpte170m = cast(int, ...)
|
||||
smpte240m = cast(int, ...)
|
||||
default = cast(int, ...)
|
||||
|
||||
class ColorRange(IntEnum):
|
||||
UNSPECIFIED = 0
|
||||
MPEG = 1
|
||||
JPEG = 2
|
||||
NB = 3
|
||||
|
||||
class VideoReformatter:
|
||||
def reformat(
|
||||
self,
|
||||
frame: VideoFrame,
|
||||
width: int | None = None,
|
||||
height: int | None = None,
|
||||
format: str | None = None,
|
||||
src_colorspace: int | None = None,
|
||||
dst_colorspace: int | None = None,
|
||||
interpolation: int | str | None = None,
|
||||
src_color_range: int | str | None = None,
|
||||
dst_color_range: int | str | None = None,
|
||||
) -> VideoFrame: ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue