27 #ifndef SRC_PLAYER_ES_DASH_PLAYER_DEMUXER_STREAM_DEMUXER_H_ 28 #define SRC_PLAYER_ES_DASH_PLAYER_DEMUXER_STREAM_DEMUXER_H_ 34 #include "ppapi/c/pp_stdint.h" 35 #include "ppapi/cpp/instance.h" 36 #include "nacl_player/common.h" 37 #include "nacl_player/media_common.h" 38 #include "nacl_player/media_codecs.h" 114 Samsung::NaClPlayer::Size
size;
149 enum Type { kUnknown = -1, kAudio = 0, kVideo = 1 };
173 static std::unique_ptr<StreamDemuxer> Create(
174 const pp::InstanceHandle& instance,
Type type);
195 void(
Message, std::unique_ptr<ElementaryStreamPacket>)>& callback,
196 pp::MessageLoop callback_dispatcher) = 0;
201 virtual void Flush() = 0;
211 virtual void Parse(
const std::vector<uint8_t>& data) = 0;
221 virtual bool SetAudioConfigListener(
222 const std::function<
void(
const AudioConfig&)>& callback) = 0;
233 virtual bool SetVideoConfigListener(
234 const std::function<
void(
const VideoConfig&)>& callback) = 0;
243 virtual bool SetDRMInitDataListener(
const std::function<
244 void(
const std::string& type,
const std::vector<uint8_t>& init_data)>&
249 virtual void SetTimestamp(Samsung::NaClPlayer::TimeTicks) = 0;
253 virtual void Close() = 0;
256 #endif // NATIVE_PLAYER_SRC_DEMUXER_STREAM_DEMUXER_H_ This file defines the ElementaryStreamPacket.
Structure describing Elementary Audio Stream configuration.
virtual ~StreamDemuxer()
Destroys StreamDemuxer object.
const Samsung::NaClPlayer::TimeTicks kEndOfStream
An interface for demuxing modules. This interface provides methods used to parse data of media contai...
Samsung::NaClPlayer::AudioCodec_Profile codec_profile
Samsung::NaClPlayer::VideoCodec_Profile codec_profile
Samsung::NaClPlayer::VideoCodec_Type codec_type
Samsung::NaClPlayer::VideoFrame_Format frame_format
Samsung::NaClPlayer::Size size
Samsung::NaClPlayer::AudioCodec_Type codec_type
Samsung::NaClPlayer::Rational frame_rate
Structure describing Elementary Video Stream configuration.
std::vector< uint8_t > extra_data
bool operator==(const AudioConfig &config) const
Samsung::NaClPlayer::SampleFormat sample_format
bool operator==(const VideoConfig &config) const
int32_t samples_per_second
Describes audio samples per second in [Hz] like 44100, 22050, etc.
Samsung::NaClPlayer::ChannelLayout channel_layout
StreamDemuxer()
Constructs an empty StreamDemuxer.
std::vector< uint8_t > extra_data