/* * Copyright (C) 2022 Michael Goffioul * Copyright (C) 2025 KonstaKANG * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef C2_FFMPEG_COMPONENT_STORE_H #define C2_FFMPEG_COMPONENT_STORE_H #include "C2FFMPEGComponentInterface.h" namespace android { class C2FFMPEGComponentStore : public C2ComponentStore { public: C2FFMPEGComponentStore(); virtual ~C2FFMPEGComponentStore() override; virtual C2String getName() const override; virtual c2_status_t createComponent( C2String name, std::shared_ptr* const component) override; virtual c2_status_t createInterface( C2String name, std::shared_ptr* const interface) override; virtual std::vector> listComponents() override; virtual c2_status_t copyBuffer( std::shared_ptr /* src */, std::shared_ptr /* dst */) override; virtual c2_status_t query_sm( const std::vector& stackParams, const std::vector& heapParamIndices, std::vector>* const heapParams) const override; virtual c2_status_t config_sm( const std::vector& params, std::vector>* const failures) override; virtual std::shared_ptr getParamReflector() const override; virtual c2_status_t querySupportedParams_nb( std::vector>* const params) const override; virtual c2_status_t querySupportedValues_sm( std::vector& fields) const override; private: std::shared_ptr mReflectorHelper; C2FFMPEGComponentInterface mInterface; }; } // namespace android #endif // C2_FFMPEG_COMPONENT_STORE_H