OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSING_PIPELINE_PARSER_H_ | |
6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSING_PIPELINE_PARSER_H_ | |
7 | |
8 #include <memory> | |
9 #include <string> | |
10 | |
11 #include "base/macros.h" | |
12 #include "base/values.h" | |
wzhong
2017/03/27 14:23:43
Forward declaration.
bshaya
2017/03/27 21:00:26
Done.
| |
13 | |
14 namespace chromecast { | |
15 namespace media { | |
16 | |
17 // Helper class to parse post-processing pipeline descriptor file. | |
18 class PostProcessingPipelineParser { | |
19 public: | |
20 PostProcessingPipelineParser(); | |
21 ~PostProcessingPipelineParser(); | |
22 | |
23 // Reads the pipeline descriptor file and does preliminary parsing. | |
24 // Crashes with fatal log if parsing fails. | |
25 void Initialize(); | |
26 | |
27 // Gets the list of processors for a given stream type. | |
28 // The format will be: | |
29 // [ | |
30 // {"processor": "PATH_TO_SHARED_OBJECT", | |
31 // "config": "CONFIGURATION_STRING"}, | |
32 // {"processor": "PATH_TO_SHARED_OBJECT", | |
33 // "config": "CONFIGURATION_STRING"}, | |
34 // ... | |
35 // ] | |
36 base::ListValue* GetPipelineByDeviceId(const std::string& device_id); | |
37 | |
38 private: | |
39 std::unique_ptr<base::Value> cast_audio_config_data_; | |
40 base::DictionaryValue* pipeline_dict_ = nullptr; | |
41 | |
42 DISALLOW_COPY_AND_ASSIGN(PostProcessingPipelineParser); | |
43 }; | |
44 | |
45 } // namepsace media | |
46 } // namespace chromecast | |
47 | |
48 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSING_PIPELINE_PARSER_H_ | |
OLD | NEW |