Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: chromecast/media/cma/backend/alsa/post_processing_pipeline_parser.h

Issue 2771143002: Implement runtime audio post-processing pipeline. See go/cast_audio.json (Closed)
Patch Set: Suffix governor with _1.0 Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698