APM:Libraries
CameraSensor.h
Go to the documentation of this file.
1 /*
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License as published by
4  the Free Software Foundation, either version 3 of the License, or
5  (at your option) any later version.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program. If not, see <http://www.gnu.org/licenses/>.
14  */
15 #pragma once
16 
17 #include "AP_HAL_Linux.h"
18 
19 namespace Linux {
20 
21 class CameraSensor {
22 public:
23  CameraSensor(const char *device_path) { _device_path = device_path; }
24 
25  bool set_format(uint32_t width, uint32_t height, uint32_t format);
26  bool set_crop(uint32_t left, uint32_t top);
27 
28 private:
29  const char *_device_path;
30 };
31 
32 }
bool set_format(uint32_t width, uint32_t height, uint32_t format)
bool set_crop(uint32_t left, uint32_t top)
CameraSensor(const char *device_path)
Definition: CameraSensor.h:23
const char * _device_path
Definition: CameraSensor.h:29