SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
video_codec.hpp
1#ifndef SKYWAY_MEDIA_CODEC_VIDEO_CODEC_HPP_
2#define SKYWAY_MEDIA_CODEC_VIDEO_CODEC_HPP_
3
4#include <map>
5#include <string>
6
7#include <api/video/video_codec_type.h>
8#include <api/video_codecs/sdp_video_format.h>
9
10namespace skyway {
11namespace media {
12namespace codec {
13
22struct VideoCodec {
23 virtual ~VideoCodec() = default;
25 virtual std::string Name() const = 0;
27 virtual std::map<std::string, std::string> Parameters() const = 0;
29 virtual webrtc::VideoCodecType CodecType() const = 0;
30
31 webrtc::SdpVideoFormat ToSdpVideoFormat() const {
32 return webrtc::SdpVideoFormat(this->Name(), this->Parameters());
33 }
35};
36
37} // namespace codec
38} // namespace media
39} // namespace skyway
40
41#endif /* SKYWAY_MEDIA_CODEC_VIDEO_CODEC_HPP_ */
映像コーデック
Definition video_codec.hpp:22
virtual std::map< std::string, std::string > Parameters() const =0
コーデックのパラメータ
virtual std::string Name() const =0
コーデック名