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