.. _cpp-examples-generic-video-module:

Generic video module
====================

:ref:`\<\< return to C++ examples<cpp-examples>`

Overview
--------

**ALGenericVideoModule** is an example showing how to use various functions
from :ref:`ALVideoDevice`.

This is a **local module**, it must be cross-compiled and sent to the robot.

Downloads
---------

Whole module
++++++++++++

:download:`genericvideomodule.zip <../genericvideomodule.zip>`

Header: genericvideomodule.h
++++++++++++++++++++++++++++

:download:`genericvideomodule.h <genericvideomodule.h>`

.. literalinclude:: genericvideomodule.h
   :language: cpp

Source: genericvideomodule.cpp
++++++++++++++++++++++++++++++++

:download:`genericvideomodule.cpp <genericvideomodule.cpp>`

.. literalinclude:: genericvideomodule.cpp
   :language: cpp

Main: genericvideomodule.cpp
++++++++++++++++++++++++++++

:download:`genericvideomodule.cpp <genericvideomodule.cpp>`

.. literalinclude:: genericvideomodule.cpp
   :language: cpp

CMakeLists.txt
++++++++++++++

:download:`CMakeLists.txt <CMakeLists.txt>`

.. literalinclude:: CMakeLists.txt
   :language: cmake

:download:`CMakeLists.txt <CMakeLists.txt>`

.. literalinclude:: CMakeLists.txt
   :language: cmake
