hc
2023-03-21 4b55d97acc464242bcd6a8ae77b8ff37c22dec58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2019 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
 
#include "filter.h"
 
namespace easymedia
{
 
    DEFINE_REFLECTOR(Filter)
 
    // request should equal filter_name
    DEFINE_FACTORY_COMMON_PARSE(Filter)
 
    DEFINE_PART_FINAL_EXPOSE_PRODUCT(Filter, Filter)
 
    Filter::~Filter()
    {
    }
 
    int Filter::Process(std::shared_ptr<MediaBuffer> input _UNUSED, std::shared_ptr<MediaBuffer>& output _UNUSED)
    {
        errno = ENOSYS;
        return -1;
    }
 
    int Filter::SendInput(std::shared_ptr<MediaBuffer> input _UNUSED)
    {
        errno = ENOSYS;
        return -1;
    }
 
    std::shared_ptr<MediaBuffer> Filter::FetchOutput()
    {
        errno = ENOSYS;
        return nullptr;
    }
 
} // namespace easymedia