SkyWay Linux SDK
読み取り中…
検索中…
一致する文字列を見つけられません
h264.hpp
1#ifndef SKYWAY_MEDIA_CODEC_H264_HPP_
2#define SKYWAY_MEDIA_CODEC_H264_HPP_
3
4#include "skyway/media/codec/video_codec.hpp"
5
6namespace skyway {
7namespace media {
8namespace codec {
9
10inline constexpr std::string_view kDefaultH264ProfileLevelId = "42e01f";
19struct H264 : public VideoCodec {
24 H264() : H264(std::string(kDefaultH264ProfileLevelId)) {}
29 H264(const std::string& profile_level_id) {
30 // clang-format off
31 parameters = {
32 { "packetization-mode", "1" },
33 { "level-asymmetry-allowed", "1" },
34 { "profile-level-id", profile_level_id }
35 };
36 // clang-format on
37 }
38 std::string Name() const override { return "H264"; }
39 std::map<std::string, std::string> Parameters() const override { return parameters; }
41 webrtc::VideoCodecType CodecType() const override { return webrtc::kVideoCodecH264; }
43private:
44 std::map<std::string, std::string> parameters;
45};
46
47} // namespace codec
48} // namespace media
49} // namespace skyway
50
51#endif /* SKYWAY_MEDIA_CODEC_H264_HPP_ */
H264コーデック
Definition h264.hpp:19
H264()
コンストラクタ
Definition h264.hpp:24
H264(const std::string &profile_level_id)
コンストラクタ
Definition h264.hpp:29
std::map< std::string, std::string > Parameters() const override
コーデックのパラメータ
Definition h264.hpp:39
std::string Name() const override
コーデック名
Definition h264.hpp:38
映像コーデック
Definition video_codec.hpp:22