Lines Matching defs:buffers_
92 // Finds the next keyframe from |buffers_| after |timestamp| (or at
172 // GetStartTimestamp() and the timestamp on the first buffer in |buffers_|,
199 // sequence after |buffers_.back()|, false otherwise.
217 // Returns an iterator in |buffers_| pointing to the buffer at |timestamp|.
233 // Helper method to delete buffers in |buffers_| starting at
234 // |starting_point|, an iterator in |buffers_|.
240 // Frees the buffers in |buffers_| from [|start_point|,|ending_point|) and
256 BufferQueue buffers_;
258 // Maps keyframe timestamps to its index position in |buffers_|.
266 // Index into |buffers_| for the next buffer to be returned by
273 // |buffers_|. |media_segment_start_time_| is kNoTimestamp() if this range
283 // Stores the amount of memory taken up by the data in |buffers_|.
1719 DCHECK(buffers_.empty() || CanAppendBuffersToEnd(new_buffers));
1727 buffers_.push_back(*itr);
1733 buffers_.size() - 1 + keyframe_map_index_base_));
1744 DCHECK_LT(next_buffer_index_, static_cast<int>(buffers_.size()));
1769 DCHECK_LT(next_buffer_index_, static_cast<int>(buffers_.size()));
1773 DCHECK(!buffers_.empty());
1779 CHECK(!buffers_.empty());
1790 // Remove the data beginning at |keyframe_index| from |buffers_| and save it
1794 DCHECK_LT(keyframe_index, static_cast<int>(buffers_.size()));
1795 BufferQueue::iterator starting_point = buffers_.begin() + keyframe_index;
1796 BufferQueue removed_buffers(starting_point, buffers_.end());
1799 if (GetStartTimestamp() < buffers_.front()->GetDecodeTimestamp() &&
1809 FreeBufferRange(starting_point, buffers_.end());
1819 if (next_buffer_index_ >= static_cast<int>(buffers_.size())) {
1831 ? std::upper_bound(buffers_.begin(),
1832 buffers_.end(),
1835 : std::lower_bound(buffers_.begin(),
1836 buffers_.end(),
1863 TruncateAt(buffers_.begin(), removed_buffers);
1869 // Find the place in |buffers_| where we will begin deleting data.
1892 buffers_.size();
1897 int bytes_deleted = buffers_.front()->data_size();
1900 deleted_buffers->push_back(buffers_.front());
1901 buffers_.pop_front();
1931 // |buffers_| after that GOP is deleted.
1936 while (buffers_.size() != goal_size) {
1937 int bytes_deleted = buffers_.back()->data_size();
1943 deleted_buffers->push_front(buffers_.back());
1944 buffers_.pop_back();
1960 BufferQueue::iterator buffer_itr = buffers_.begin() + keyframe_index;
1976 buffers_.size() : gop_itr->second - keyframe_map_index_base_;
1977 BufferQueue::iterator next_gop_start = buffers_.begin() + next_gop_index;
2025 buffers_.erase(starting_point, ending_point);
2033 if (starting_point == buffers_.end())
2034 return buffers_.empty();
2043 int starting_offset = starting_point - buffers_.begin();
2046 BufferQueue saved(starting_point + next_buffer_offset, buffers_.end());
2059 FreeBufferRange(starting_point, buffers_.end());
2060 return buffers_.empty();
2068 *out_buffer = buffers_[next_buffer_index_];
2075 next_buffer_index_ < static_cast<int>(buffers_.size());
2082 return GetConfigId(buffers_[next_buffer_index_], 0);
2086 DCHECK(!buffers_.empty());
2089 if (next_buffer_index_ >= static_cast<int>(buffers_.size())) {
2093 return buffers_[next_buffer_index_]->GetDecodeTimestamp();
2107 DCHECK(!buffers_.empty());
2110 next_buffer_index_ = range.next_buffer_index_ + buffers_.size();
2112 AppendBuffersToEnd(range.buffers_);
2117 return CanAppendBuffersToEnd(range.buffers_);
2122 DCHECK(!buffers_.empty());
2128 DCHECK(!buffers_.empty());
2153 DCHECK(!buffers_.empty());
2156 start_timestamp = buffers_.front()->GetDecodeTimestamp();
2161 DCHECK(!buffers_.empty());
2162 return buffers_.back()->GetDecodeTimestamp();
2166 DCHECK(!buffers_.empty());
2167 base::TimeDelta duration = buffers_.back()->duration();
2208 base::TimeDelta end = buffers_.back()->GetDecodeTimestamp();
2216 buffers_.back()->IsKeyframe(), is_keyframe, type_);
2240 it != buffers_.end();