hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
// 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.
 
#ifndef _RK_DBUS_DBCONFIG_H_
#define _RK_DBUS_DBCONFIG_H_
 
#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <memory>
 
namespace rockchip {
namespace aiserver {
 
class DbAudioConfig {
public:
  DbAudioConfig() = default;
  ~DbAudioConfig() {}
 
  int volume;
  int bit_rate;
  int sample_rate;
  std::string audio_source;
  std::string encode_type;
  std::string ans;
};
 
class DbVideoConfig {
public:
  DbVideoConfig() = default;
  ~DbVideoConfig() {}
 
  int gop;
  int max_rate;
  int stream_smooth;
  int frame_rate_num;
  int frame_rate_den;
  std::string resolution;
  std::string image_quality;
  std::string output_data_type;
  std::string rc_mode;
  std::string rc_quality;
  std::string smart264;
  std::string svc;
  std::string video_type;
};
 
class DbMediaConfig {
public:
  DbMediaConfig() = default;
  ~DbMediaConfig() {}
  std::shared_ptr<DbVideoConfig> VideoConfigParse(std::string db_config);
  std::shared_ptr<DbAudioConfig> AudioConfigParse(std::string db_config);
 
private:
};
 
} // namespace aiserver
} // namespace rockchip
 
#endif // _RK_DBUS_DBCONFIG_H_