YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FfmpegGrabber_ParamsParser.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6
7// Generated by yarpDeviceParamParserGenerator (1.0)
8// This is an automatically generated file. Please do not edit it.
9// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.
10
11// Generated on: Sat Apr 6 12:45:14 2024
12
13
14#ifndef FFMPEGGRABBER_PARAMSPARSER_H
15#define FFMPEGGRABBER_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
19#include <string>
20#include <cmath>
21
61{
62public:
64 ~FfmpegGrabber_ParamsParser() override = default;
65
66public:
67 const std::string m_device_classname = {"FfmpegGrabber"};
68 const std::string m_device_name = {"ffmpeg_grabber"};
69 bool m_parser_is_strict = false;
71 {
72 int major = 1;
73 int minor = 0;
74 };
76
77 const std::string m_source_defaultValue = {"default.avi"};
78 const std::string m_loop_defaultValue = {"true"};
79 const std::string m_sync_defaultValue = {"image"};
80 const std::string m_nodelay_defaultValue = {"false"};
81 const std::string m_pace_defaultValue = {"1.0"};
82 const std::string m_v4l_defaultValue = {"false"};
83 const std::string m_v4l1_defaultValue = {"false"};
84 const std::string m_v4l2_defaultValue = {"false"};
85 const std::string m_ieee1394_defaultValue = {"false"};
86 const std::string m_v4ldevice_defaultValue = {"/dev/video0"};
87 const std::string m_audio_defaultValue = {"/dev/dsp"};
88 const std::string m_audio_rate_defaultValue = {"44100"};
89 const std::string m_channels_defaultValue = {"1"};
90 const std::string m_time_base_num_defaultValue = {"1"};
91 const std::string m_time_base_den_defaultValue = {"29"};
92 const std::string m_channel_defaultValue = {"0"};
93 const std::string m_standard_defaultValue = {""};
94 const std::string m_width_defaultValue = {"640"};
95 const std::string m_height_defaultValue = {"480"};
96 const std::string m_devname_defaultValue = {"/dev/dv1394"};
97
98 std::string m_source = {"default.avi"};
99 bool m_loop = {true};
100 std::string m_sync = {"image"};
101 bool m_nodelay = {false};
102 double m_pace = {1.0};
103 bool m_v4l = {false};
104 bool m_v4l1 = {false};
105 bool m_v4l2 = {false};
106 bool m_ieee1394 = {false};
107 std::string m_v4ldevice = {"/dev/video0"};
108 std::string m_audio = {"/dev/dsp"};
109 int m_audio_rate = {44100};
110 int m_channels = {1};
112 int m_time_base_den = {29};
113 int m_channel = {0};
114 std::string m_standard = {}; //This default value of this string is an empty string. It is highly recommended to provide a suggested value also for optional string parameters.
115 int m_width = {640};
116 int m_height = {480};
117 std::string m_devname = {"/dev/dv1394"};
118
119 bool parseParams(const yarp::os::Searchable & config) override;
120 std::string getDeviceClassName() const override { return m_device_classname; }
121 std::string getDeviceName() const override { return m_device_name; }
122 std::string getDocumentationOfDeviceParams() const override;
123 std::vector<std::string> getListOfParams() const override;
124};
125
126#endif
This class is the parameters parser for class FfmpegGrabber.
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
std::string getDeviceClassName() const override
Get the name of the DeviceDriver class.
const parser_version_type m_parser_version
~FfmpegGrabber_ParamsParser() override=default
std::string getDeviceName() const override
Get the name of the device (i.e.
std::vector< std::string > getListOfParams() const override
Return a list of all params used by the device.
std::string getDocumentationOfDeviceParams() const override
Get the documentation of the DeviceDriver's parameters.
An interface for the management of the parameters of a DeviceDriver.
A base class for nested structures that can be searched.
Definition Searchable.h:31