This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find_program(CL cl REQUIRED) | |
find_program(AR lib REQUIRED) | |
find_program(MT mt REQUIRED) | |
find_program(RC rc REQUIRED) | |
set(LIB $ENV{LIB}) | |
string(REPLACE "\\" "\\\\" LIB "${LIB}") | |
set(INCLUDE $ENV{INCLUDE}) | |
string(REPLACE "\\" "\\\\" INCLUDE "${INCLUDE}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
// FFmpeg | |
extern "C" { | |
#include <libavcodec/avcodec.h> | |
#include <libavformat/avformat.h> | |
#include <libavutil/avutil.h> | |
#include <libavutil/pixdesc.h> | |
#include <libavutil/imgutils.h> | |
#include <libswscale/swscale.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string_view> | |
#include <stdexcept> | |
namespace detail { | |
template<typename T> | |
constexpr const char* type_name() { | |
#if defined(__GNUC__) || defined(__clang__) | |
return __PRETTY_FUNCTION__; | |
#elif defined(_MSC_VER) | |
return __FUNCSIG__; |