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