Home
last modified time | relevance | path

Searched refs:frame_ (Results 1 – 25 of 58) sorted by relevance

123

/external/webrtc/audio/utility/
Daudio_frame_operations_unittest.cc23 frame_.samples_per_channel_ = 320; in AudioFrameOperationsTest()
24 frame_.num_channels_ = 2; in AudioFrameOperationsTest()
27 AudioFrame frame_; member in webrtc::__anon7b877e420111::AudioFrameOperationsTest
111 EXPECT_DEATH(AudioFrameOperations::UpmixChannels(2, &frame_), ""); in TEST_F()
112 frame_.samples_per_channel_ = AudioFrame::kMaxDataSizeSamples; in TEST_F()
113 frame_.num_channels_ = 1; in TEST_F()
114 EXPECT_DEATH(AudioFrameOperations::UpmixChannels(2, &frame_), ""); in TEST_F()
119 frame_.num_channels_ = 1; in TEST_F()
120 SetFrameData(1, &frame_); in TEST_F()
122 AudioFrameOperations::UpmixChannels(2, &frame_); in TEST_F()
[all …]
Dchannel_mixer_unittest.cc34 frame_.samples_per_channel_ = kSamplesPerChannel; in ChannelMixerTest()
35 frame_.sample_rate_hz_ = kSampleRateHz; in ChannelMixerTest()
36 EXPECT_TRUE(frame_.muted()); in ChannelMixerTest()
41 AudioFrame frame_; member in webrtc::__anon6459b6c00111::ChannelMixerTest
172 frame_.UpdateFrame(kTimestamp, nullptr, kSamplesPerChannel, kSampleRateHz, in TEST_F()
175 EXPECT_TRUE(frame_.muted()); in TEST_F()
176 mixer.Transform(&frame_); in TEST_F()
199 frame_.num_channels_ = ChannelLayoutToChannelCount(input_layout); in TEST_F()
200 SetFrameData(99, &frame_); in TEST_F()
201 mixer.Transform(&frame_); in TEST_F()
[all …]
/external/openscreen/cast/streaming/
Dframe_collector.cc32 OSP_DCHECK(!frame_.frame_id.is_null()); in CollectRtpPacket()
34 if (part.frame_id != frame_.frame_id) { in CollectRtpPacket()
37 << frame_.frame_id << " Got: " << part.frame_id; in CollectRtpPacket()
77 frame_.dependency = EncodedFrame::KEY_FRAME; in CollectRtpPacket()
79 frame_.dependency = EncodedFrame::INDEPENDENTLY_DECODABLE; in CollectRtpPacket()
81 frame_.dependency = EncodedFrame::DEPENDS_ON_ANOTHER; in CollectRtpPacket()
83 frame_.referenced_frame_id = part.referenced_frame_id; in CollectRtpPacket()
84 frame_.rtp_timestamp = part.rtp_timestamp; in CollectRtpPacket()
85 frame_.new_playout_delay = part.new_playout_delay; in CollectRtpPacket()
105 OSP_DCHECK(!frame_.frame_id.is_null()); in GetMissingPackets()
[all …]
/external/webrtc/modules/audio_processing/
Daudio_processing_unittest.cc461 Int16FrameData frame_; member in webrtc::__anonf916bed20111::ApmTest
513 ap->Initialize({{{frame_.sample_rate_hz, frame_.num_channels}, in Init()
526 SetContainerFormat(sample_rate_hz, num_input_channels, &frame_, &float_cb_); in Init()
599 if (!ReadFrame(near_file_, &frame_, cb)) { in ReadFrameWithRewind()
601 ASSERT_TRUE(ReadFrame(near_file_, &frame_, cb)); in ReadFrameWithRewind()
612 frame_.data.data(), in ProcessStreamChooser()
613 StreamConfig(frame_.sample_rate_hz, frame_.num_channels), in ProcessStreamChooser()
614 StreamConfig(frame_.sample_rate_hz, frame_.num_channels), in ProcessStreamChooser()
615 frame_.data.data()); in ProcessStreamChooser()
619 StreamConfig(frame_.sample_rate_hz, frame_.num_channels), in ProcessStreamChooser()
[all …]
/external/openscreen/cast/standalone_sender/
Dstreaming_opus_encoder.cc49 frame_.dependency = EncodedFrame::KEY_FRAME; in StreamingOpusEncoder()
114 frame_.frame_id = sender_->GetNextFrameId(); in EncodeAndSend()
115 frame_.referenced_frame_id = frame_.frame_id; in EncodeAndSend()
119 frame_.data = absl::Span<uint8_t>(output_.get(), packet_size_or_error); in EncodeAndSend()
120 last_sent_frame_reference_time_ = frame_.reference_time; in EncodeAndSend()
121 switch (sender_->EnqueueFrame(frame_)) { in EncodeAndSend()
137 frame_.rtp_timestamp += RtpTimeDelta::FromTicks(samples_per_cast_frame_); in EncodeAndSend()
138 frame_.reference_time += approximate_cast_frame_duration_; in EncodeAndSend()
159 frame_.rtp_timestamp = RtpTimeTicks(); in ResolveTimestampsAndMaybeSkip()
160 frame_.reference_time = start_time_ = reference_time; in ResolveTimestampsAndMaybeSkip()
[all …]
/external/webrtc/video/
Drtp_video_stream_receiver_frame_transformer_delegate.cc28 : frame_(std::move(frame)), in TransformableVideoReceiverFrame()
29 metadata_(frame_->GetRtpVideoHeader().GetAsMetadata()), in TransformableVideoReceiverFrame()
35 return *frame_->GetEncodedData(); in GetData()
39 frame_->SetEncodedData( in SetData()
43 uint8_t GetPayloadType() const override { return frame_->PayloadType(); } in GetPayloadType()
45 uint32_t GetTimestamp() const override { return frame_->Timestamp(); } in GetTimestamp()
48 return frame_->FrameType() == VideoFrameType::kVideoFrameKey; in IsKeyFrame()
52 return RtpDescriptorAuthentication(frame_->GetRtpVideoHeader()); in GetAdditionalData()
58 return std::move(frame_); in ExtractFrame()
64 std::unique_ptr<RtpFrameObject> frame_; member in webrtc::__anon3d4c0f670111::TransformableVideoReceiverFrame
/external/webrtc/modules/desktop_capture/win/
Ddxgi_frame.cc37 frame_.reset(); in Prepare()
40 if (!frame_) { in Prepare()
61 frame_ = SharedDesktopFrame::Wrap(std::move(frame)); in Prepare()
64 return !!frame_; in Prepare()
68 RTC_DCHECK(frame_); in frame()
69 return frame_.get(); in frame()
73 RTC_DCHECK(frame_); in context()
Dwgc_capturer_win_unittest.cc221 EXPECT_TRUE(frame_); in DoCapture()
227 EXPECT_EQ(frame_->size().width(), expected_width - kWindowWidthSubtrahend); in ValidateFrame()
228 EXPECT_EQ(frame_->size().height(), in ValidateFrame()
232 int data_length = frame_->stride() * frame_->size().height(); in ValidateFrame()
237 uint32_t first_pixel = static_cast<uint32_t>(*frame_->data()); in ValidateFrame()
239 *(frame_->data() + data_length - DesktopFrame::kBytesPerPixel)); in ValidateFrame()
244 uint8_t* middle_pixel = frame_->data() + (data_length / 2); in ValidateFrame()
264 frame_ = std::move(frame); in OnCaptureResult()
276 std::unique_ptr<DesktopFrame> frame_; member in webrtc::WgcCapturerWinTest
319 EXPECT_GT(frame_->size().width(), 0); in TEST_P()
[all …]
Ddxgi_texture.cc66 if (!frame_) { in AsDesktopFrame()
67 frame_.reset(new DxgiDesktopFrame(*this)); in AsDesktopFrame()
69 return *frame_; in AsDesktopFrame()
73 frame_.reset(); in Release()
/external/flac/src/utils/flacdiff/
Dmain.cpp52 …os_((FLAC__uint64)tgt), curpos_(0), go_(true), err_(false), frame_(), f_(f) { memset(&frame_, 0, s… in Decoder()
55 ::FLAC__Frame frame_;
94 frame_ = *frame; in write_callback()
159 …\n", d1.curpos_, d1.frame_.header.blocksize, d1.frame_.header.number.sample_number, d1.frame_.head… in show_diff()
160 …\n", d2.curpos_, d2.frame_.header.blocksize, d2.frame_.header.number.sample_number, d2.frame_.head… in show_diff()
/external/libvpx/test/
Dyuv_video_source.h31 start_(start), limit_(limit), frame_(0), width_(0), height_(0), in YUVVideoSource()
52 frame_ = start_; in Begin()
57 ++frame_; in Next()
62 return (frame_ < limit_) ? img_ : nullptr; in img()
66 virtual vpx_codec_pts_t pts() const { return frame_; } in pts()
75 virtual unsigned int frame() const { return frame_; } in frame()
107 limit_ = frame_; in FillFrame()
118 unsigned int frame_; variable
Dy4m_video_source.h27 start_(start), limit_(limit), frame_(0), framerate_numerator_(0), in Y4mVideoSource()
47 frame_ = 0; in ReadSourceToStart()
60 ++frame_; in Next()
65 return (frame_ < limit_) ? img_.get() : nullptr; in img()
69 virtual vpx_codec_pts_t pts() const { return frame_; } in pts()
78 virtual unsigned int frame() const { return frame_; } in frame()
115 unsigned int frame_; variable
Dvideo_source.h166 frame_ = 0; in Begin()
171 ++frame_; in Next()
176 return (frame_ < limit_) ? img_ : nullptr; in img()
180 virtual vpx_codec_pts_t pts() const { return frame_; } in pts()
189 virtual unsigned int frame() const { return frame_; } in frame()
225 unsigned int frame_; variable
239 frame_ = 0; in Begin()
248 if (frame_ % 30 < 15) { in FillFrame()
Dwebm_video_source.h29 webm_ctx_(new WebmInputContext()), buf_(nullptr), buf_sz_(0), frame_(0), in WebMVideoSource()
52 ++frame_; in Next()
70 ++frame_; in SeekToNextKeyFrame()
81 virtual unsigned int frame_number() const { return frame_; } in frame_number()
89 unsigned int frame_; variable
Divf_video_source.h33 compressed_frame_buf_(nullptr), frame_sz_(0), frame_(0), in IVFVideoSource()
66 ++frame_; in Next()
93 virtual unsigned int frame_number() const { return frame_; } in frame_number()
100 unsigned int frame_; variable
/external/libaom/test/
Dyuv_video_source.h32 start_(start), limit_(limit), frame_(0), width_(0), height_(0), in YUVVideoSource()
52 frame_ = start_; in Begin()
57 ++frame_; in Next()
62 return (frame_ < limit_) ? img_ : nullptr; in img()
66 virtual aom_codec_pts_t pts() const { return frame_; } in pts()
75 virtual unsigned int frame() const { return frame_; } in frame()
105 limit_ = frame_; in FillFrame()
116 unsigned int frame_; variable
Dy4m_video_source.h28 start_(start), limit_(limit), frame_(0), framerate_numerator_(0), in Y4mVideoSource()
49 frame_ = 0; in ReadSourceToStart()
62 ++frame_; in Next()
67 return (frame_ < limit_) ? img_.get() : nullptr; in img()
71 virtual aom_codec_pts_t pts() const { return frame_; } in pts()
80 virtual unsigned int frame() const { return frame_; } in frame()
117 unsigned int frame_; variable
Dvideo_source.h165 frame_ = 0; in Begin()
170 ++frame_; in Next()
175 return (frame_ < limit_) ? img_ : nullptr; in img()
179 virtual aom_codec_pts_t pts() const { return frame_; } in pts()
188 virtual unsigned int frame() const { return frame_; } in frame()
224 unsigned int frame_; variable
237 frame_ = 0; in Begin()
247 if (frame_ % 30 < 15) in FillFrame()
Divf_video_source.h37 compressed_frame_buf_(nullptr), frame_sz_(0), frame_(0), in IVFVideoSource()
71 ++frame_; in Next()
101 virtual unsigned int frame_number() const { return frame_; } in frame_number()
108 unsigned int frame_; variable
/external/webrtc/modules/desktop_capture/
Dwindow_capturer_unittest.cc38 frame_ = std::move(frame); in OnCaptureResult()
43 std::unique_ptr<DesktopFrame> frame_; member in webrtc::WindowCapturerTest
84 frame_.reset(); in TEST_F()
90 if (!frame_.get()) { in TEST_F()
100 EXPECT_GT(frame_->size().width(), 0); in TEST_F()
101 EXPECT_GT(frame_->size().height(), 0); in TEST_F()
Ddesktop_and_cursor_composer_unittest.cc214 frame_ = std::move(frame); in OnCaptureResult()
223 std::unique_ptr<DesktopFrame> frame_; member in webrtc::DesktopAndCursorComposerTest
264 EXPECT_EQ(frame_, nullptr); in TEST_F()
299 EXPECT_TRUE(frame_); in TEST_F()
303 *reinterpret_cast<uint32_t*>(frame_->GetFrameDataAtPos(rel_pos)), in TEST_F()
310 *reinterpret_cast<uint32_t*>(frame_->GetFrameDataAtPos(rel_pos)), in TEST_F()
313 EXPECT_TRUE(frame_->may_contain_cursor()); in TEST_F()
341 VerifyFrame(*frame_, MouseCursorMonitor::OUTSIDE, DesktopVector(0, 0)); in TEST_F()
366 VerifyFrame(*frame_, MouseCursorMonitor::OUTSIDE, DesktopVector()); in TEST_F()
392 VerifyFrame(*frame_, MouseCursorMonitor::INSIDE, rel_pos); in TEST_F()
[all …]
Dcropped_desktop_frame.cc31 const std::unique_ptr<DesktopFrame> frame_; member in webrtc::CroppedDesktopFrame
59 frame_(std::move(frame)) { in CroppedDesktopFrame()
60 MoveFrameInfoFrom(frame_.get()); in CroppedDesktopFrame()
61 set_top_left(frame_->top_left().add(rect.top_left())); in CroppedDesktopFrame()
/external/webrtc/api/video/
Drtp_video_frame_assembler.h40 frame_(std::move(frame)) {} in AssembledFrame()
44 std::unique_ptr<EncodedFrame> ExtractFrame() { return std::move(frame_); } in ExtractFrame()
49 std::unique_ptr<EncodedFrame> frame_; variable
/external/webrtc/modules/rtp_rtcp/source/
Drtp_packetizer_av1_unittest.cc67 : frame_(std::move(frame)) {} in Av1Frame()
69 const_iterator begin() const { return frame_ ? frame_->data() : nullptr; } in begin()
71 return frame_ ? (frame_->data() + frame_->size()) : nullptr; in end()
75 rtc::scoped_refptr<EncodedImageBuffer> frame_; member in webrtc::__anon3db0c6120111::Av1Frame
/external/webrtc/test/pc/e2e/analyzer/video/
Ddefault_video_quality_analyzer_frame_in_flight.cc43 frame_(std::move(frame)), in FrameInFlight()
47 if (!frame_) { in RemoveFrame()
50 frame_ = absl::nullopt; in RemoveFrame()
55 if (frame_) { in SetFrameId()
56 frame_->set_id(id); in SetFrameId()

123