MediaX
v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
Loading...
Searching...
No Matches
capture_yuyv.h
Go to the documentation of this file.
1
//
2
// Copyright (c) 2024, Astute Systems PTY LTD
3
//
4
// This file is part of the MediaX project developed by Astute Systems.
5
//
6
// Licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
7
// License. See the LICENSE file in the project root for full license details.
8
//
13
14
#ifndef CAPTURE_YUYV_H
15
#define CAPTURE_YUYV_H
16
#include <errno.h>
17
#include <fcntl.h>
18
#include <getopt.h>
19
#include <sys/ioctl.h>
20
21
#include <string>
22
23
class
V4l2_Capture_YUYV
{
24
public
:
25
V4l2_Capture_YUYV
(std::string dev_name, IoMethod io = IoMethod::IO_METHOD_MMAP);
26
void
InitaliseMmap(
void
);
27
void
InitaliseUserp(
unsigned
int
buffer_size);
28
void
InitaliseDevice(
void
);
29
void
UninitaliseDevice(
void
);
30
void
Run(
void
);
31
int
read_frame(
int
count);
32
void
CloseDevice(
void
);
33
void
OpenDevice(
void
);
34
void
StartDevice(
void
);
35
void
StopDevice(
void
);
36
37
private
:
38
std::string dev_name_;
39
IoMethod io_;
40
};
41
42
#endif
// CAPTURE_YUYV_H
V4l2_Capture_YUYV
Definition
capture_yuyv.h:23
example
v4l2
capture_yuyv.h
Generated by
1.9.8