Home
last modified time | relevance | path

Searched refs:encoded_frame (Results 1 – 25 of 29) sorted by relevance

12

/external/openscreen/cast/streaming/
Dframe_crypto.cc62 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()
Dframe_crypto.h58 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()
DBUILD.gn24 "encoded_frame.cc",
25 "encoded_frame.h",
/external/webrtc/modules/video_coding/codecs/vp8/test/
Dvp8_impl_unittest.cc84 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/
Dvp9_impl_unittest.cc100 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/
Dh264_impl_unittest.cc60 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/
Dmultiplex_adapter_unittest.cc217 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/
Dgeneric_decoder_unittest.cc94 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()
DBUILD.gn12 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/
Dbuffered_frame_deserializer_unittest.cc66 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/
Danim_encode.c312 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/
Dsimulcast_test_fixture_impl.cc124 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/
DBUILD.gn147 rtc_library("encoded_frame") {
150 "encoded_frame.cc",
151 "encoded_frame.h",
154 deps = [ "../../modules/video_coding:encoded_frame" ]
206 ":encoded_frame",
DDEPS5 "encoded_frame.h": [
6 "+modules/video_coding/encoded_frame.h",
/external/webrtc/modules/video_coding/codecs/test/
Dvideocodec_test_libvpx.cc45 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()
Dvideocodec_test_fixture_impl.cc318 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()
Dvideocodec_test_fixture_impl.h42 const EncodedImage& encoded_frame) const override;
Dvideoprocessor.cc52 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/
Ddecoder_impl.cc904 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 …]
Ddecoder_impl.h188 StatusCode DecodeFrame(EncodedFrame* encoded_frame);
/external/webrtc/rtc_tools/
Dvideo_replay.cc243 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/
Dsend_statistics_proxy.cc254 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()
DBUILD.gn165 "../api/video:encoded_frame",
188 "../api/video:encoded_frame",
631 "../modules/video_coding:encoded_frame",
Dsend_statistics_proxy.h329 bool InsertEncodedFrame(const EncodedImage& encoded_frame,
/external/webrtc/api/test/
Dvideocodec_test_fixture.h62 const EncodedImage& encoded_frame) const = 0;

12