• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 //#define LOG_NDEBUG 0
18 #define LOG_TAG "Codec2-FilterWrapperStub"
19 
20 #include <FilterWrapper.h>
21 
22 namespace android {
23 
FilterWrapper(std::unique_ptr<Plugin> &&)24 FilterWrapper::FilterWrapper(std::unique_ptr<Plugin> &&) {
25 }
26 
~FilterWrapper()27 FilterWrapper::~FilterWrapper() {
28 }
29 
maybeWrapInterface(const std::shared_ptr<C2ComponentInterface> intf)30 std::shared_ptr<C2ComponentInterface> FilterWrapper::maybeWrapInterface(
31         const std::shared_ptr<C2ComponentInterface> intf) {
32     return intf;
33 }
34 
maybeWrapComponent(const std::shared_ptr<C2Component> comp)35 std::shared_ptr<C2Component> FilterWrapper::maybeWrapComponent(
36         const std::shared_ptr<C2Component> comp) {
37     return comp;
38 }
39 
isFilteringEnabled(const std::shared_ptr<C2ComponentInterface> &)40 bool FilterWrapper::isFilteringEnabled(const std::shared_ptr<C2ComponentInterface> &) {
41     return false;
42 }
43 
createBlockPool(C2PlatformAllocatorStore::id_t allocatorId,std::shared_ptr<const C2Component> component,std::shared_ptr<C2BlockPool> * pool)44 c2_status_t FilterWrapper::createBlockPool(
45         C2PlatformAllocatorStore::id_t allocatorId,
46         std::shared_ptr<const C2Component> component,
47         std::shared_ptr<C2BlockPool> *pool) {
48     return CreateCodec2BlockPool(allocatorId, component, pool);
49 }
50 
51 }  // namespace android
52