Skip to content

Commit

Permalink
fix #380 option typing (#382)
Browse files Browse the repository at this point in the history
* fix #380 option typing

* update snapshot
  • Loading branch information
lucemia authored Mar 28, 2024
1 parent 6b55977 commit b302287
Show file tree
Hide file tree
Showing 20 changed files with 320 additions and 301 deletions.
92 changes: 47 additions & 45 deletions src/ffmpeg/dag/global_runnable/global_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Any

from ...types import Boolean, Float, Func, Int

if TYPE_CHECKING:
from ..nodes import GlobalNode, GlobalStream, OutputStream

Expand All @@ -16,51 +18,51 @@ def _global_node(self, *streams: OutputStream, **kwargs: Any) -> GlobalNode:
def global_args(
self,
*,
loglevel: str = None,
v: str = None,
report: str = None,
max_alloc: str = None,
cpuflags: str = None,
cpucount: str = None,
hide_banner: bool = None,
y: bool = None,
n: bool = None,
ignore_unknown: bool = None,
copy_unknown: bool = None,
recast_media: bool = None,
benchmark: bool = None,
benchmark_all: bool = None,
progress: str = None,
stdin: bool = None,
timelimit: str = None,
dump: bool = None,
hex: bool = None,
frame_drop_threshold: float = None,
copyts: bool = None,
start_at_zero: bool = None,
copytb: int = None,
dts_delta_threshold: float = None,
dts_error_threshold: float = None,
xerror: bool = None,
abort_on: str = None,
filter_threads: str = None,
filter_complex: str = None,
filter_complex_threads: int = None,
lavfi: str = None,
filter_complex_script: str = None,
auto_conversion_filters: bool = None,
stats: bool = None,
stats_period: str = None,
debug_ts: bool = None,
max_error_rate: float = None,
vstats: str = None,
vstats_file: str = None,
vstats_version: int = None,
init_hw_device: str = None,
filter_hw_device: str = None,
adrift_threshold: str = None,
qphist: str = None,
vsync: str = None,
loglevel: Func = None,
v: Func = None,
report: Func = None,
max_alloc: Func = None,
cpuflags: Func = None,
cpucount: Func = None,
hide_banner: Boolean = None,
y: Boolean = None,
n: Boolean = None,
ignore_unknown: Boolean = None,
copy_unknown: Boolean = None,
recast_media: Boolean = None,
benchmark: Boolean = None,
benchmark_all: Boolean = None,
progress: Func = None,
stdin: Boolean = None,
timelimit: Func = None,
dump: Boolean = None,
hex: Boolean = None,
frame_drop_threshold: Float = None,
copyts: Boolean = None,
start_at_zero: Boolean = None,
copytb: Int = None,
dts_delta_threshold: Float = None,
dts_error_threshold: Float = None,
xerror: Boolean = None,
abort_on: Func = None,
filter_threads: Func = None,
filter_complex: Func = None,
filter_complex_threads: Int = None,
lavfi: Func = None,
filter_complex_script: Func = None,
auto_conversion_filters: Boolean = None,
stats: Boolean = None,
stats_period: Func = None,
debug_ts: Boolean = None,
max_error_rate: Float = None,
vstats: Func = None,
vstats_file: Func = None,
vstats_version: Int = None,
init_hw_device: Func = None,
filter_hw_device: Func = None,
adrift_threshold: Func = None,
qphist: Func = None,
vsync: Func = None,
**kwargs: Any,
) -> GlobalStream:
"""
Expand Down
105 changes: 53 additions & 52 deletions src/ffmpeg/dag/io/_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,64 +5,65 @@
from typing import Any

from ...streams.av import AVStream
from ...types import Boolean, Double, Float, Int, String, Time
from ..nodes import InputNode


def input(
filename: str | Path,
*,
f: str = None,
c: str = None,
codec: str = None,
t: str | float | None = None,
to: str | float | None = None,
ss: str | float | None = None,
sseof: str | float | None = None,
seek_timestamp: int = None,
accurate_seek: bool = None,
isync: int = None,
itsoffset: str | float | None = None,
itsscale: float = None,
re: bool = None,
readrate: float = None,
readrate_initial_burst: float = None,
bitexact: bool = None,
tag: str = None,
reinit_filter: int = None,
dump_attachment: str = None,
stream_loop: int = None,
discard: str = None,
thread_queue_size: int = None,
find_stream_info: bool = None,
r: str = None,
s: str = None,
pix_fmt: str = None,
display_rotation: float = None,
display_hflip: bool = None,
display_vflip: bool = None,
vn: bool = None,
vcodec: str = None,
vtag: str = None,
hwaccel: str = None,
hwaccel_device: str = None,
hwaccel_output_format: str = None,
autorotate: bool = None,
ar: int = None,
ac: int = None,
an: bool = None,
acodec: str = None,
sample_fmt: str = None,
channel_layout: str = None,
ch_layout: str = None,
guess_layout_max: int = None,
sn: bool = None,
scodec: str = None,
fix_sub_duration: bool = None,
canvas_size: str = None,
bsf: str = None,
dcodec: str = None,
dn: bool = None,
top: int = None,
f: String = None,
c: String = None,
codec: String = None,
t: Time = None,
to: Time = None,
ss: Time = None,
sseof: Time = None,
seek_timestamp: Int = None,
accurate_seek: Boolean = None,
isync: Int = None,
itsoffset: Time = None,
itsscale: Double = None,
re: Boolean = None,
readrate: Float = None,
readrate_initial_burst: Double = None,
bitexact: Boolean = None,
tag: String = None,
reinit_filter: Int = None,
dump_attachment: String = None,
stream_loop: Int = None,
discard: String = None,
thread_queue_size: Int = None,
find_stream_info: Boolean = None,
r: String = None,
s: String = None,
pix_fmt: String = None,
display_rotation: Double = None,
display_hflip: Boolean = None,
display_vflip: Boolean = None,
vn: Boolean = None,
vcodec: String = None,
vtag: String = None,
hwaccel: String = None,
hwaccel_device: String = None,
hwaccel_output_format: String = None,
autorotate: Boolean = None,
ar: Int = None,
ac: Int = None,
an: Boolean = None,
acodec: String = None,
sample_fmt: String = None,
channel_layout: String = None,
ch_layout: String = None,
guess_layout_max: Int = None,
sn: Boolean = None,
scodec: String = None,
fix_sub_duration: Boolean = None,
canvas_size: String = None,
bsf: String = None,
dcodec: String = None,
dn: Boolean = None,
top: Int = None,
**kwargs: Any
) -> AVStream:
"""
Expand Down
Loading

0 comments on commit b302287

Please sign in to comment.