Home
last modified time | relevance | path

Searched refs:frame_ (Results 1 – 25 of 53) 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::__anon6a5470a40111::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::__anon864de2e20111::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.cc405 Int16FrameData frame_; member in webrtc::__anon6c647e740111::ApmTest
463 ap->Initialize({{{frame_.sample_rate_hz, frame_.num_channels}, in Init()
476 SetContainerFormat(sample_rate_hz, num_input_channels, &frame_, &float_cb_); in Init()
549 if (!ReadFrame(near_file_, &frame_, cb)) { in ReadFrameWithRewind()
551 ASSERT_TRUE(ReadFrame(near_file_, &frame_, cb)); in ReadFrameWithRewind()
562 frame_.data.data(), in ProcessStreamChooser()
563 StreamConfig(frame_.sample_rate_hz, frame_.num_channels), in ProcessStreamChooser()
564 StreamConfig(frame_.sample_rate_hz, frame_.num_channels), in ProcessStreamChooser()
565 frame_.data.data()); in ProcessStreamChooser()
569 StreamConfig(frame_.sample_rate_hz, frame_.num_channels), in ProcessStreamChooser()
[all …]
/external/llvm-project/flang/runtime/
Dbuffer.h41 FileOffset FrameAt() const { return fileOffset_ + frame_; } in FrameAt()
42 char *Frame() const { return buffer_ + start_ + frame_; } in Frame()
44 return std::min<std::size_t>(length_ - frame_, size_ - (start_ + frame_)); in FrameLength()
46 std::size_t BytesBufferedBeforeFrame() const { return frame_ - start_; } in BytesBufferedBeforeFrame()
56 frame_ = at - fileOffset_; in ReadFrame()
57 if (static_cast<std::int64_t>(start_ + frame_ + bytes) > size_) { in ReadFrame()
58 DiscardLeadingBytes(frame_, handler); in ReadFrame()
101 frame_ = at - fileOffset_; in WriteFrame()
102 length_ = std::max<std::int64_t>(length_, frame_ + bytes); in WriteFrame()
141 start_ = length_ = frame_ = 0; in Reset()
[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/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()
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/webrtc/video/
Drtp_video_stream_receiver_frame_transformer_delegate.cc30 : frame_(std::move(frame)), in TransformableVideoReceiverFrame()
31 metadata_(frame_->GetRtpVideoHeader()), in TransformableVideoReceiverFrame()
37 return *frame_->GetEncodedData(); in GetData()
41 frame_->SetEncodedData( in SetData()
45 uint32_t GetTimestamp() const override { return frame_->Timestamp(); } in GetTimestamp()
49 return frame_->FrameType() == VideoFrameType::kVideoFrameKey; in IsKeyFrame()
53 return RtpDescriptorAuthentication(frame_->GetRtpVideoHeader()); in GetAdditionalData()
59 return std::move(frame_); in ExtractFrame()
63 std::unique_ptr<video_coding::RtpFrameObject> frame_; member in webrtc::__anon3ca851090111::TransformableVideoReceiverFrame
Dvideo_stream_decoder_impl_unittest.cc144 FrameBuilder() : frame_(std::make_unique<FakeEncodedFrame>()) {} in FrameBuilder()
147 frame_->SetPayloadType(payload_type); in WithPayloadType()
152 frame_->id.picture_id = picture_id; in WithPictureId()
156 std::unique_ptr<FakeEncodedFrame> Build() { return std::move(frame_); } in Build()
159 std::unique_ptr<FakeEncodedFrame> frame_; member in webrtc::__anon698f800f0111::FrameBuilder
/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/libvpx/test/
Dyuv_video_source.h31 limit_(limit), frame_(0), width_(0), height_(0), in YUVVideoSource()
52 frame_ = start_; in Begin()
57 ++frame_; in Next()
61 virtual vpx_image_t *img() const { return (frame_ < limit_) ? img_ : NULL; } in img()
64 virtual vpx_codec_pts_t pts() const { return frame_; } in pts()
73 virtual unsigned int frame() const { return frame_; } in frame()
104 limit_ = frame_; in FillFrame()
115 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() : NULL; 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.h144 frame_ = 0; in Begin()
149 ++frame_; in Next()
153 virtual vpx_image_t *img() const { return (frame_ < limit_) ? img_ : NULL; } in img()
156 virtual vpx_codec_pts_t pts() const { return frame_; } in pts()
165 virtual unsigned int frame() const { return frame_; } in frame()
200 unsigned int frame_; variable
214 frame_ = 0; in Begin()
223 if (frame_ % 30 < 15) { in FillFrame()
Dwebm_video_source.h29 webm_ctx_(new WebmInputContext()), buf_(NULL), buf_sz_(0), frame_(0), in WebMVideoSource()
52 ++frame_; in Next()
70 ++frame_; in SeekToNextKeyFrame()
79 virtual unsigned int frame_number() const { return frame_; } in frame_number()
87 unsigned int frame_; variable
Divf_video_source.h33 frame_sz_(0), frame_(0), end_of_file_(false) {} 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/libaom/test/
Dyuv_video_source.h32 limit_(limit), frame_(0), width_(0), height_(0), in YUVVideoSource()
52 frame_ = start_; in Begin()
57 ++frame_; in Next()
61 virtual aom_image_t *img() const { return (frame_ < limit_) ? img_ : NULL; } in img()
64 virtual aom_codec_pts_t pts() const { return frame_; } in pts()
73 virtual unsigned int frame() const { return frame_; } in frame()
102 limit_ = frame_; in FillFrame()
113 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() : NULL; 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.h146 frame_ = 0; in Begin()
151 ++frame_; in Next()
155 virtual aom_image_t *img() const { return (frame_ < limit_) ? img_ : NULL; } in img()
158 virtual aom_codec_pts_t pts() const { return frame_; } in pts()
167 virtual unsigned int frame() const { return frame_; } in frame()
202 unsigned int frame_; variable
216 frame_ = 0; in Begin()
225 if (frame_ % 30 < 15) in FillFrame()
Divf_video_source.h37 frame_sz_(0), frame_(0), end_of_file_(false) {} 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
77 frame_.reset(); in TEST_F()
83 if (!frame_.get()) { in TEST_F()
93 EXPECT_GT(frame_->size().width(), 0); in TEST_F()
94 EXPECT_GT(frame_->size().height(), 0); in TEST_F()
Dcropped_desktop_frame.cc29 const std::unique_ptr<DesktopFrame> frame_; member in webrtc::CroppedDesktopFrame
57 frame_(std::move(frame)) { in CroppedDesktopFrame()
58 MoveFrameInfoFrom(frame_.get()); in CroppedDesktopFrame()
59 set_top_left(frame_->top_left().add(rect.top_left())); in CroppedDesktopFrame()
Ddesktop_and_cursor_composer_unittest.cc198 frame_ = std::move(frame); in OnCaptureResult()
207 std::unique_ptr<DesktopFrame> frame_; member in webrtc::DesktopAndCursorComposerTest
248 EXPECT_EQ(frame_, nullptr); in TEST_F()
275 VerifyFrame(*frame_, MouseCursorMonitor::OUTSIDE, DesktopVector(0, 0)); in TEST_F()
300 VerifyFrame(*frame_, MouseCursorMonitor::OUTSIDE, DesktopVector()); in TEST_F()
326 VerifyFrame(*frame_, MouseCursorMonitor::INSIDE, rel_pos); in TEST_F()
330 frame_.reset(); in TEST_F()
361 EXPECT_TRUE(frame_->updated_region().Equals(expected_region)); in TEST_F()
395 EXPECT_TRUE(frame_->updated_region().Equals(expected_region)); in TEST_F()
410 EXPECT_TRUE(frame_->updated_region().is_empty()); in TEST_F()
/external/webrtc/modules/rtp_rtcp/source/
Drtp_packetizer_av1_unittest.cc77 : frame_(std::move(frame)) {} in Av1Frame()
79 const_iterator begin() const { return frame_ ? frame_->data() : nullptr; } in begin()
81 return frame_ ? (frame_->data() + frame_->size()) : nullptr; in end()
85 rtc::scoped_refptr<EncodedImageBuffer> frame_; member in webrtc::__anon1ab679f40111::Av1Frame
/external/deqp-deps/amber/src/vulkan/
Dgraphics_pipeline.cc697 frame_ = MakeUnique<FrameBuffer>(device_, color_buffers_, in Initialize()
699 r = frame_->Initialize(render_pass_); in Initialize()
777 frame_->ChangeFrameToWriteLayout(GetCommandBuffer()); in Clear()
778 frame_->CopyBuffersToImages(); in Clear()
779 frame_->TransferImagesToDevice(GetCommandBuffer()); in Clear()
822 frame_->TransferImagesToHost(command_.get()); in Clear()
828 frame_->CopyImagesToBuffers(); in Clear()
864 frame_->ChangeFrameToWriteLayout(GetCommandBuffer()); in Draw()
865 frame_->CopyBuffersToImages(); in Draw()
866 frame_->TransferImagesToDevice(GetCommandBuffer()); in Draw()
[all …]

123