Searched refs:nalu_ptr (Results 1 – 4 of 4) sorted by relevance
131 const uint8_t* nalu_ptr = bitstream.data() + 1; in CopyAndFixBitstream() local132 while (nalu_ptr < bitstream.data() + bitstream.size() - 1) { in CopyAndFixBitstream()137 uint16_t segment_length = nalu_ptr[0] << 8 | nalu_ptr[1]; in CopyAndFixBitstream()138 nalu_ptr += 2; in CopyAndFixBitstream()141 nalu_ptr += segment_length; in CopyAndFixBitstream()183 const uint8_t* nalu_ptr = bitstream.data() + 1; in CopyAndFixBitstream() local184 while (nalu_ptr < bitstream.data() + bitstream.size() - 1) { in CopyAndFixBitstream()188 uint16_t segment_length = nalu_ptr[0] << 8 | nalu_ptr[1]; in CopyAndFixBitstream()189 nalu_ptr += 2; in CopyAndFixBitstream()191 size_t copy_end = nalu_ptr - bitstream.data() + segment_length; in CopyAndFixBitstream()[all …]
213 const uint8_t* nalu_ptr = packet_buffer + kH264NALHeaderLengthInBytes; in InsertBuffer() local214 while (nalu_ptr < packet_buffer + packet.sizeBytes) { in InsertBuffer()215 size_t length = BufferToUWord16(nalu_ptr); in InsertBuffer()218 nalu_ptr += kLengthFieldLength + length; in InsertBuffer()221 nalu_ptr = packet_buffer + kH264NALHeaderLengthInBytes; in InsertBuffer()223 while (nalu_ptr < packet_buffer + packet.sizeBytes) { in InsertBuffer()224 size_t length = BufferToUWord16(nalu_ptr); in InsertBuffer()225 nalu_ptr += kLengthFieldLength; in InsertBuffer()226 frame_buffer_ptr += Insert(nalu_ptr, length, packet.insertStartCode, in InsertBuffer()228 nalu_ptr += length; in InsertBuffer()
229 const uint8_t* nalu_ptr = buffer.data() + nalu_offsets[i]; in ParseOutgoingBitstreamAndRewriteSps() local235 (nalu_ptr - prev_nalu_ptr) - prev_nalu_length; in ParseOutgoingBitstreamAndRewriteSps()240 if (H264::ParseNaluType(nalu_ptr[0]) == H264::NaluType::kSps) { in ParseOutgoingBitstreamAndRewriteSps()257 output_nalu.AppendData(nalu_ptr[0]); in ParseOutgoingBitstreamAndRewriteSps()260 nalu_ptr + H264::kNaluTypeSize, nalu_length - H264::kNaluTypeSize, in ParseOutgoingBitstreamAndRewriteSps()273 output_buffer->AppendData(nalu_ptr, nalu_length); in ParseOutgoingBitstreamAndRewriteSps()276 prev_nalu_ptr = nalu_ptr; in ParseOutgoingBitstreamAndRewriteSps()
46 bool ParseStapAStartOffsets(const uint8_t* nalu_ptr, in ParseStapAStartOffsets() argument54 uint16_t nalu_size = ByteReader<uint16_t>::ReadBigEndian(nalu_ptr); in ParseStapAStartOffsets()55 nalu_ptr += sizeof(uint16_t); in ParseStapAStartOffsets()59 nalu_ptr += nalu_size; in ParseStapAStartOffsets()