Home
last modified time | relevance | path

Searched refs:input_frame (Results 1 – 18 of 18) sorted by relevance

/external/webrtc/test/testsupport/
Djpeg_frame_writer.cc35 bool JpegFrameWriter::WriteFrame(const VideoFrame& input_frame, int quality) { in WriteFrame() argument
41 size_t rgb_len = input_frame.height() * input_frame.width() * kColorPlanes; in WriteFrame()
45 if (ConvertFromI420(input_frame, VideoType::kRGB24, 0, rgb_buf.get()) < 0) { in WriteFrame()
65 cinfo.image_width = input_frame.width(); in WriteFrame()
66 cinfo.image_height = input_frame.height(); in WriteFrame()
73 int row_stride = input_frame.width() * kColorPlanes; in WriteFrame()
Dframe_writer.h91 bool WriteFrame(const VideoFrame& input_frame, int quality);
/external/tensorflow/tensorflow/core/common_runtime/
Dpropagator_state.cc80 FrameState* const input_frame = tagged_node.input_frame; in PropagateOutputs() local
88 FrameState* output_frame = input_frame; in PropagateOutputs()
94 DCHECK_EQ(input_frame, output_frame); in PropagateOutputs()
95 FrameState* frame = input_frame; in PropagateOutputs()
99 FindOrCreateChildFrame(input_frame, input_iter, *item, &output_frame); in PropagateOutputs()
113 is_frame_done = input_frame->DecrementOutstandingOps(input_iter, ready); in PropagateOutputs()
116 mutex_lock l(input_frame->mu); in PropagateOutputs()
118 if (input_iter->iter_num == input_frame->iteration_count) { in PropagateOutputs()
119 input_frame->dead_exits.push_back(item); in PropagateOutputs()
122 input_frame->DecrementOutstandingOpsLocked(input_iter, ready); in PropagateOutputs()
[all …]
Dpropagator_state.h64 FrameState* input_frame; member
72 input_frame(in_frame), in TaggedNode()
449 return {tagged_node.input_frame->frame_id, in GetFrameAndIter()
461 mutex_lock l(tagged_node.input_frame->mu); in MaybeMarkStarted()
471 mutex_lock l(tagged_node.input_frame->mu); in MaybeMarkCompleted()
/external/webrtc/modules/video_coding/codecs/vp8/test/
Dvp8_impl_unittest.cc83 void EncodeAndWaitForFrame(const VideoFrame& input_frame, in EncodeAndWaitForFrame() argument
94 encoder_->Encode(input_frame, &frame_types)); in EncodeAndWaitForFrame()
101 void EncodeAndExpectFrameWith(const VideoFrame& input_frame, in EncodeAndExpectFrameWith() argument
106 EncodeAndWaitForFrame(input_frame, &encoded_frame, &codec_specific_info, in EncodeAndExpectFrameWith()
276 VideoFrame input_frame = NextInputFrame(); in TEST_F() local
277 input_frame.set_timestamp(kInitialTimestampRtp); in TEST_F()
278 input_frame.set_timestamp_us(kInitialTimestampMs * in TEST_F()
282 EncodeAndWaitForFrame(input_frame, &encoded_frame, &codec_specific_info); in TEST_F()
290 VideoFrame input_frame = NextInputFrame(); in TEST_F() local
293 EncodeAndWaitForFrame(input_frame, &encoded_frame, &codec_specific_info); in TEST_F()
[all …]
/external/webrtc/common_video/libyuv/
Dwebrtc_libyuv.cc96 int ExtractBuffer(const rtc::scoped_refptr<I420BufferInterface>& input_frame, in ExtractBuffer() argument
100 if (!input_frame) in ExtractBuffer()
102 int width = input_frame->width(); in ExtractBuffer()
103 int height = input_frame->height(); in ExtractBuffer()
109 int chroma_width = input_frame->ChromaWidth(); in ExtractBuffer()
110 int chroma_height = input_frame->ChromaHeight(); in ExtractBuffer()
112 libyuv::I420Copy(input_frame->DataY(), input_frame->StrideY(), in ExtractBuffer()
113 input_frame->DataU(), input_frame->StrideU(), in ExtractBuffer()
114 input_frame->DataV(), input_frame->StrideV(), buffer, width, in ExtractBuffer()
122 int ExtractBuffer(const VideoFrame& input_frame, size_t size, uint8_t* buffer) { in ExtractBuffer() argument
[all …]
/external/webrtc/modules/video_coding/codecs/multiplex/test/
Dmultiplex_adapter_unittest.cc108 VideoFrame input_frame = NextInputFrame(); in CreateI420AInputFrame() local
110 input_frame.video_frame_buffer()->ToI420(); in CreateI420AInputFrame()
215 std::unique_ptr<VideoFrame> input_frame = CreateInputFrame(false); in TEST_P() local
216 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Encode(*input_frame, nullptr)); in TEST_P()
227 EXPECT_GT(I420PSNR(input_frame.get(), decoded_frame.get()), 36); in TEST_P()
256 std::unique_ptr<VideoFrame> input_frame = CreateInputFrame(false); in TEST_P() local
257 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Encode(*input_frame, nullptr)); in TEST_P()
/external/webrtc/modules/video_coding/codecs/h264/test/
Dh264_impl_unittest.cc58 VideoFrame input_frame = NextInputFrame(); in TEST_F() local
59 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Encode(input_frame, nullptr)); in TEST_F()
70 EXPECT_GT(I420PSNR(&input_frame, decoded_frame.get()), 36); in TEST_F()
/external/webrtc/media/engine/
Dsimulcast_encoder_adapter_unittest.cc616 VideoFrame input_frame = VideoFrame::Builder() in TEST_F() local
642 EXPECT_EQ(0, adapter_->Encode(input_frame, &frame_types)); in TEST_F()
669 EXPECT_EQ(0, adapter_->Encode(input_frame, &frame_types)); in TEST_F()
691 EXPECT_EQ(0, adapter_->Encode(input_frame, &frame_types)); in TEST_F()
717 EXPECT_EQ(0, adapter_->Encode(input_frame, &frame_types)); in TEST_F()
987 VideoFrame input_frame = VideoFrame::Builder() in TEST_F() local
996 EXPECT_CALL(*encoder, Encode(::testing::Ref(input_frame), _)).Times(1); in TEST_F()
998 EXPECT_EQ(0, adapter_->Encode(input_frame, &frame_types)); in TEST_F()
1024 VideoFrame input_frame = VideoFrame::Builder() in TEST_F() local
1033 EXPECT_CALL(*encoders[1], Encode(::testing::Ref(input_frame), _)).Times(1); in TEST_F()
[all …]
/external/webrtc/modules/audio_processing/
Daudio_processing_performance_unittest.cc54 input_frame.resize(2); in AudioFrameData()
55 input_frame[0] = &input_framechannels[0]; in AudioFrameData()
56 input_frame[1] = &input_framechannels[max_frame_size]; in AudioFrameData()
67 std::vector<float*> input_frame; member
273 &frame_data_.input_frame[0], frame_data_.input_stream_config, in ProcessCapture()
301 &frame_data_.input_frame[0], frame_data_.input_stream_config, in ProcessRender()
350 rand_gen_, &frame_data_.input_frame[0]); in PrepareFrame()
Daudio_processing_impl_locking_unittest.cc89 input_frame.resize(2); in AudioFrameData()
90 input_frame[0] = &input_framechannels[0]; in AudioFrameData()
91 input_frame[1] = &input_framechannels[max_frame_size]; in AudioFrameData()
105 std::vector<float*> input_frame; member
644 PopulateAudioFrame(&frame_data_.input_frame[0], kCaptureInputFloatLevel, in PrepareFrame()
675 result = apm_->ProcessStream(&frame_data_.input_frame[0], in CallApmCaptureSide()
886 PopulateAudioFrame(&frame_data_.input_frame[0], kRenderInputFloatLevel, in PrepareFrame()
912 &frame_data_.input_frame[0], input_stream_config, in CallApmRenderSide()
916 result = apm_->AnalyzeReverseStream(&frame_data_.input_frame[0], in CallApmRenderSide()
/external/webrtc/modules/video_coding/codecs/test/
Dvideo_codec_unittest.cc100 VideoFrame input_frame = VideoFrame::Builder() in NextInputFrame() local
108 input_frame.set_timestamp(timestamp); in NextInputFrame()
111 return input_frame; in NextInputFrame()
Dvideoprocessor.cc261 VideoFrame input_frame = in ProcessFrame() local
273 input_frames_.emplace(frame_number, input_frame); in ProcessFrame()
298 const int encode_return_code = encoder_->Encode(input_frame, &frame_types); in ProcessFrame()
/external/webrtc/common_video/libyuv/include/
Dwebrtc_libyuv.h79 int ExtractBuffer(const rtc::scoped_refptr<I420BufferInterface>& input_frame,
82 int ExtractBuffer(const VideoFrame& input_frame, size_t size, uint8_t* buffer);
/external/webrtc/modules/video_coding/codecs/h264/
Dh264_decoder_impl.cc301 VideoFrame* input_frame = in Decode() local
303 RTC_DCHECK(input_frame); in Decode()
305 input_frame->video_frame_buffer()->GetI420(); in Decode()
352 input_frame = nullptr; in Decode()
Dh264_encoder_impl.cc372 const VideoFrame& input_frame, in Encode() argument
387 input_frame.video_frame_buffer()->ToI420(); in Encode()
419 pictures_[i].uiTimeStamp = input_frame.ntp_time_ms(); in Encode()
482 encoded_images_[i].SetTimestamp(input_frame.timestamp()); in Encode()
/external/webrtc/modules/desktop_capture/
Ddesktop_capturer_differ_wrapper.cc191 std::unique_ptr<DesktopFrame> input_frame) { in OnCaptureResult() argument
193 if (!input_frame) { in OnCaptureResult()
200 SharedDesktopFrame::Wrap(std::move(input_frame)); in OnCaptureResult()
/external/webrtc/modules/video_coding/codecs/vp9/test/
Dvp9_impl_unittest.cc98 VideoFrame input_frame = NextInputFrame(); in TEST_F() local
99 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Encode(input_frame, nullptr)); in TEST_F()
110 EXPECT_GT(I420PSNR(&input_frame, decoded_frame.get()), 36); in TEST_F()
1501 VideoFrame input_frame = NextInputFrame(); in TEST_F() local
1503 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Encode(input_frame, nullptr)); in TEST_F()
1504 const size_t timestamp = input_frame.timestamp() + in TEST_F()
1506 input_frame.set_timestamp(static_cast<uint32_t>(timestamp)); in TEST_F()
1553 VideoFrame input_frame = NextInputFrame(); in TEST_F() local
1555 EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, encoder_->Encode(input_frame, nullptr)); in TEST_F()
1556 const size_t timestamp = input_frame.timestamp() + in TEST_F()
[all …]