Lines Matching refs:dash

44   SmoothTree* dash(reinterpret_cast<SmoothTree*>(data));  in start()  local
46 if (dash->currentNode_ & SmoothTree::SSMNODE_SSM) in start()
48 if (dash->currentNode_ & SmoothTree::SSMNODE_PROTECTION) in start()
59 dash->strXMLText_.clear(); in start()
60 dash->currentNode_ |= in start()
69 else if (dash->currentNode_ & SmoothTree::SSMNODE_STREAMINDEX) in start()
76 dash->current_representation_ = new SmoothTree::Representation(); in start()
77 dash->current_representation_->url_ = dash->current_adaptationset_->base_url_; in start()
78 dash->current_representation_->timescale_ = dash->current_adaptationset_->timescale_; in start()
79 dash->current_representation_->flags_ |= AdaptiveTree::Representation::TEMPLATE; in start()
80 dash->current_representation_->segtpl_.media = dash->current_representation_->url_; in start()
83 dash->current_representation_->segtpl_.media.find("{start time}")); in start()
85 dash->current_representation_->segtpl_.media.replace(pos, 12, "$Time$"); in start()
89 pos = dash->current_representation_->segtpl_.media.find("{bitrate}"); in start()
102 dash->current_representation_->codecs_ = (const char*)*(attr + 1); in start()
103 std::transform(dash->current_representation_->codecs_.begin(), in start()
104 dash->current_representation_->codecs_.end(), in start()
105 dash->current_representation_->codecs_.begin(), ::tolower); in start()
108 dash->current_representation_->width_ = in start()
111 dash->current_representation_->height_ = in start()
114 dash->current_representation_->samplingRate_ = in start()
117 dash->current_representation_->channelCount_ = in start()
120 dash->current_representation_->id = (const char*)*(attr + 1); in start()
124 dash->current_representation_->nalLengthSize_ = in start()
131 if (dash->current_representation_->codecs_.compare(0, 3, "hev") == 0) in start()
132 dash->current_representation_->codec_private_data_ = annexb_to_hvcc(codecPrivateData); in start()
134 dash->current_representation_->codec_private_data_ = annexb_to_avc(codecPrivateData); in start()
137 if (dash->current_representation_->codecs_ == "aacl" && in start()
138 dash->current_representation_->codec_private_data_.empty()) in start()
141 switch (dash->current_representation_->samplingRate_) in start()
165 dash->current_representation_->codec_private_data_.resize(2); in start()
166 dash->current_representation_->codec_private_data_[0] = esds >> 8; in start()
167 dash->current_representation_->codec_private_data_[1] = esds & 0xFF; in start()
170 dash->current_representation_->segtpl_.media.replace(pos, 9, bw); in start()
171 dash->current_representation_->bandwidth_ = atoi(bw); in start()
172 dash->current_adaptationset_->representations_.push_back(dash->current_representation_); in start()
185 if (!dash->current_adaptationset_->segment_durations_.data.empty()) in start()
188 dash->pts_helper_ -= dash->current_adaptationset_->segment_durations_.data.back(); in start()
189 dash->current_adaptationset_->segment_durations_.data.back() = in start()
190 static_cast<uint32_t>(lt - dash->pts_helper_); in start()
193 dash->current_adaptationset_->startPTS_ = lt; in start()
194 dash->pts_helper_ = lt; in start()
208 dash->current_adaptationset_->segment_durations_.data.push_back(push_duration); in start()
209 dash->pts_helper_ += push_duration; in start()
217 dash->current_adaptationset_ = new SmoothTree::AdaptationSet(); in start()
218 dash->current_period_->adaptationSets_.push_back(dash->current_adaptationset_); in start()
223 dash->current_adaptationset_->type_ = in start()
231 dash->current_adaptationset_->language_ = (const char*)*(attr + 1); in start()
233 dash->current_adaptationset_->timescale_ = atoi((const char*)*(attr + 1)); in start()
235 dash->current_adaptationset_->segment_durations_.data.reserve( in start()
238 dash->current_adaptationset_->base_url_ = dash->base_url_ + (const char*)*(attr + 1); in start()
241 dash->segcount_ = 0; in start()
242 if (!dash->current_adaptationset_->timescale_) in start()
243 dash->current_adaptationset_->timescale_ = in start()
247 dash->currentNode_ |= SmoothTree::SSMNODE_STREAMINDEX; in start()
251 dash->currentNode_ |= SmoothTree::SSMNODE_PROTECTION; in start()
252 dash->current_period_->encryptionState_ = SmoothTree::ENCRYTIONSTATE_SUPPORTED; in start()
253 dash->current_period_->need_secure_decoder_ = true; in start()
259 dash->overallSeconds_ = 0; in start()
268 dash->has_timeshift_buffer_ = strcmp((const char*)*(attr + 1), "TRUE") == 0; in start()
269 if (dash->has_timeshift_buffer_) in start()
271 dash->stream_start_ = time(0); in start()
272 dash->available_time_ = dash->stream_start_; in start()
280 dash->overallSeconds_ = duration / timeScale; in start()
281 dash->currentNode_ |= SmoothTree::SSMNODE_SSM; in start()
282 dash->minPresentationOffset = ~0ULL; in start()
283 dash->base_time_ = ~0ULL; in start()
292 SmoothTree* dash(reinterpret_cast<SmoothTree*>(data)); in text() local
294 if (dash->currentNode_ & SmoothTree::SSMNODE_PROTECTIONTEXT) in text()
295 dash->strXMLText_ += std::string(s, len); in text()
303 SmoothTree* dash(reinterpret_cast<SmoothTree*>(data)); in end() local
305 if (dash->currentNode_ & SmoothTree::SSMNODE_SSM) in end()
307 if (dash->currentNode_ & SmoothTree::SSMNODE_PROTECTION) in end()
309 if (dash->currentNode_ & SmoothTree::SSMNODE_PROTECTIONHEADER) in end()
312 dash->currentNode_ &= ~SmoothTree::SSMNODE_PROTECTIONHEADER; in end()
316 dash->currentNode_ &= in end()
318 PRProtectionParser parser(dash->strXMLText_); in end()
319 dash->current_defaultKID_ = parser.getKID(); in end()
320 dash->license_url_ = parser.getLicenseURL(); in end()
321 dash->current_pssh_ = parser.getPSSH(); in end()
322 dash->strXMLText_.clear(); in end()
325 else if (dash->currentNode_ & SmoothTree::SSMNODE_STREAMINDEX) in end()
329 if (dash->current_adaptationset_->representations_.empty() || in end()
330 dash->current_adaptationset_->segment_durations_.data.empty()) in end()
331 dash->current_period_->adaptationSets_.pop_back(); in end()
334 if (dash->current_adaptationset_->startPTS_ < dash->base_time_) in end()
335 dash->base_time_ = dash->current_adaptationset_->startPTS_; in end()
337 dash->currentNode_ &= ~SmoothTree::SSMNODE_STREAMINDEX; in end()
341 dash->currentNode_ &= ~SmoothTree::SSMNODE_SSM; in end()