Pick the video icon variant from the corner luminance

Problem/Motivation

#67 (closed) burns the icon into deep-fake video always in the solid white variant. On bright footage the white pill has little contrast. #62 (closed) already picks black or white for images from the corner luminance.

Proposed resolution

Sample the corner luminance of a few frames with FFmpeg before rendering and pick the black or white icon, with the threshold #62 (closed) uses. Keep a setting to force one variant.

Remaining tasks

  • Luminance sampling through ffmpeg
  • Variant setting
  • Kernel test with a bright and a dark source

Follow-up of #67 (closed). Part of #56 (closed).

AI Compliance

🤖 Generated with the help of an LLM, reviewed and approved by me before posting.

Edited by Giorgio Alfredo Pagano