AVPKit
IVideoResampler.cpp
1 /*******************************************************************************
2  * Copyright (c) 2024, 2026, Olivier Ayache. All rights reserved.
3  *
4  * This file is part of AVPKit.
5  *
6  * AVPKit is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * AVPKit is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with AVPKit. If not, see <http://www.gnu.org/licenses/>.
18  *******************************************************************************/
19 
20 #include <com/avpkit/core/IVideoResampler.h>
21 #include <com/avpkit/core/Global.h>
22 #include <com/avpkit/core/VideoResampler.h>
23 
24 namespace com { namespace avpkit { namespace core
25  {
26 
27  IVideoResampler :: IVideoResampler()
28  {
29  }
30 
31  IVideoResampler :: ~IVideoResampler()
32  {
33  }
34 
35  IVideoResampler*
37  int32_t outputWidth, int32_t outputHeight,
38  IPixelFormat::Type outputFmt,
39  int32_t inputWidth, int32_t inputHeight,
40  IPixelFormat::Type inputFmt)
41  {
42  Global::init();
43  return VideoResampler::make(outputWidth, outputHeight, outputFmt,
44  inputWidth, inputHeight, inputFmt);
45  }
46 
47  bool
49  {
50  (void)aFeature; // ignored for now, but might change
51  return true;
52  }
53  }}}
static void init()
Internal Only.
Definition: Global.cpp:157
static bool isSupported(Feature feature)
Returns true if the asked for feature is supported.
Feature
Features that the VideoResampler may optionally support.
static IVideoResampler * make(int32_t outputWidth, int32_t outputHeight, IPixelFormat::Type outputFmt, int32_t inputWidth, int32_t inputHeight, IPixelFormat::Type inputFmt)
Get a new video resampler.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...