Lines Matching refs:fragmentation
148 std::unique_ptr<RTPFragmentationHeader> fragmentation = in Encode() local
151 if (callback->OnEncodedImage(encoded, &codec_specific, fragmentation.get()) in Encode()
307 auto fragmentation = std::make_unique<RTPFragmentationHeader>(); in EncodeHook() local
312 fragmentation->VerifyAndAllocateFragmentationHeader(kNumSlices); in EncodeHook()
313 fragmentation->fragmentationOffset[0] = kStartCode.size(); in EncodeHook()
314 fragmentation->fragmentationLength[0] = kSpsSize; in EncodeHook()
315 fragmentation->fragmentationOffset[1] = 2 * kStartCode.size() + kSpsSize; in EncodeHook()
316 fragmentation->fragmentationLength[1] = kPpsSize; in EncodeHook()
317 fragmentation->fragmentationOffset[2] = in EncodeHook()
319 fragmentation->fragmentationLength[2] = in EncodeHook()
325 encoded_image->data()[fragmentation->Offset(0)] = kSpsNalHeader; in EncodeHook()
326 memcpy(encoded_image->data() + fragmentation->Offset(1) - kStartCode.size(), in EncodeHook()
328 encoded_image->data()[fragmentation->Offset(1)] = kPpsNalHeader; in EncodeHook()
329 memcpy(encoded_image->data() + fragmentation->Offset(2) - kStartCode.size(), in EncodeHook()
331 encoded_image->data()[fragmentation->Offset(2)] = kIdrNalHeader; in EncodeHook()
334 fragmentation->VerifyAndAllocateFragmentationHeader(kNumSlices); in EncodeHook()
335 fragmentation->fragmentationOffset[0] = kStartCode.size(); in EncodeHook()
336 fragmentation->fragmentationLength[0] = in EncodeHook()
340 encoded_image->data()[fragmentation->fragmentationOffset[0]] = kNalHeader; in EncodeHook()
347 return fragmentation; in EncodeHook()