Lines Matching refs:kStartCode
293 static constexpr std::array<uint8_t, 3> kStartCode = {0, 0, 1}; in EncodeHook() local
310 encoded_image->size() > kSpsSize + kPpsSize + 1 + 3 * kStartCode.size()) { in EncodeHook()
313 fragmentation->fragmentationOffset[0] = kStartCode.size(); in EncodeHook()
315 fragmentation->fragmentationOffset[1] = 2 * kStartCode.size() + kSpsSize; in EncodeHook()
318 3 * kStartCode.size() + kSpsSize + kPpsSize; in EncodeHook()
320 encoded_image->size() - (3 * kStartCode.size() + kSpsSize + kPpsSize); in EncodeHook()
324 memcpy(encoded_image->data(), kStartCode.data(), kStartCode.size()); in EncodeHook()
326 memcpy(encoded_image->data() + fragmentation->Offset(1) - kStartCode.size(), in EncodeHook()
327 kStartCode.data(), kStartCode.size()); in EncodeHook()
329 memcpy(encoded_image->data() + fragmentation->Offset(2) - kStartCode.size(), in EncodeHook()
330 kStartCode.data(), kStartCode.size()); in EncodeHook()
335 fragmentation->fragmentationOffset[0] = kStartCode.size(); in EncodeHook()
337 encoded_image->size() - kStartCode.size(); in EncodeHook()
338 memcpy(encoded_image->data(), kStartCode.data(), kStartCode.size()); in EncodeHook()