/external/openscreen/cast/streaming/ |
D | frame_crypto.cc | 62 EncryptedFrame FrameCrypto::Encrypt(const EncodedFrame& encoded_frame) const { in Encrypt() 64 encoded_frame.CopyMetadataTo(&result); in Encrypt() 65 result.owned_data_.resize(encoded_frame.data.size()); in Encrypt() 67 EncryptCommon(encoded_frame.frame_id, encoded_frame.data, result.data); in Encrypt() 72 EncodedFrame* encoded_frame) const { in Decrypt() 73 encrypted_frame.CopyMetadataTo(encoded_frame); in Decrypt() 76 if (encrypted_frame.data.size() < encoded_frame->data.size()) { in Decrypt() 77 encoded_frame->data = absl::Span<uint8_t>(encoded_frame->data.data(), in Decrypt() 81 encoded_frame->data); in Decrypt()
|
D | frame_crypto.h | 58 EncryptedFrame Encrypt(const EncodedFrame& encoded_frame) const; 64 EncodedFrame* encoded_frame) const; 68 static int GetEncryptedSize(const EncodedFrame& encoded_frame) { in GetEncryptedSize() argument 69 return encoded_frame.data.size(); in GetEncryptedSize()
|
D | BUILD.gn | 24 "encoded_frame.cc", 25 "encoded_frame.h",
|
/external/webrtc/modules/video_coding/codecs/vp8/test/ |
D | vp8_impl_unittest.cc | 84 EncodedImage* encoded_frame, in EncodeAndWaitForFrame() argument 95 ASSERT_TRUE(WaitForEncodedFrame(encoded_frame, codec_specific_info)); in EncodeAndWaitForFrame() 96 VerifyQpParser(*encoded_frame); in EncodeAndWaitForFrame() 98 EXPECT_EQ(0, encoded_frame->SpatialIndex()); in EncodeAndWaitForFrame() 104 EncodedImage encoded_frame; in EncodeAndExpectFrameWith() local 106 EncodeAndWaitForFrame(input_frame, &encoded_frame, &codec_specific_info, in EncodeAndExpectFrameWith() 111 void VerifyQpParser(const EncodedImage& encoded_frame) const { in VerifyQpParser() 113 EXPECT_GT(encoded_frame.size(), 0u); in VerifyQpParser() 114 ASSERT_TRUE(vp8::GetQp(encoded_frame.data(), encoded_frame.size(), &qp)); in VerifyQpParser() 115 EXPECT_EQ(encoded_frame.qp_, qp) << "Encoder QP != parsed bitstream QP."; in VerifyQpParser() [all …]
|
/external/webrtc/modules/video_coding/codecs/vp9/test/ |
D | vp9_impl_unittest.cc | 100 EncodedImage encoded_frame; in TEST_F() local 102 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_F() 104 encoded_frame._frameType = VideoFrameType::kVideoFrameKey; in TEST_F() 105 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Decode(encoded_frame, false, 0)); in TEST_F() 125 EncodedImage encoded_frame; in TEST_F() local 127 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_F() 130 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Decode(encoded_frame, false, 0)); in TEST_F() 143 EncodedImage encoded_frame; in TEST_F() local 145 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_F() 147 encoded_frame._frameType = VideoFrameType::kVideoFrameKey; in TEST_F() [all …]
|
/external/webrtc/modules/video_coding/codecs/h264/test/ |
D | h264_impl_unittest.cc | 60 EncodedImage encoded_frame; in TEST_F() local 62 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_F() 64 encoded_frame._frameType = VideoFrameType::kVideoFrameKey; in TEST_F() 65 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Decode(encoded_frame, false, 0)); in TEST_F() 85 EncodedImage encoded_frame; in TEST_F() local 87 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_F() 89 encoded_frame._frameType = VideoFrameType::kVideoFrameKey; in TEST_F() 90 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Decode(encoded_frame, false, 0)); in TEST_F() 96 EXPECT_EQ(encoded_frame.qp_, *decoded_qp); in TEST_F()
|
/external/webrtc/modules/video_coding/codecs/multiplex/test/ |
D | multiplex_adapter_unittest.cc | 217 EncodedImage encoded_frame; in TEST_P() local 219 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_P() 222 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Decode(encoded_frame, false, -1)); in TEST_P() 234 EncodedImage encoded_frame; in TEST_P() local 236 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_P() 239 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Decode(encoded_frame, false, 0)); in TEST_P() 258 EncodedImage encoded_frame; in TEST_P() local 260 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_P() 262 EXPECT_FALSE(encoded_frame.SpatialIndex()); in TEST_P() 265 MultiplexEncodedImagePacker::Unpack(encoded_frame); in TEST_P() [all …]
|
/external/webrtc/modules/video_coding/ |
D | generic_decoder_unittest.cc | 94 VCMEncodedFrame encoded_frame; in TEST_F() local 95 encoded_frame.SetPacketInfos(packet_infos); in TEST_F() 96 generic_decoder_.Decode(encoded_frame, clock_.CurrentTime()); in TEST_F() 108 VCMEncodedFrame encoded_frame; in TEST_F() local 109 encoded_frame.SetPacketInfos(packet_infos); in TEST_F() 110 generic_decoder_.Decode(encoded_frame, clock_.CurrentTime()); in TEST_F()
|
D | BUILD.gn | 12 rtc_library("encoded_frame") { 15 "encoded_frame.cc", 16 "encoded_frame.h", 174 ":encoded_frame", 186 "../../api/video:encoded_frame", 264 ":encoded_frame", 338 "../../api/video:encoded_frame", 957 ":encoded_frame",
|
/external/perfetto/src/ipc/ |
D | buffered_frame_deserializer_unittest.cc | 66 std::vector<char> encoded_frame; in GetSimpleFrame() local 67 encoded_frame.resize(size); in GetSimpleFrame() 68 char* enc_buf = encoded_frame.data(); in GetSimpleFrame() 73 PERFETTO_CHECK(encoded_frame.size() == size); in GetSimpleFrame() 74 return encoded_frame; in GetSimpleFrame() 78 const std::vector<char>& encoded_frame, in CheckedMemcpy() argument 80 ASSERT_GE(rbuf.size, encoded_frame.size() + offset); in CheckedMemcpy() 81 memcpy(rbuf.data + offset, encoded_frame.data(), encoded_frame.size()); in CheckedMemcpy()
|
/external/webp/src/mux/ |
D | anim_encode.c | 312 static void FrameRelease(EncodedFrame* const encoded_frame) { in FrameRelease() argument 313 if (encoded_frame != NULL) { in FrameRelease() 314 WebPDataClear(&encoded_frame->sub_frame_.bitstream); in FrameRelease() 315 WebPDataClear(&encoded_frame->key_frame_.bitstream); in FrameRelease() 316 memset(encoded_frame, 0, sizeof(*encoded_frame)); in FrameRelease() 1013 EncodedFrame* const encoded_frame) { in PickBestCandidate() argument 1031 ? &encoded_frame->key_frame_ in PickBestCandidate() 1032 : &encoded_frame->sub_frame_; in PickBestCandidate() 1061 EncodedFrame* const encoded_frame, in SetFrame() argument 1172 PickBestCandidate(enc, candidates, is_key_frame, encoded_frame); in SetFrame() [all …]
|
/external/webrtc/modules/video_coding/utility/ |
D | simulcast_test_fixture_impl.cc | 124 void GetLastEncodedFrame(EncodedImage* encoded_frame) { in GetLastEncodedFrame() argument 125 *encoded_frame = encoded_frame_; in GetLastEncodedFrame() 853 EncodedImage encoded_frame; in TestStrideEncodeDecode() local 855 encoder_callback.GetLastEncodedKeyFrame(&encoded_frame); in TestStrideEncodeDecode() 856 EXPECT_EQ(0, decoder_->Decode(encoded_frame, false, 0)); in TestStrideEncodeDecode() 857 encoder_callback.GetLastEncodedFrame(&encoded_frame); in TestStrideEncodeDecode() 858 decoder_->Decode(encoded_frame, false, 0); in TestStrideEncodeDecode() 866 EncodedImage encoded_frame[3]; in TestDecodeWidthHeightSet() local 881 encoded_frame[index].SetEncodedData( in TestDecodeWidthHeightSet() 883 encoded_frame[index].set_size(encoded_image.size()); in TestDecodeWidthHeightSet() [all …]
|
/external/webrtc/api/video/ |
D | BUILD.gn | 147 rtc_library("encoded_frame") { 150 "encoded_frame.cc", 151 "encoded_frame.h", 154 deps = [ "../../modules/video_coding:encoded_frame" ] 206 ":encoded_frame",
|
D | DEPS | 5 "encoded_frame.h": [ 6 "+modules/video_coding/encoded_frame.h",
|
/external/webrtc/modules/video_coding/codecs/test/ |
D | videocodec_test_libvpx.cc | 45 const EncodedImage& encoded_frame) const override { in CheckEncodedFrame() 48 EXPECT_TRUE(vp8::GetQp(encoded_frame.data(), encoded_frame.size(), &qp)); in CheckEncodedFrame() 50 EXPECT_TRUE(vp9::GetQp(encoded_frame.data(), encoded_frame.size(), &qp)); in CheckEncodedFrame() 54 EXPECT_EQ(encoded_frame.qp_, qp) << "Encoder QP != parsed bitstream QP."; in CheckEncodedFrame()
|
D | videocodec_test_fixture_impl.cc | 318 const EncodedImage& encoded_frame) const { in CheckEncodedFrame() 324 webrtc::H264::FindNaluIndices(encoded_frame.data(), encoded_frame.size()); in CheckEncodedFrame() 327 encoded_frame.data()[index.payload_start_offset]); in CheckEncodedFrame() 336 if (encoded_frame._frameType == VideoFrameType::kVideoFrameKey) { in CheckEncodedFrame() 340 } else if (encoded_frame._frameType == VideoFrameType::kVideoFrameDelta) { in CheckEncodedFrame()
|
D | videocodec_test_fixture_impl.h | 42 const EncodedImage& encoded_frame) const override;
|
D | videoprocessor.cc | 52 size_t GetMaxNaluSizeBytes(const EncodedImage& encoded_frame, in GetMaxNaluSizeBytes() argument 58 webrtc::H264::FindNaluIndices(encoded_frame.data(), encoded_frame.size()); in GetMaxNaluSizeBytes()
|
/external/libgav1/libgav1/src/ |
D | decoder_impl.cc | 904 EncodedFrame* const encoded_frame = &frame; in ParseAndSchedule() local 905 encoded_frame->temporal_unit = &temporal_units_.Back(); in ParseAndSchedule() 906 frame_thread_pool_->Schedule([this, encoded_frame]() { in ParseAndSchedule() 908 const StatusCode status = DecodeFrame(encoded_frame); in ParseAndSchedule() 909 encoded_frame->state = {}; in ParseAndSchedule() 910 encoded_frame->frame = nullptr; in ParseAndSchedule() 911 TemporalUnit& temporal_unit = *encoded_frame->temporal_unit; in ParseAndSchedule() 941 StatusCode DecoderImpl::DecodeFrame(EncodedFrame* const encoded_frame) { in DecodeFrame() argument 942 const ObuSequenceHeader& sequence_header = encoded_frame->sequence_header; in DecodeFrame() 943 const ObuFrameHeader& frame_header = encoded_frame->frame_header; in DecodeFrame() [all …]
|
D | decoder_impl.h | 188 StatusCode DecodeFrame(EncodedFrame* encoded_frame);
|
/external/webrtc/rtc_tools/ |
D | video_replay.cc | 243 int32_t Decode(const EncodedImage& encoded_frame, in Decode() argument 246 if (fwrite(encoded_frame.data(), 1, encoded_frame.size(), file_) < in Decode() 247 encoded_frame.size()) { in Decode()
|
/external/webrtc/video/ |
D | send_statistics_proxy.cc | 254 const EncodedImage& encoded_frame, in InsertEncodedFrame() argument 265 if (ForwardDiff(oldest_timestamp, encoded_frame.Timestamp()) > in InsertEncodedFrame() 273 auto it = encoded_frames_.find(encoded_frame.Timestamp()); in InsertEncodedFrame() 277 std::make_pair(encoded_frame.Timestamp(), in InsertEncodedFrame() 278 Frame(now_ms, encoded_frame._encodedWidth, in InsertEncodedFrame() 279 encoded_frame._encodedHeight, simulcast_idx))); in InsertEncodedFrame() 285 std::max(it->second.max_width, encoded_frame._encodedWidth); in InsertEncodedFrame() 287 std::max(it->second.max_height, encoded_frame._encodedHeight); in InsertEncodedFrame()
|
D | BUILD.gn | 165 "../api/video:encoded_frame", 188 "../api/video:encoded_frame", 631 "../modules/video_coding:encoded_frame",
|
D | send_statistics_proxy.h | 329 bool InsertEncodedFrame(const EncodedImage& encoded_frame,
|
/external/webrtc/api/test/ |
D | videocodec_test_fixture.h | 62 const EncodedImage& encoded_frame) const = 0;
|