enum mrpt::img::VideoCodec

Overview

Selects the encoding used by CVideoFileWriter. More…

#include <CVideoFileWriter.h>

enum VideoCodec
{
    UncompressedRGB = 0,
    MJPEG           = 1,
};

Detailed Documentation

Selects the encoding used by CVideoFileWriter.

  • UncompressedRGB : Raw BGR24 frames stored in an AVI (BI_RGB). Large files, zero quality loss, no additional dependencies beyond file I/O.

  • MJPEG : Each frame is an independent JPEG, stored in an AVI as an MJPG stream. Good compression, still widely compatible, and requires only the STB JPEG encoder already present in MRPT (no external libs).

Enum Values

UncompressedRGB

Raw BGR24 in AVI/RIFF container.

MJPEG

Motion-JPEG in AVI/RIFF container (uses STB)