"""Configuration for VideoReceiverSFP local behavior."""
from __future__ import annotations

import os

# Directory to store dumps (relative to repo root by default)
DUMPS_DIR = os.path.join(os.getcwd(), "dumps")

# Number of latest files to keep per type (png, bin)
DUMP_KEEP_COUNT = 100
 
# Debug save flags for payload types
# Set these to True/False to control saving of raw payloads
SAVE_RAW_MFD = False
SAVE_RAW_SAR = False
SAVE_RAW_UNKNOWN = True

# Flags to also save decoded previews for quick inspection
# MFD: save BMP; SAR/UNKNOWN: save BMP by default for lossless grayscale
SAVE_BMP_MFD = False
SAVE_BMP_SAR = True
SAVE_BMP_UNKNOWN = True

# Video recording defaults
# Set RECORD_MFD_VIDEO/RECORD_SAR_VIDEO to True to enable automatic
# recording of MFD/SAR streams into the `dumps` folder using DumpManager.
RECORD_MFD_VIDEO = True
RECORD_SAR_VIDEO = False
# Default FPS used when creating videos (can be overridden at runtime)
VIDEO_FPS = 20
