hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Copyright 2019 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
 
#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <unistd.h>
 
#include "logger/log.h"
#include "dbus_camera_control.h"
 
#ifdef LOG_TAG
#undef LOG_TAG
#endif
#define LOG_TAG "dbus_camera_ctl"
 
namespace rockchip {
namespace aiserver {
 
DBusCameraControl::DBusCameraControl(DBus::Connection &connection)
    : DBus::ObjectAdaptor(connection, MEDIA_CONTROL_PATH_CAMERA) {}
 
DBusCameraControl::~DBusCameraControl() {}
 
int32_t DBusCameraControl::SetFrameRate(const int32_t &id,
                                        const int32_t &param) {
  LOG_INFO("DBusCameraControl::SetFrameRate\n");
  // TODO
  return 0;
}
 
int32_t DBusCameraControl::SetResolution(const int32_t &id,
                                         const int32_t &param1,
                                         const int32_t &param2) {
  LOG_INFO("DBusCameraControl::SetResolution\n");
  // TODO
  return 0;
}
 
int32_t DBusCameraControl::StartCamera(const int32_t &id) {
  LOG_INFO("DBusCameraControl::StartCamera\n");
  // TODO
  return 0;
}
 
int32_t DBusCameraControl::StopCamera(const int32_t &id) {
  LOG_INFO("DBusCameraControl::StopCamera\n");
  // TODO
  return 0;
}
 
int32_t DBusCameraControl::TakePicture(const int32_t &id,
                                       const int32_t &count) {
  LOG_INFO("DBusCameraControl::TakePicture\n");
  // TODO
  return 0;
}
 
int32_t DBusCameraControl::TakePicture(const std::string &id_count) {
  LOG_INFO("DBusCameraControl::TakePicture\n");
  // TODO
  return 0;
}
 
} // namespace aiserver
} // namespace rockchip