Shaka Player Embedded
|
#include <stream_info.h>
Classes | |
class | Impl |
Public Member Functions | |
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) | |
virtual | ~StreamInfo () |
StreamInfo (const StreamInfo &)=delete | |
StreamInfo & | operator= (const StreamInfo &)=delete |
StreamInfo (StreamInfo &&)=delete | |
StreamInfo & | operator= (StreamInfo &&)=delete |
Public Attributes | |
const std::string | mime_type |
const std::string | codec |
const Rational< uint32_t > | time_scale |
const Rational< uint32_t > | sample_aspect_ratio |
const std::vector< uint8_t > | extra_data |
const bool | is_video |
const uint32_t | width |
const uint32_t | height |
const uint32_t | channel_count |
const uint32_t | sample_rate |
Defines information about a stream; this is used to initialize decoders.
Definition at line 33 of file stream_info.h.
shaka::media::StreamInfo::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 at line 24 of file stream_info.cc.
|
virtual |
Definition at line 40 of file stream_info.cc.
|
delete |
|
delete |
|
delete |
|
delete |
const uint32_t shaka::media::StreamInfo::channel_count |
If this is an audio frame, this is the number of channels.
Definition at line 85 of file stream_info.h.
const std::string shaka::media::StreamInfo::codec |
The codec string this stream contains. This is the name of the codec as seen in mime_type. This is a single codec, even for originally multiplexed content. If the original MIME type doesn't have a codec, this returns an implementation-defined value for the codec.
Definition at line 57 of file stream_info.h.
const std::vector<uint8_t> shaka::media::StreamInfo::extra_data |
Extra data used to initialize the decoder.
Definition at line 73 of file stream_info.h.
const uint32_t shaka::media::StreamInfo::height |
If this is a video frame, this is the height, in pixels, of the frame.
Definition at line 82 of file stream_info.h.
const bool shaka::media::StreamInfo::is_video |
True if this represents a video stream; false for audio streams.
Definition at line 76 of file stream_info.h.
const std::string shaka::media::StreamInfo::mime_type |
The full MIME type of the input stream. If the input is multiplexed, this will contain multiple codecs.
Definition at line 49 of file stream_info.h.
const Rational<uint32_t> shaka::media::StreamInfo::sample_aspect_ratio |
For video frames, the sample aspect ratio. This is the aspect ratio of the pixels in the image. (0, 0) is treated as (1, 1).
Definition at line 70 of file stream_info.h.
const uint32_t shaka::media::StreamInfo::sample_rate |
If this is an audio frame, this is the sample rate, in samples per second (Hz).
Definition at line 91 of file stream_info.h.
const Rational<uint32_t> shaka::media::StreamInfo::time_scale |
The time-scale used in frame data. In the encoded frame data, times are in this timescale. This doesn't apply to the "double" fields on the frame object.
Definition at line 64 of file stream_info.h.
const uint32_t shaka::media::StreamInfo::width |
If this is a video frame, this is the width, in pixels, of the frame.
Definition at line 79 of file stream_info.h.