Lines Matching defs:end_pos
272 std::string GetBytesForFirstFragment(size_t start_pos, size_t* end_pos);
275 std::string GetBytesForNextFragment(size_t start_pos, size_t* end_pos);
277 void GetBytesForNextNALU(size_t start_pos, size_t* end_pos); // For h.264.
279 size_t start_pos, size_t* end_pos); // For VP8.
656 size_t start_pos, size_t* end_pos) {
658 *end_pos = start_pos;
659 while (*end_pos + 4 < encoded_data_.size()) {
660 if ((encoded_data_[*end_pos + 4] & 0x1f) == 0x7) // SPS start frame
661 return GetBytesForNextFragment(*end_pos, end_pos);
662 GetBytesForNextNALU(*end_pos, end_pos);
665 *end_pos = start_pos;
669 return GetBytesForNextFragment(start_pos, end_pos);
673 size_t start_pos, size_t* end_pos) {
675 *end_pos = start_pos;
676 GetBytesForNextNALU(*end_pos, end_pos);
677 if (start_pos != *end_pos) {
680 return encoded_data_.substr(start_pos, *end_pos - start_pos);
683 return GetBytesForNextFrame(start_pos, end_pos);
687 size_t start_pos, size_t* end_pos) {
688 *end_pos = start_pos;
689 if (*end_pos + 4 > encoded_data_.size())
692 *end_pos += 4;
693 while (*end_pos + 4 <= encoded_data_.size() &&
694 !LookingAtNAL(encoded_data_, *end_pos)) {
695 ++*end_pos;
697 if (*end_pos + 3 >= encoded_data_.size())
698 *end_pos = encoded_data_.size();
702 size_t start_pos, size_t* end_pos) {
707 *end_pos = start_pos;
708 uint32 frame_size = *reinterpret_cast<uint32*>(&encoded_data_[*end_pos]);
709 *end_pos += 12; // Skip frame header.
710 bytes.append(encoded_data_.substr(*end_pos, frame_size));
711 *end_pos += frame_size;
749 size_t end_pos;
752 next_fragment_bytes = GetBytesForFirstFragment(0, &end_pos);
755 GetBytesForNextFragment(encoded_data_next_pos_to_decode_, &end_pos);
797 encoded_data_next_pos_to_decode_ = end_pos;