| #include "media/base/codec.h" |
| 6 |
| 7 | namespace tgcalls { |
| 8 |
| 9 | class PlatformContext; |
| 10 |
| 11 | struct CommonFormats { |
| 12 | std::vector<webrtc::SdpVideoFormat> list; |
| 13 | int myEncoderIndex = -1; |
| 14 | }; |
| 15 |
| 16 | struct CommonCodecs { |
| 17 | std::vector<cricket::VideoCodec> list; |
| 18 | int myEncoderIndex = -1; |
| 19 | }; |
| 20 |
| 21 | VideoFormatsMessage ComposeSupportedFormats( |
| 22 | std::vector<webrtc::SdpVideoFormat> encoders, |
| 23 | std::vector<webrtc::SdpVideoFormat> decoders, |
| 24 | const std::vector<std::string> &preferredCodecs, |
| 25 | std::shared_ptr<PlatformContext> platformContext); |
| 26 |
| 27 | CommonFormats ComputeCommonFormats( |
| 28 | const VideoFormatsMessage &my, |
| 29 | VideoFormatsMessage theirs); |
| 30 |
| 31 | CommonCodecs AssignPayloadTypesAndDefaultCodecs(CommonFormats &&formats); |
| 32 |
| 33 | } // namespace tgcalls |
| 34 |
| 35 | #endif |
| 36 |