Gazebo Common

API Reference

4.7.0
gz/common/HWVideo.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Martin Pecka
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15 */
16 #ifndef IGNITION_COMMON_HWVIDEO_HH
17 #define IGNITION_COMMON_HWVIDEO_HH
18 
19 #include <gz/common/config.hh>
20 #include <gz/common/EnumIface.hh>
21 
22 namespace ignition::common
23 {
24  enum class IGNITION_COMMON_AV_VISIBLE HWEncoderType
25  {
27  NVENC, // Linux device is /dev/nvidia*
28  // Windows is the same (even though such file doesn't exist)
29  VAAPI, // Linux device /dev/dri/renderD* or display number (e.g. :0)
30  VDPAU, // Not supported (probably only for decoding?)
31  QSV, // Win device is 0-based GPU index,
32  // Linux uses /dev/dri/renderD* or display number (e.g. :0)
33  VIDEOTOOLBOX, // Not yet suported
34  AMF, // Not yet suported
35  OMX, // Not yet suported
36  V4L2M2M, // Not yet suported
37  DXVA2, // Not yet suported
38  _ // For FlagSet to work.
39  };
40 
41  IGN_ENUM(HWEncoderTypeParser, HWEncoderType,
42  HWEncoderType::NONE, HWEncoderType::_,
43  "NONE",
44  "NVENC",
45  "VAAPI",
46  "VDPAU",
47  "QSV",
48  "VIDEOTOOLBOX",
49  "AMF",
50  "OMX",
51  "V4L2M2M",
52  "DXVA2",
53  "INVALID"
54  )
55 }
56 
57 #endif
VDPAU
Definition: gz/common/HWVideo.hh:30
QSV
Definition: gz/common/HWVideo.hh:31
AMF
Definition: gz/common/HWVideo.hh:34
VAAPI
Definition: gz/common/HWVideo.hh:29
#define IGN_ENUM(name, enumType, begin, end,...)
NONE
Definition: gz/common/HWVideo.hh:26
OMX
Definition: gz/common/HWVideo.hh:35
DXVA2
Definition: gz/common/HWVideo.hh:37
Definition: gz/common/Base64.hh:27
V4L2M2M
Definition: gz/common/HWVideo.hh:36
NVENC
Definition: gz/common/HWVideo.hh:27
VIDEOTOOLBOX
Definition: gz/common/HWVideo.hh:33