mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Fix spacing
This commit is contained in:
parent
fce413b5f5
commit
676986ed6e
@ -230,6 +230,7 @@ PRESETS_HW_ACCEL_ENCODE = {
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
def parse_preset_hardware_acceleration_decode(arg: Any) -> list[str]:
|
||||
"""Return the correct preset if in preset format otherwise return None."""
|
||||
if not isinstance(arg, str):
|
||||
@ -237,6 +238,7 @@ def parse_preset_hardware_acceleration_decode(arg: Any) -> list[str]:
|
||||
|
||||
return PRESETS_HW_ACCEL_DECODE.get(arg, None)
|
||||
|
||||
|
||||
def parse_preset_hardware_acceleration_scale(
|
||||
arg: Any,
|
||||
detect_args: list[str],
|
||||
@ -256,6 +258,7 @@ def parse_preset_hardware_acceleration_scale(
|
||||
scale[1] = scale[1].format(fps, width, height)
|
||||
return scale
|
||||
|
||||
|
||||
def parse_preset_hardware_acceleration_encode(arg: Any) -> list[str]:
|
||||
"""Return the correct scaling preset or default preset if none is set."""
|
||||
if not isinstance(arg, str):
|
||||
@ -263,6 +266,7 @@ def parse_preset_hardware_acceleration_encode(arg: Any) -> list[str]:
|
||||
|
||||
return PRESETS_HW_ACCEL_ENCODE.get(arg, PRESETS_HW_ACCEL_ENCODE["default"])
|
||||
|
||||
|
||||
PRESETS_INPUT = {
|
||||
"preset-http-jpeg-generic": _user_agent_args
|
||||
+ [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user