Download venv/lib/python3.11/site-packages/av/video/codeccontext.pyi from nanaj/SECourses_Musubi_Trainer_Setup: direct link, hf CLI and curl.
- Browser
- Download file 968 Bytes
-
https://huggingface.co/nanaj/SECourses_Musubi_Trainer_Setup/resolve/main/venv/lib/python3.11/site-packages/av/video/codeccontext.pyi
- Command line
-
hf download hf://nanaj/SECourses_Musubi_Trainer_Setup/venv/lib/python3.11/site-packages/av/video/codeccontext.pyi
-
curl -L -o codeccontext.pyi https://huggingface.co/nanaj/SECourses_Musubi_Trainer_Setup/resolve/main/venv/lib/python3.11/site-packages/av/video/codeccontext.pyi
968 Bytes
| from fractions import Fraction | |
| from typing import Iterator, Literal | |
| from av.codec.context import CodecContext | |
| from av.packet import Packet | |
| from .format import VideoFormat | |
| from .frame import VideoFrame | |
| class VideoCodecContext(CodecContext): | |
| format: VideoFormat | None | |
| width: int | |
| height: int | |
| bits_per_coded_sample: int | |
| pix_fmt: str | None | |
| framerate: Fraction | |
| rate: Fraction | |
| gop_size: int | |
| sample_aspect_ratio: Fraction | None | |
| display_aspect_ratio: Fraction | None | |
| has_b_frames: bool | |
| max_b_frames: int | |
| coded_width: int | |
| coded_height: int | |
| color_range: int | |
| color_primaries: int | |
| color_trc: int | |
| colorspace: int | |
| qmin: int | |
| qmax: int | |
| type: Literal["video"] | |
| def encode(self, frame: VideoFrame | None = None) -> list[Packet]: ... | |
| def encode_lazy(self, frame: VideoFrame | None = None) -> Iterator[Packet]: ... | |
| def decode(self, packet: Packet | None = None) -> list[VideoFrame]: ... | |