Home
last modified time | relevance | path

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

12

/external/webrtc/modules/video_coding/
Dgeneric_decoder_unittest.cc96 VCMEncodedFrame encoded_frame; in TEST_F() local
97 encoded_frame.SetPacketInfos(packet_infos); in TEST_F()
98 generic_decoder_.Decode(encoded_frame, clock_->CurrentTime()); in TEST_F()
109 VCMEncodedFrame encoded_frame; in TEST_F() local
110 encoded_frame.SetTimestamp(90000 * i); in TEST_F()
111 generic_decoder_.Decode(encoded_frame, clock_->CurrentTime()); in TEST_F()
130 VCMEncodedFrame encoded_frame; in TEST_F() local
131 encoded_frame.SetPacketInfos(packet_infos); in TEST_F()
132 generic_decoder_.Decode(encoded_frame, clock_->CurrentTime()); in TEST_F()
142 VCMEncodedFrame encoded_frame; in TEST_F() local
[all …]
DBUILD.gn12 rtc_library("encoded_frame") {
15 "encoded_frame.cc",
16 "encoded_frame.h",
160 "../../api/video:encoded_frame",
180 "../../api/video:encoded_frame",
243 ":encoded_frame",
266 "../../api/video:encoded_frame",
370 ":encoded_frame",
462 "../../api/video:encoded_frame",
1180 ":encoded_frame",
[all …]
/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.gn45 "encoded_frame.cc",
46 "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/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.cc216 EncodedImage encoded_frame; in TEST_P() local
218 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_P()
221 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Decode(encoded_frame, false, -1)); in TEST_P()
233 EncodedImage encoded_frame; in TEST_P() local
235 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_P()
238 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Decode(encoded_frame, false, 0)); in TEST_P()
257 EncodedImage encoded_frame; in TEST_P() local
259 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_P()
261 EXPECT_FALSE(encoded_frame.SpatialIndex()); in TEST_P()
264 MultiplexEncodedImagePacker::Unpack(encoded_frame); in TEST_P()
[all …]
/external/webrtc/modules/video_coding/codecs/vp9/test/
Dvp9_impl_unittest.cc139 EncodedImage encoded_frame; in TEST_P() local
141 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_P()
143 encoded_frame._frameType = VideoFrameType::kVideoFrameKey; in TEST_P()
144 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Decode(encoded_frame, false, 0)); in TEST_P()
171 EncodedImage encoded_frame; in TEST_P() local
173 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_P()
189 EncodedImage encoded_frame; in TEST_P() local
191 ASSERT_TRUE(WaitForEncodedFrame(&encoded_frame, &codec_specific_info)); in TEST_P()
194 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Decode(encoded_frame, false, 0)); in TEST_P()
207 EncodedImage encoded_frame; in TEST_P() local
[all …]
/external/webrtc/api/video/
Dframe_buffer.cc41 return {it->second.encoded_frame->references, in GetReferences()
42 std::min<size_t>(it->second.encoded_frame->num_references, in GetReferences()
53 return it->second.encoded_frame->Timestamp(); in GetTimestamp()
58 return it->second.encoded_frame->is_last_spatial_layer; in IsLastFrameInTemporalUnit()
130 res.push_back(std::move(it->second.encoded_frame)); in ExtractNextDecodableTemporalUnit()
145 [](const auto& f) { return f.second.encoded_frame != nullptr; }); in DropNextDecodableTemporalUnit()
DBUILD.gn160 rtc_library("encoded_frame") {
163 "encoded_frame.cc",
164 "encoded_frame.h",
168 "../../modules/video_coding:encoded_frame",
182 ":encoded_frame",
265 ":encoded_frame",
377 "../../api/video:encoded_frame",
395 "../../api/video:encoded_frame",
DDEPS5 "encoded_frame.h": [
6 "+modules/video_coding/encoded_frame.h",
Dframe_buffer.h73 std::unique_ptr<EncodedFrame> encoded_frame; member
/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.c309 static void FrameRelease(EncodedFrame* const encoded_frame) { in FrameRelease() argument
310 if (encoded_frame != NULL) { in FrameRelease()
311 WebPDataClear(&encoded_frame->sub_frame_.bitstream); in FrameRelease()
312 WebPDataClear(&encoded_frame->key_frame_.bitstream); in FrameRelease()
313 memset(encoded_frame, 0, sizeof(*encoded_frame)); in FrameRelease()
1011 EncodedFrame* const encoded_frame) { in PickBestCandidate() argument
1029 ? &encoded_frame->key_frame_ in PickBestCandidate()
1030 : &encoded_frame->sub_frame_; in PickBestCandidate()
1059 EncodedFrame* const encoded_frame, in SetFrame() argument
1170 PickBestCandidate(enc, candidates, is_key_frame, encoded_frame); in SetFrame()
[all …]
/external/webrtc/modules/video_coding/utility/
Dsimulcast_test_fixture_impl.cc115 void GetLastEncodedFrame(EncodedImage* encoded_frame) { in GetLastEncodedFrame() argument
116 *encoded_frame = encoded_frame_; in GetLastEncodedFrame()
834 EncodedImage encoded_frame; in TestStrideEncodeDecode() local
836 encoder_callback.GetLastEncodedKeyFrame(&encoded_frame); in TestStrideEncodeDecode()
837 EXPECT_EQ(0, decoder_->Decode(encoded_frame, false, 0)); in TestStrideEncodeDecode()
838 encoder_callback.GetLastEncodedFrame(&encoded_frame); in TestStrideEncodeDecode()
839 decoder_->Decode(encoded_frame, false, 0); in TestStrideEncodeDecode()
847 EncodedImage encoded_frame[3]; in TestDecodeWidthHeightSet() local
860 encoded_frame[index].SetEncodedData(EncodedImageBuffer::Create( in TestDecodeWidthHeightSet()
862 encoded_frame[index]._frameType = encoded_image._frameType; in TestDecodeWidthHeightSet()
[all …]
/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.cc357 const EncodedImage& encoded_frame) const { in CheckEncodedFrame()
363 webrtc::H264::FindNaluIndices(encoded_frame.data(), encoded_frame.size()); in CheckEncodedFrame()
366 encoded_frame.data()[index.payload_start_offset]); in CheckEncodedFrame()
375 if (encoded_frame._frameType == VideoFrameType::kVideoFrameKey) { in CheckEncodedFrame()
379 } else if (encoded_frame._frameType == VideoFrameType::kVideoFrameDelta) { in CheckEncodedFrame()
Dvideocodec_test_fixture_impl.h42 const EncodedImage& encoded_frame) const override;
Dvideoprocessor.cc49 size_t GetMaxNaluSizeBytes(const EncodedImage& encoded_frame, in GetMaxNaluSizeBytes() argument
55 webrtc::H264::FindNaluIndices(encoded_frame.data(), encoded_frame.size()); in GetMaxNaluSizeBytes()
/external/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.h189 StatusCode DecodeFrame(EncodedFrame* encoded_frame);
/external/webrtc/rtc_tools/
Dvideo_replay.cc238 int32_t Decode(const EncodedImage& encoded_frame, in Decode() argument
241 if (fwrite(encoded_frame.data(), 1, encoded_frame.size(), file_) < in Decode()
242 encoded_frame.size()) { in Decode()
274 int32_t Decode(const EncodedImage& encoded_frame, in Decode() argument
277 if (!file_writer_->WriteFrame(encoded_frame, video_codec_type_)) { in Decode()
/external/webrtc/video/
Dsend_statistics_proxy.cc259 const EncodedImage& encoded_frame, in InsertEncodedFrame() argument
270 if (ForwardDiff(oldest_timestamp, encoded_frame.Timestamp()) > in InsertEncodedFrame()
278 auto it = encoded_frames_.find(encoded_frame.Timestamp()); in InsertEncodedFrame()
282 std::make_pair(encoded_frame.Timestamp(), in InsertEncodedFrame()
283 Frame(now_ms, encoded_frame._encodedWidth, in InsertEncodedFrame()
284 encoded_frame._encodedHeight, simulcast_idx))); in InsertEncodedFrame()
290 std::max(it->second.max_width, encoded_frame._encodedWidth); in InsertEncodedFrame()
292 std::max(it->second.max_height, encoded_frame._encodedHeight); in InsertEncodedFrame()
/external/webrtc/api/test/
Dvideocodec_test_fixture.h63 const EncodedImage& encoded_frame) const = 0;

12