Shaka Player Embedded
Classes | Public Member Functions | Public Attributes | List of all members
shaka::media::StreamInfo Class Reference

#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
 
StreamInfooperator= (const StreamInfo &)=delete
 
 StreamInfo (StreamInfo &&)=delete
 
StreamInfooperator= (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
 

Detailed Description

Defines information about a stream; this is used to initialize decoders.

Definition at line 33 of file stream_info.h.

Constructor & Destructor Documentation

§ StreamInfo() [1/3]

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.

§ ~StreamInfo()

shaka::media::StreamInfo::~StreamInfo ( )
virtual

Definition at line 40 of file stream_info.cc.

§ StreamInfo() [2/3]

shaka::media::StreamInfo::StreamInfo ( const StreamInfo )
delete

§ StreamInfo() [3/3]

shaka::media::StreamInfo::StreamInfo ( StreamInfo &&  )
delete

Member Function Documentation

§ operator=() [1/2]

StreamInfo& shaka::media::StreamInfo::operator= ( const StreamInfo )
delete

§ operator=() [2/2]

StreamInfo& shaka::media::StreamInfo::operator= ( StreamInfo &&  )
delete

Member Data Documentation

§ channel_count

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.

§ codec

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.

§ extra_data

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.

§ height

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.

§ is_video

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.

§ mime_type

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.

§ sample_aspect_ratio

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.

§ sample_rate

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.

§ time_scale

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.

§ width

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.


The documentation for this class was generated from the following files: