Home
last modified time | relevance | path

Searched refs:encrypted_frame (Results 1 – 12 of 12) sorted by relevance

/external/webrtc/api/test/
Dfake_frame_encryptor.cc24 rtc::ArrayView<uint8_t> encrypted_frame, in Encrypt() argument
30 RTC_CHECK_EQ(frame.size() + 1, encrypted_frame.size()); in Encrypt()
32 encrypted_frame[i] = frame[i] ^ fake_key_; in Encrypt()
35 encrypted_frame[frame.size()] = postfix_byte_; in Encrypt()
36 *bytes_written = encrypted_frame.size(); in Encrypt()
Dfake_frame_decryptor.cc27 rtc::ArrayView<const uint8_t> encrypted_frame, in Decrypt() argument
33 RTC_CHECK_EQ(frame.size() + 1, encrypted_frame.size()); in Decrypt()
35 frame[i] = encrypted_frame[i] ^ fake_key_; in Decrypt()
38 if (encrypted_frame[frame.size()] != expected_postfix_byte_) { in Decrypt()
Dfake_frame_encryptor.h40 rtc::ArrayView<uint8_t> encrypted_frame,
Dfake_frame_decryptor.h40 rtc::ArrayView<const uint8_t> encrypted_frame,
/external/openscreen/cast/streaming/
Dframe_crypto.cc71 void FrameCrypto::Decrypt(const EncryptedFrame& encrypted_frame, in Decrypt() argument
73 encrypted_frame.CopyMetadataTo(encoded_frame); in Decrypt()
76 if (encrypted_frame.data.size() < encoded_frame->data.size()) { in Decrypt()
78 encrypted_frame.data.size()); in Decrypt()
80 EncryptCommon(encrypted_frame.frame_id, encrypted_frame.data, in Decrypt()
Dframe_crypto.h63 void Decrypt(const EncryptedFrame& encrypted_frame,
71 static int GetPlaintextSize(const EncryptedFrame& encrypted_frame) { in GetPlaintextSize() argument
72 return encrypted_frame.data.size(); in GetPlaintextSize()
Dreceiver.cc105 const EncryptedFrame& encrypted_frame = in AdvanceToNextFrame() local
108 return FrameCrypto::GetPlaintextSize(encrypted_frame); in AdvanceToNextFrame()
110 if (encrypted_frame.dependency != EncodedFrame::DEPENDS_ON_ANOTHER) { in AdvanceToNextFrame()
114 return FrameCrypto::GetPlaintextSize(encrypted_frame); in AdvanceToNextFrame()
268 const EncryptedFrame& encrypted_frame = collector.PeekAtAssembledFrame(); in OnReceivedRtpPacket() local
272 if (encrypted_frame.dependency == EncryptedFrame::KEY_FRAME) { in OnReceivedRtpPacket()
/external/webrtc/video/
Dbuffered_frame_decryptor.cc40 std::unique_ptr<RtpFrameObject> encrypted_frame) { in ManageEncryptedFrame() argument
41 switch (DecryptFrame(encrypted_frame.get())) { in ManageEncryptedFrame()
47 stashed_frames_.push_back(std::move(encrypted_frame)); in ManageEncryptedFrame()
51 decrypted_frame_callback_->OnDecryptedFrame(std::move(encrypted_frame)); in ManageEncryptedFrame()
Dbuffered_frame_decryptor.h77 void ManageEncryptedFrame(std::unique_ptr<RtpFrameObject> encrypted_frame);
/external/webrtc/api/crypto/
Dframe_encryptor_interface.h42 rtc::ArrayView<uint8_t> encrypted_frame,
Dframe_decryptor_interface.h64 rtc::ArrayView<const uint8_t> encrypted_frame,
/external/libwebm/
Dwebm_info.cc970 const bool encrypted_frame = !!(data[0] & KEncryptedBit); in OutputCluster() local
972 fprintf(o, " enc: %d", encrypted_frame ? 1 : 0); in OutputCluster()
975 if (encrypted_frame) { in OutputCluster()
1007 bool encrypted_frame = false; in OutputCluster() local
1014 encrypted_frame = true; in OutputCluster()
1027 if (!encrypted_frame || sub_sample_encrypt) { in OutputCluster()