diff options
Diffstat (limited to 'components/include/v4l2_codec2/components/V4L2ComponentFactory.h')
-rw-r--r-- | components/include/v4l2_codec2/components/V4L2ComponentFactory.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/components/include/v4l2_codec2/components/V4L2ComponentFactory.h b/components/include/v4l2_codec2/components/V4L2ComponentFactory.h deleted file mode 100644 index fc6abea..0000000 --- a/components/include/v4l2_codec2/components/V4L2ComponentFactory.h +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2021 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef ANDROID_V4L2_CODEC2_COMPONENTS_V4L2_COMPONENT_FACTORY_H -#define ANDROID_V4L2_CODEC2_COMPONENTS_V4L2_COMPONENT_FACTORY_H - -#include <memory> -#include <string> - -#include <C2ComponentFactory.h> -#include <util/C2InterfaceHelper.h> - -namespace android { - -class V4L2ComponentFactory : public C2ComponentFactory { -public: - static std::unique_ptr<V4L2ComponentFactory> create( - const std::string& componentName, std::shared_ptr<C2ReflectorHelper> reflector); - V4L2ComponentFactory(const std::string& componentName, bool isEncoder, - std::shared_ptr<C2ReflectorHelper> reflector); - ~V4L2ComponentFactory() override = default; - - // Implementation of C2ComponentFactory. - c2_status_t createComponent(c2_node_id_t id, std::shared_ptr<C2Component>* const component, - ComponentDeleter deleter) override; - c2_status_t createInterface(c2_node_id_t id, - std::shared_ptr<C2ComponentInterface>* const interface, - InterfaceDeleter deleter) override; - -private: - const std::string mComponentName; - const bool mIsEncoder; - std::shared_ptr<C2ReflectorHelper> mReflector; -}; - -} // namespace android - -#endif // ANDROID_V4L2_CODEC2_COMPONENTS_V4L2_COMPONENT_FACTORY_H |