Searched refs:kStartCode (Results 1 – 3 of 3) sorted by relevance
/external/webrtc/test/ |
D | fake_encoder.cc | 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() [all …]
|
D | fake_decoder.cc | 111 uint8_t kStartCode[] = {0, 0, 0, 1}; in Decode() local 112 if (i < input.size() - sizeof(kStartCode) && in Decode() 113 !memcmp(&input.data()[i], kStartCode, sizeof(kStartCode))) { in Decode() 114 i += sizeof(kStartCode) + 1; // Skip start code and NAL header. in Decode()
|
/external/v4l2_codec2/common/ |
D | EncodeHelpers.cpp | 90 constexpr uint8_t kStartCode[] = {0x00, 0x00, 0x00, 0x01}; in extractCSDInfo() local 112 std::memcpy(tmpOutput, kStartCode, kStartCodeLength); in extractCSDInfo()
|