This library provides a C++ interface for encoding video on the Raspberry Pi using the Video4Linux (V4L2) API.
The main file main.cpp shows an example of how to use the library to encode a single frame of video to JPEG format. The example sets up a dummy RGB32 frame, converts it to RGB24 format, compresses it using the JPEG encoder, and writes the output to a file.
To use the library in your own project, include the m2m.h header file and link against the shared object library (libm2m.so).
The library has the following dependencies:
- Video4Linux2 (V4L2) API
- ARM NEON instructions (optional, for faster RGB32 to RGB24 conversion)
This library is released under the GPL 3 license. See LICENSE file for more information.
- Michał Gapiński ([email protected])
- Maxim Devaev ([email protected])