AJA NTV2 SDK
17.6.0.2675
NTV2 SDK 17.6.0.2675
v4l2loopback.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2
/*
3
* v4l2loopback.h
4
*
5
* Written by IOhannes m zmölnig, 7/1/20.
6
*
7
* Copyright 2020 by IOhannes m zmölnig. Redistribution of this file is
8
* permitted under the GNU General Public License.
9
*/
10
#ifndef _V4L2LOOPBACK_H
11
#define _V4L2LOOPBACK_H
12
13
#define V4L2LOOPBACK_VERSION_MAJOR 0
14
#define V4L2LOOPBACK_VERSION_MINOR 13
15
#define V4L2LOOPBACK_VERSION_BUGFIX 2
16
17
/* /dev/v4l2loopback interface */
18
19
struct
v4l2_loopback_config
{
35
int
output_nr
;
36
int
unused
;
/*capture_nr;*/
37
42
char
card_label
[32];
43
48
unsigned
int
min_width
;
49
unsigned
int
max_width
;
50
unsigned
int
min_height
;
51
unsigned
int
max_height
;
52
57
int
max_buffers
;
58
63
int
max_openers
;
64
68
int
debug
;
69
77
int
announce_all_caps
;
78
};
79
80
/* a pointer to a (struct v4l2_loopback_config) that has all values you wish to impose on the
81
* to-be-created device set.
82
* if the ptr is NULL, a new device is created with default values at the driver's discretion.
83
*
84
* returns the device_nr of the OUTPUT device (which can be used with V4L2LOOPBACK_CTL_QUERY,
85
* to get more information on the device)
86
*/
87
#define V4L2LOOPBACK_CTL_ADD 0x4C80
88
89
/* a pointer to a (struct v4l2_loopback_config) that has output_nr and/or capture_nr set
90
* (the two values must either refer to video-devices associated with the same loopback device
91
* or exactly one of them must be <0
92
*/
93
#define V4L2LOOPBACK_CTL_QUERY 0x4C82
94
95
/* the device-number (either CAPTURE or OUTPUT) associated with the loopback-device */
96
#define V4L2LOOPBACK_CTL_REMOVE 0x4C81
97
98
#endif
/* _V4L2LOOPBACK_H */
v4l2_loopback_config::output_nr
int output_nr
Definition:
v4l2loopback.h:35
v4l2_loopback_config
Definition:
v4l2loopback.h:19
v4l2_loopback_config::card_label
char card_label[32]
Definition:
v4l2loopback.h:42
v4l2_loopback_config::max_height
unsigned int max_height
Definition:
v4l2loopback.h:51
v4l2_loopback_config::unused
int unused
Definition:
v4l2loopback.h:36
v4l2_loopback_config::min_height
unsigned int min_height
Definition:
v4l2loopback.h:50
v4l2_loopback_config::max_width
unsigned int max_width
Definition:
v4l2loopback.h:49
v4l2_loopback_config::max_buffers
int max_buffers
Definition:
v4l2loopback.h:57
v4l2_loopback_config::max_openers
int max_openers
Definition:
v4l2loopback.h:63
v4l2_loopback_config::min_width
unsigned int min_width
Definition:
v4l2loopback.h:48
v4l2_loopback_config::announce_all_caps
int announce_all_caps
Definition:
v4l2loopback.h:77
v4l2_loopback_config::debug
int debug
Definition:
v4l2loopback.h:68
libajantv2
demos
ntv2vcam
v4l2loopback.h
Generated on Fri Nov 7 2025 18:59:56 for AJA NTV2 SDK by
1.8.17