| FFmpegKit Linux API 6.0

Loading...
Searching...
No Matches
ArchDetect.cpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Taner Sener
3 *
4 * This file is part of FFmpegKit.
5 *
6 * FFmpegKit 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 * FFmpegKit 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 FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include "ArchDetect.h"
21
22 extern void* ffmpegKitInitialize();
23
24 const void* _archDetectInitializer{ffmpegKitInitialize()};
25
26std::string ffmpegkit::ArchDetect::getArch() {
27#ifdef FFMPEG_KIT_ARM64
28 return "arm64";
29#elif FFMPEG_KIT_I386
30 return "i386";
31#elif FFMPEG_KIT_X86_64
32 return "x86_64";
33#else
34 return "";
35#endif
36}
_archDetectInitializer
const void * _archDetectInitializer
Definition ArchDetect.cpp:24
ffmpegKitInitialize
void * ffmpegKitInitialize()
Definition FFmpegKitConfig.cpp:771
ArchDetect.h
ffmpegkit::ArchDetect::getArch
static std::string getArch()
Definition ArchDetect.cpp:26