#ifndef TGCALLS_CODEC_SELECT_HELPER_H #define TGCALLS_CODEC_SELECT_HELPER_H #include "Message.h" #include "media/base/codec.h" namespace tgcalls { class PlatformContext; struct CommonFormats { std::vector list; int myEncoderIndex = -1; }; struct CommonCodecs { std::vector list; int myEncoderIndex = -1; }; VideoFormatsMessage ComposeSupportedFormats( std::vector encoders, std::vector decoders, const std::vector &preferredCodecs, std::shared_ptr platformContext); CommonFormats ComputeCommonFormats( const VideoFormatsMessage &my, VideoFormatsMessage theirs); CommonCodecs AssignPayloadTypesAndDefaultCodecs(CommonFormats &&formats); } // namespace tgcalls #endif