| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSING_PIPELINE_PARSER_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSING_PIPELINE_PARSER_H_ |
| 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSING_PIPELINE_PARSER_H_ | 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSING_PIPELINE_PARSER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <unordered_set> | 10 #include <unordered_set> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 explicit PostProcessingPipelineParser(const std::string& json = ""); | 48 explicit PostProcessingPipelineParser(const std::string& json = ""); |
| 49 ~PostProcessingPipelineParser(); | 49 ~PostProcessingPipelineParser(); |
| 50 | 50 |
| 51 std::vector<StreamPipelineDescriptor> GetStreamPipelines(); | 51 std::vector<StreamPipelineDescriptor> GetStreamPipelines(); |
| 52 | 52 |
| 53 // Gets the list of processors for the mix/linearize stages. | 53 // Gets the list of processors for the mix/linearize stages. |
| 54 // Same format as StreamPipelineDescriptor.pipeline | 54 // Same format as StreamPipelineDescriptor.pipeline |
| 55 const base::ListValue* GetMixPipeline(); | 55 const base::ListValue* GetMixPipeline(); |
| 56 const base::ListValue* GetLinearizePipeline(); | 56 const base::ListValue* GetLinearizePipeline(); |
| 57 | 57 |
| 58 static std::string GetFilePath(); | |
| 59 | |
| 60 private: | 58 private: |
| 61 const base::ListValue* GetPipelineByKey(const std::string& key); | 59 const base::ListValue* GetPipelineByKey(const std::string& key); |
| 62 | 60 |
| 63 std::unique_ptr<base::DictionaryValue> config_dict_; | 61 std::unique_ptr<base::DictionaryValue> config_dict_; |
| 64 const base::DictionaryValue* postprocessor_config_; | 62 const base::DictionaryValue* postprocessor_config_; |
| 65 | 63 |
| 66 DISALLOW_COPY_AND_ASSIGN(PostProcessingPipelineParser); | 64 DISALLOW_COPY_AND_ASSIGN(PostProcessingPipelineParser); |
| 67 }; | 65 }; |
| 68 | 66 |
| 69 } // namepsace media | 67 } // namepsace media |
| 70 } // namespace chromecast | 68 } // namespace chromecast |
| 71 | 69 |
| 72 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSING_PIPELINE_PARSER_H_ | 70 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_POST_PROCESSING_PIPELINE_PARSER_H_ |
| OLD | NEW |