| 272 | |
| 273 | @dataclass |
| 274 | class EncodingPreset: |
| 275 | name: str |
| 276 | description: str |
| 277 | user_preset: bool |
| 278 | encoder_name: str |
| 279 | encoder_options: str |
| 280 | |
| 281 | def __hash__(self): return hash(self.name) |
| 282 | |
| 283 | def clone(self): return EncodingPreset(**dataclasses.asdict(self)) |
| 284 | |
| 285 | def get_default_preset_name(): |
| 286 | if os_utils.has_nvidia_gpu() and is_nvidia_cuda_encoding_available(): |
no outgoing calls
no test coverage detected