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 |
| 13 namespace base { |
| 14 class DictionaryValue; |
| 15 class ListValue; |
| 16 } // namespace base |
| 17 |
| 18 namespace chromecast { |
| 19 namespace media { |
| 20 |
| 21 // Helper class to parse post-processing pipeline descriptor file. |
| 22 class PostProcessingPipelineParser { |
| 23 public: |
| 24 PostProcessingPipelineParser(); |
| 25 ~PostProcessingPipelineParser(); |
| 26 |
| 27 // Reads the pipeline descriptor file and does preliminary parsing. |
| 28 // Crashes with fatal log if parsing fails. |
| 29 void Initialize(); |
| 30 |
| 31 // Gets the list of processors for a given stream type. |
| 32 // The format will be: |
| 33 // [ |
| 34 // {"processor": "PATH_TO_SHARED_OBJECT", |
| 35 // "config": "CONFIGURATION_STRING"}, |
| 36 // {"processor": "PATH_TO_SHARED_OBJECT", |
| 37 // "config": "CONFIGURATION_STRING"}, |
| 38 // ... |
| 39 // ] |
| 40 base::ListValue* GetPipelineByDeviceId(const std::string& device_id); |
| 41 |
| 42 private: |
| 43 std::unique_ptr<base::DictionaryValue> config_dict_; |
| 44 base::DictionaryValue* pipeline_dict_ = nullptr; |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(PostProcessingPipelineParser); |
| 47 }; |
| 48 |
| 49 } // namepsace media |
| 50 } // namespace chromecast |
| 51 |
| 52 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSING_PIPELINE_PARSER_H_ |
OLD | NEW |