1 // Copyright (C) 2020 The Android Open Source Project 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #ifndef COMPUTEPIPE_RUNNER_INPUT_MANAGER_H 16 #define COMPUTEPIPE_RUNNER_INPUT_MANAGER_H 17 18 #include <memory> 19 20 #include "InputConfig.pb.h" 21 #include "InputEngineInterface.h" 22 #include "InputFrame.h" 23 #include "RunnerComponent.h" 24 25 namespace android { 26 namespace automotive { 27 namespace computepipe { 28 namespace runner { 29 namespace input_manager { 30 31 /** 32 * InputManager: Is the runner component repsonsible for managing the input 33 * source for the graph. The Component exposes communications from the engine to 34 * the input source. 35 */ 36 class InputManager : public RunnerComponentInterface {}; 37 38 /** 39 * Factory that instantiates the input manager, for a given input option. 40 */ 41 class InputManagerFactory { 42 public: 43 std::unique_ptr<InputManager> createInputManager( 44 const proto::InputConfig& config, const proto::InputConfig& overrideConfig, 45 std::shared_ptr<InputEngineInterface> engine); 46 InputManagerFactory() = default; 47 InputManagerFactory(const InputManagerFactory&) = delete; 48 InputManagerFactory& operator=(const InputManagerFactory&) = delete; 49 InputManagerFactory(const InputManagerFactory&&) = delete; 50 InputManagerFactory& operator=(const InputManagerFactory&&) = delete; 51 }; 52 53 } // namespace input_manager 54 } // namespace runner 55 } // namespace computepipe 56 } // namespace automotive 57 } // namespace android 58 #endif 59