#ifndef CAEDF84E_DEDF_40BF_A293_86ED2D0A044A #define CAEDF84E_DEDF_40BF_A293_86ED2D0A044A /* ******************************************************************************* * INCLUDE ******************************************************************************* */ #include "../core/CodecID.h" #include "../core/ChannelLayout.h" #include "../core/SampleFormat.h" extern "C" { #include #include #include #include #include } #include namespace Video { namespace FFmpeg { /* ******************************************************************************* * CLASS DECLARE ******************************************************************************* */ class Util { public: static std::string getMediaTypeString(enum AVMediaType mediaType); static std::string getErrorString(int err); static std::string getCodecIDString(AVCodecID id); static std::string getSampleFormatString(AVSampleFormat fmt); static const AVCodec* getEncoder(Core::CodecID codec); static const AVCodec* getDecoder(Core::CodecID codec); static const Core::CodecID getCodecID(AVCodecID id); static AVChannelLayout getChannelLayout(Core::ChannelLayout layout); static Core::ChannelLayout getChannelLayout(AVChannelLayout layout); static AVSampleFormat getSampleFormat(Core::SampleFormat format); static Core::SampleFormat getSampleFormat(AVSampleFormat format); static int convertJPG2NV16(std::string srcPath, std::string dstPath); }; } } #endif