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