--background--

NOTES

   QOI spec v1.0: header is in muxer; encoder emits only chunks, row-major order.

DESCRIPTION

   Reggae encoder that converts common video formats to QOI payload stream
   (i.e. QOI opcodes WITHOUT the 14-byte header and WITHOUT the 8-byte end marker).

   Intended chain:
     source -> qoi.encoder -> qoi.muxer -> stream (file)

   Supported input formats:
     - MMF_VIDEO_RGB24
     - MMF_VIDEO_RGBA32
     - MMFC_VIDEO_ARGB32
     - MMF_VIDEO_LUT8 (uses MMA_Video_Palette / MMA_Video_PaletteLength if present)
     - MMF_VIDEO_GRAY8 / MMFC_VIDEO_GRAY8

   Output format:
     - MMF_VIDEO_QOI  (custom format id; muxer expects the same)

 ARGUMENTS (MMA_Arguments):
   Template: "BPP/K/N,COLORSPACE/K/N"
     - BPP: 24 or 32 (forces 3 or 4 channels). 0/omitted = auto.
     - COLORSPACE: 0 (sRGB with linear alpha), 1 (all channels linear). Informative only.