7.3.2 Sample Program
This chapter briefly describes the D-Robotics multimedia application examples. The source code involved can be obtained by running sudo apt install hobot-multimedia-samples
and installed under the directory /app/multimedia_samples
.
Instructions for using get_sif_data
Program Function
The following diagram shows the video data path diagram of X3M, for explanations of the professional terms, please refer to Overview of Multimedia Development - Terminology.
get_sif_data
completes the initialization of the sensor
, MIPI CSI
, and SIF
modules, and implements the function of acquiring video frame data from the SIF
module, supporting obtaining images in both Raw
and YUV
formats from the SIF
module.
get_sif_data
can effectively assist users in debugging the lighting of the sensor
and X3M
. After establishing the data path from sensor
to SIF
, other module functions can be debugged.
Program Development
Source Code Structure
The source code is located at /app/multimedia_samples/get_sif_data
.
├── main.c # Main program, loads the sensor list and controls the commands
├── Makefile # Makefile for compilation
├── module.c
├── module.h
├── Readme.md
├── sensor_handle.c # Sensor initialization, interface for acquiring images from SIF