2 * Copyright (C) 2015-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
14 class CPictureScalingAlgorithm
17 typedef enum Algorithm
33 static Algorithm Default
;
35 static Algorithm
FromString(const std::string
& scalingAlgorithm
);
36 static std::string
ToString(Algorithm scalingAlgorithm
);
37 static int ToSwscale(const std::string
& scalingAlgorithm
);
38 static int ToSwscale(Algorithm scalingAlgorithm
);
41 CPictureScalingAlgorithm();
43 typedef struct ScalingAlgorithm
49 typedef std::map
<CPictureScalingAlgorithm::Algorithm
, CPictureScalingAlgorithm::ScalingAlgorithm
> AlgorithmMap
;
50 static AlgorithmMap m_algorithms
;