Shaka Player Embedded
stream_info.cc
Go to the documentation of this file.
1 // Copyright 2019 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // https://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
16 
17 #include <unordered_map>
18 
19 namespace shaka {
20 namespace media {
21 
23 
24 StreamInfo::StreamInfo(const std::string& mime, const std::string& codec,
27  const std::vector<uint8_t>& extra_data, uint32_t width,
28  uint32_t height, uint32_t channel_count,
29  uint32_t sample_rate)
30  : mime_type(mime),
31  codec(codec),
32  time_scale(time_scale),
33  sample_aspect_ratio(sample_aspect_ratio),
34  extra_data(extra_data),
35  is_video(is_video),
36  width(width),
37  height(height),
38  channel_count(channel_count),
39  sample_rate(sample_rate) {}
41 
42 } // namespace media
43 } // namespace shaka
const uint32_t height
Definition: stream_info.h:82
const uint32_t sample_rate
Definition: stream_info.h:91
StreamInfo(const std::string &mime, const std::string &codec, bool is_video, Rational< uint32_t > time_scale, Rational< uint32_t > sample_aspect_ratio, const std::vector< uint8_t > &extra_data, uint32_t width, uint32_t height, uint32_t channel_count, uint32_t sample_rate)
Definition: stream_info.cc:24
const std::vector< uint8_t > extra_data
Definition: stream_info.h:73
const std::string mime_type
Definition: stream_info.h:49
const Rational< uint32_t > sample_aspect_ratio
Definition: stream_info.h:70
const std::string codec
Definition: stream_info.h:57
const uint32_t channel_count
Definition: stream_info.h:85
const Rational< uint32_t > time_scale
Definition: stream_info.h:64
const uint32_t width
Definition: stream_info.h:79