fc40b5c402
Sync с ffmpeg-fresh n7.1-vf-cuda-grid-phase7 cd1839f. Layout validation (http_api set_layout, dispatch _set_layout) теперь accept'ит main_with_strip. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
22 lines
668 B
Python
22 lines
668 B
Python
"""Известные layouts — сейчас захардкожены в C filter (vf_cuda_grid.c).
|
|
|
|
Должно быть в sync с тем что в FFmpeg patch. Phase 4 будет dynamic layout
|
|
registry (created через runtime API).
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
# Список синхронизирован с layouts[] в libavfilter/vf_cuda_grid.c (Phase 2).
|
|
PREDEFINED_LAYOUTS: list[str] = [
|
|
"single",
|
|
"dual_horizontal",
|
|
"dual_vertical",
|
|
"quad",
|
|
"main_plus_preview",
|
|
"six_grid",
|
|
"nine_grid",
|
|
"sixteen_grid",
|
|
"panoramic",
|
|
"main_with_strip", # Phase 8: main 16:9 + 3 preview + bottom strip (cell 4)
|
|
]
|