Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/scripts/parse_c/schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
"""Schema definitions for FFmpeg options."""
"""
Schema definitions for FFmpeg options.

This module defines the data structures for representing FFmpeg options,
including their types, flags, and other properties. It provides a
structured way to model and manipulate FFmpeg command-line options.

"""

from dataclasses import dataclass
from enum import Enum
Expand Down
16 changes: 0 additions & 16 deletions src/scripts/parse_help/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ class FFMpegOption:
argname: str | None = None
"""The variable name for the option (e.g., "flags", "count") or None if not specified."""

@property
def is_av_option(self) -> bool:
"""Whether this option is an AV option."""
return isinstance(self, FFMpegAVOption)


@dataclass(frozen=True, kw_only=True)
class FFMpegOptionChoice:
Expand Down Expand Up @@ -144,17 +139,6 @@ class FFMpegAVOption(FFMpegOption):
choices: tuple[FFMpegOptionChoice, ...] = ()
"""Available choices for this option (for enum or flags types)."""

@property
def code_gen_type(self) -> str:
"""
Get the code generation type for this option.

Returns:
The type string for code generation.

"""
return "str"


@dataclass(frozen=True, kw_only=True)
class FFMpegOptionSet:
Expand Down
Loading