Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
35
TMessagesProj/jni/voip/tgcalls/CodecSelectHelper.h
Normal file
35
TMessagesProj/jni/voip/tgcalls/CodecSelectHelper.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#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<webrtc::SdpVideoFormat> list;
|
||||
int myEncoderIndex = -1;
|
||||
};
|
||||
|
||||
struct CommonCodecs {
|
||||
std::vector<cricket::VideoCodec> list;
|
||||
int myEncoderIndex = -1;
|
||||
};
|
||||
|
||||
VideoFormatsMessage ComposeSupportedFormats(
|
||||
std::vector<webrtc::SdpVideoFormat> encoders,
|
||||
std::vector<webrtc::SdpVideoFormat> decoders,
|
||||
const std::vector<std::string> &preferredCodecs,
|
||||
std::shared_ptr<PlatformContext> platformContext);
|
||||
|
||||
CommonFormats ComputeCommonFormats(
|
||||
const VideoFormatsMessage &my,
|
||||
VideoFormatsMessage theirs);
|
||||
|
||||
CommonCodecs AssignPayloadTypesAndDefaultCodecs(CommonFormats &&formats);
|
||||
|
||||
} // namespace tgcalls
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue