/external/webrtc/api/video/ |
D | video_frame.cc | 21 void VideoFrame::UpdateRect::Union(const UpdateRect& other) { in Union() 38 void VideoFrame::UpdateRect::Intersect(const UpdateRect& other) { in Intersect() 55 void VideoFrame::UpdateRect::MakeEmptyUpdate() { in MakeEmptyUpdate() 59 bool VideoFrame::UpdateRect::IsEmpty() const { in IsEmpty() 63 VideoFrame::UpdateRect VideoFrame::UpdateRect::ScaleWithFrame( in ScaleWithFrame() 160 VideoFrame::Builder::Builder() = default; 162 VideoFrame::Builder::~Builder() = default; 164 VideoFrame VideoFrame::Builder::build() { in build() 166 return VideoFrame(id_, video_frame_buffer_, timestamp_us_, timestamp_rtp_, in build() 171 VideoFrame::Builder& VideoFrame::Builder::set_video_frame_buffer( in set_video_frame_buffer() [all …]
|
D | video_frame.h | 30 class RTC_EXPORT VideoFrame { 87 VideoFrame build(); 114 VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer, 117 VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer, 122 ~VideoFrame(); 125 VideoFrame(const VideoFrame&); 126 VideoFrame(VideoFrame&&); 127 VideoFrame& operator=(const VideoFrame&); 128 VideoFrame& operator=(VideoFrame&&); 215 void set_update_rect(const VideoFrame::UpdateRect& update_rect) { in set_update_rect() [all …]
|
/external/v4l2_codec2/components/ |
D | VideoFrame.cpp | 16 std::unique_ptr<VideoFrame> VideoFrame::Create(std::shared_ptr<C2GraphicBlock> block) { in Create() 25 return std::unique_ptr<VideoFrame>(new VideoFrame(std::move(block), std::move(fds))); in Create() 28 VideoFrame::VideoFrame(std::shared_ptr<C2GraphicBlock> block, std::vector<int> fds) in VideoFrame() function in android::VideoFrame 31 VideoFrame::~VideoFrame() = default; 33 const std::vector<int>& VideoFrame::getFDs() const { in getFDs() 37 void VideoFrame::setVisibleRect(const Rect& visibleRect) { in setVisibleRect() 41 const Rect& VideoFrame::getVisibleRect() const { in getVisibleRect() 45 void VideoFrame::setBitstreamId(int32_t bitstreamId) { in setBitstreamId() 49 int32_t VideoFrame::getBitstreamId() const { in getBitstreamId() 53 C2ConstGraphicBlock VideoFrame::getGraphicBlock() { in getGraphicBlock()
|
/external/webrtc/common_video/ |
D | video_frame_unittest.cc | 274 VideoFrame frame = in TEST() 275 VideoFrame::Builder() in TEST() 311 VideoFrame frame1 = VideoFrame::Builder() in TEST() 321 VideoFrame frame2(frame1); in TEST() 349 VideoFrame frame = test::FakeNativeBuffer::CreateFrame( in TEST() 522 VideoFrame::UpdateRect a = {0, 0, 100, 200}; in TEST() 523 VideoFrame::UpdateRect b = {0, 0, 100, 200}; in TEST() 524 VideoFrame::UpdateRect c = {1, 0, 100, 200}; in TEST() 525 VideoFrame::UpdateRect d = {0, 1, 100, 200}; in TEST() 532 VideoFrame::UpdateRect a = {0, 0, 0, 0}; in TEST() [all …]
|
/external/webrtc/test/scenario/ |
D | video_frame_matcher.h | 39 void OnCapturedFrame(const VideoFrame& frame, Timestamp at_time); 40 void OnDecodedFrame(const VideoFrame& frame, 79 class CapturedFrameTap : public rtc::VideoSinkInterface<VideoFrame> { 85 void OnFrame(const VideoFrame& frame) override; 95 : public rtc::VideoSinkInterface<VideoFrame>, 96 public rtc::VideoSourceInterface<VideoFrame> { 100 rtc::VideoSourceInterface<VideoFrame>* source); 105 void OnFrame(const VideoFrame& frame) override; 109 void AddOrUpdateSink(VideoSinkInterface<VideoFrame>* sink, 111 void RemoveSink(VideoSinkInterface<VideoFrame>* sink) override; [all …]
|
/external/webrtc/modules/video_coding/codecs/multiplex/test/ |
D | multiplex_adapter_unittest.cc | 85 std::unique_ptr<VideoFrame> CreateDataAugmentedInputFrame( in CreateDataAugmentedInputFrame() 86 VideoFrame* video_frame) { in CreateDataAugmentedInputFrame() 97 return std::make_unique<VideoFrame>( in CreateDataAugmentedInputFrame() 98 VideoFrame::Builder() in CreateDataAugmentedInputFrame() 107 std::unique_ptr<VideoFrame> CreateI420AInputFrame() { in CreateI420AInputFrame() 108 VideoFrame input_frame = NextInputFrame(); in CreateI420AInputFrame() 116 return std::make_unique<VideoFrame>(VideoFrame::Builder() in CreateI420AInputFrame() 124 std::unique_ptr<VideoFrame> CreateInputFrame(bool contains_alpha) { in CreateInputFrame() 125 std::unique_ptr<VideoFrame> video_frame; in CreateInputFrame() 129 VideoFrame next_frame = NextInputFrame(); in CreateInputFrame() [all …]
|
/external/webrtc/video/ |
D | video_analyzer.h | 36 public rtc::VideoSinkInterface<VideoFrame> { 60 void SetSource(rtc::VideoSourceInterface<VideoFrame>* video_source, 67 rtc::VideoSinkInterface<VideoFrame>* InputInterface(); 68 rtc::VideoSourceInterface<VideoFrame>* OutputInterface(); 74 void PreEncodeOnFrame(const VideoFrame& video_frame); 82 void OnFrame(const VideoFrame& video_frame) override; 97 FrameComparison(const VideoFrame& reference, 98 const VideoFrame& render, 112 absl::optional<VideoFrame> reference; 113 absl::optional<VideoFrame> render; [all …]
|
D | video_source_sink_controller_unittest.cc | 29 class MockVideoSinkWithVideoFrame : public rtc::VideoSinkInterface<VideoFrame> { 33 MOCK_METHOD(void, OnFrame, (const VideoFrame& frame), (override)); 38 : public rtc::VideoSourceInterface<VideoFrame> { 44 (rtc::VideoSinkInterface<VideoFrame>*, 49 (rtc::VideoSinkInterface<VideoFrame>*), 66 .WillOnce([](rtc::VideoSinkInterface<VideoFrame>* sink, in TEST() 91 .WillOnce([](rtc::VideoSinkInterface<VideoFrame>* sink, in TEST() 105 .WillOnce([](rtc::VideoSinkInterface<VideoFrame>* sink, in TEST() 121 .WillOnce([](rtc::VideoSinkInterface<VideoFrame>* sink, in TEST() 136 .WillOnce([](rtc::VideoSinkInterface<VideoFrame>* sink, in TEST()
|
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/ |
D | VideoFrameBufferTest.java | 76 private static VideoFrame.Buffer createBufferWithType( in createBufferWithType() 77 BufferType bufferType, VideoFrame.I420Buffer i420Buffer) { in createBufferWithType() 94 private VideoFrame.Buffer createBufferToTest(VideoFrame.I420Buffer i420Buffer) { in createBufferToTest() 101 public static VideoFrame.I420Buffer createTestI420Buffer() { in createTestI420Buffer() 136 public static VideoFrame.TextureBuffer createRgbTextureBuffer( in createRgbTextureBuffer() 137 EglBase.Context eglContext, VideoFrame.I420Buffer i420Buffer) { in createRgbTextureBuffer() 158 return new TextureBufferImpl(width, height, VideoFrame.TextureBuffer.Type.RGB, in createRgbTextureBuffer() 174 public static VideoFrame.TextureBuffer createOesTextureBuffer( 175 EglBase.Context eglContext, VideoFrame.I420Buffer i420Buffer) { 187 final VideoFrame.TextureBuffer oesBuffer = [all …]
|
D | FileVideoCapturerTest.java | 30 private final ArrayList<VideoFrame> frames = new ArrayList<VideoFrame>(); 45 public synchronized void onFrameCaptured(VideoFrame frame) { in onFrameCaptured() 53 public synchronized ArrayList<VideoFrame> getMinimumFramesBlocking(int minFrames) in getMinimumFramesBlocking() 58 return new ArrayList<VideoFrame>(frames); in getMinimumFramesBlocking() 89 final ArrayList<VideoFrame> frames = in testVideoCaptureFromFile() 98 final VideoFrame frame = frames.get(i); in testVideoCaptureFromFile() 99 final VideoFrame.Buffer buffer = frame.getBuffer(); in testVideoCaptureFromFile() 100 assertTrue(buffer instanceof VideoFrame.I420Buffer); in testVideoCaptureFromFile() 101 final VideoFrame.I420Buffer i420Buffer = (VideoFrame.I420Buffer) buffer; in testVideoCaptureFromFile()
|
D | HardwareVideoEncoderTest.java | 119 public void assertFrameEncoded(VideoFrame frame) { in assertFrameEncoded() 120 final VideoFrame.Buffer buffer = frame.getBuffer(); in assertFrameEncoded() 131 private static abstract class MockBufferBase implements VideoFrame.Buffer { 174 extends MockBufferBase implements VideoFrame.TextureBuffer { 183 public VideoFrame.TextureBuffer.Type getType() { in getType() 184 return VideoFrame.TextureBuffer.Type.OES; in getType() 198 public VideoFrame.I420Buffer toI420() { in toI420() 203 public VideoFrame.Buffer cropAndScale( in cropAndScale() 210 private static class MockI420Buffer extends MockBufferBase implements VideoFrame.I420Buffer { 249 public VideoFrame.I420Buffer toI420() { in toI420() [all …]
|
D | AndroidVideoDecoderInstrumentationTest.java | 72 private VideoFrame.I420Buffer[] TEST_FRAMES; 86 private BlockingQueue<VideoFrame> frameQueue = new LinkedBlockingQueue<>(); 89 public void onDecodedFrame(VideoFrame frame, Integer decodeTimeMs, Integer qp) { in onDecodedFrame() 94 public void assertFrameDecoded(EncodedImage testImage, VideoFrame.I420Buffer testBuffer) { in assertFrameDecoded() 95 VideoFrame decodedFrame = poll(); in assertFrameDecoded() 96 VideoFrame.Buffer decodedBuffer = decodedFrame.getBuffer(); in assertFrameDecoded() 105 public VideoFrame poll() { in poll() 107 VideoFrame frame = frameQueue.poll(DECODE_TIMEOUT_MS, TimeUnit.MILLISECONDS); in poll() 116 private static VideoFrame.I420Buffer[] generateTestFrames() { in generateTestFrames() 117 VideoFrame.I420Buffer[] result = new VideoFrame.I420Buffer[TEST_FRAME_COUNT]; in generateTestFrames() [all …]
|
D | VideoTrackTest.java | 64 public void onFrame(VideoFrame frame) {} in testRemovingNonExistantVideoSink() 80 public void onFrame(VideoFrame frame) { in testAddingSameVideoSinkMultipleTimes() 86 final VideoFrame videoFrame = new VideoFrame( in testAddingSameVideoSinkMultipleTimes() 101 final VideoFrame videoFrame = new VideoFrame( in testAddingAndRemovingVideoSink() 107 public void onFrame(VideoFrame frame) { in testAddingAndRemovingVideoSink()
|
/external/webrtc/test/ |
D | test_video_capturer.h | 26 class TestVideoCapturer : public rtc::VideoSourceInterface<VideoFrame> { 32 virtual VideoFrame Preprocess(const VideoFrame& frame) = 0; 37 void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink, 39 void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) override; 46 void OnFrame(const VideoFrame& frame); 51 VideoFrame MaybePreprocess(const VideoFrame& frame);
|
D | test_video_capturer.cc | 24 void TestVideoCapturer::OnFrame(const VideoFrame& original_frame) { in OnFrame() 30 VideoFrame frame = MaybePreprocess(original_frame); in OnFrame() 46 VideoFrame::Builder new_frame_builder = in OnFrame() 47 VideoFrame::Builder() in OnFrame() 53 VideoFrame::UpdateRect new_rect = frame.update_rect().ScaleWithFrame( in OnFrame() 71 rtc::VideoSinkInterface<VideoFrame>* sink, in AddOrUpdateSink() 77 void TestVideoCapturer::RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) { in RemoveSink() 86 VideoFrame TestVideoCapturer::MaybePreprocess(const VideoFrame& frame) { in MaybePreprocess()
|
D | frame_forwarder.h | 24 class FrameForwarder : public rtc::VideoSourceInterface<VideoFrame> { 29 virtual void IncomingCapturedFrame(const VideoFrame& video_frame) 37 void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink, 40 void AddOrUpdateSinkLocked(rtc::VideoSinkInterface<VideoFrame>* sink, 43 void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) 47 rtc::VideoSinkInterface<VideoFrame>* sink_ RTC_GUARDED_BY(mutex_);
|
/external/webrtc/media/base/ |
D | video_source_base.h | 24 class VideoSourceBase : public VideoSourceInterface<webrtc::VideoFrame> { 28 void AddOrUpdateSink(VideoSinkInterface<webrtc::VideoFrame>* sink, 30 void RemoveSink(VideoSinkInterface<webrtc::VideoFrame>* sink) override; 34 SinkPair(VideoSinkInterface<webrtc::VideoFrame>* sink, VideoSinkWants wants) in SinkPair() 36 VideoSinkInterface<webrtc::VideoFrame>* sink; 39 SinkPair* FindSinkPair(const VideoSinkInterface<webrtc::VideoFrame>* sink);
|
/external/webrtc/test/pc/e2e/analyzer/video/ |
D | video_quality_analyzer_injection_helper.cc | 29 class VideoWriter final : public rtc::VideoSinkInterface<VideoFrame> { 35 void OnFrame(const VideoFrame& frame) override { in OnFrame() 51 std::vector<std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>>> sinks) in AnalyzingFramePreprocessor() 58 VideoFrame Preprocess(const VideoFrame& source_frame) override { in Preprocess() 60 VideoFrame frame = source_frame; in Preprocess() 75 const std::vector<std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>>> 121 std::vector<std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>>> sinks; in CreateFramePreprocessor() 141 std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>> 186 const VideoFrame& frame) { in OnFrame() 195 VideoFrame frame_copy = frame; in OnFrame() [all …]
|
D | default_video_quality_analyzer_test.cc | 47 VideoFrame NextFrame(test::FrameGeneratorInterface* frame_generator, in NextFrame() 51 return VideoFrame::Builder() in NextFrame() 58 EncodedImage FakeEncode(const VideoFrame& frame) { in FakeEncode() 72 VideoFrame DeepCopy(const VideoFrame& frame) { in DeepCopy() 73 VideoFrame copy = frame; in DeepCopy() 110 std::map<uint16_t, VideoFrame> captured_frames; in TEST() 113 VideoFrame frame = NextFrame(frame_generator.get(), i); in TEST() 124 VideoFrame received_frame = DeepCopy(captured_frames.at(frame_id)); in TEST() 161 std::map<uint16_t, VideoFrame> captured_frames; in TEST() 165 VideoFrame frame = NextFrame(frame_generator.get(), i); in TEST() [all …]
|
/external/v4l2_codec2/tests/c2_e2e_test/jni/ |
D | video_frame.cpp | 50 std::unique_ptr<VideoFrame> VideoFrame::Create(const uint8_t* data, size_t data_size, in Create() 82 return std::unique_ptr<VideoFrame>( in Create() 83 new VideoFrame(data, coded_size, visible_size, color_format)); in Create() 86 VideoFrame::VideoFrame(const uint8_t* data, const Size& coded_size, const Size& visible_size, in VideoFrame() function in android::VideoFrame 106 bool VideoFrame::IsFlexibleFormat() const { in IsFlexibleFormat() 110 void VideoFrame::CopyAndConvertToI420Frame(int32_t curr_format) { in CopyAndConvertToI420Frame() 150 bool VideoFrame::MatchHalFormatByGoldenMD5(const std::string& golden) { in MatchHalFormatByGoldenMD5() 173 std::string VideoFrame::ComputeMD5FromFrame() const { in ComputeMD5FromFrame() 192 bool VideoFrame::VerifyMD5(const std::string& golden) { in VerifyMD5() 210 bool VideoFrame::WriteFrame(std::ofstream* output_file) const { in WriteFrame()
|
/external/webrtc/common_video/libyuv/include/ |
D | webrtc_libyuv.h | 68 int PrintVideoFrame(const VideoFrame& frame, FILE* file); 82 int ExtractBuffer(const VideoFrame& input_frame, size_t size, uint8_t* buffer); 91 int ConvertFromI420(const VideoFrame& src_frame, 106 double I420PSNR(const VideoFrame* ref_frame, const VideoFrame* test_frame); 111 double I420SSIM(const VideoFrame* ref_frame, const VideoFrame* test_frame);
|
/external/webrtc/sdk/android/api/org/webrtc/ |
D | VideoProcessor.java | 47 default void onFrameCaptured(VideoFrame frame, FrameAdaptationParameters parameters) { in onFrameCaptured() 48 VideoFrame adaptedFrame = applyFrameAdaptationParameters(frame, parameters); in onFrameCaptured() 65 public static @Nullable VideoFrame applyFrameAdaptationParameters( in applyFrameAdaptationParameters() 66 VideoFrame frame, FrameAdaptationParameters parameters) { in applyFrameAdaptationParameters() 71 final VideoFrame.Buffer adaptedBuffer = in applyFrameAdaptationParameters() 74 return new VideoFrame(adaptedBuffer, frame.getRotation(), parameters.timestampNs); in applyFrameAdaptationParameters()
|
D | VideoFrameDrawer.java | 32 public static void drawTexture(RendererCommon.GlDrawer drawer, VideoFrame.TextureBuffer buffer, in drawTexture() 112 public int[] uploadFromBuffer(VideoFrame.I420Buffer buffer) { in uploadFromBuffer() 175 @Nullable private VideoFrame lastI420Frame; 178 public void drawFrame(VideoFrame frame, RendererCommon.GlDrawer drawer) { in drawFrame() 183 VideoFrame frame, RendererCommon.GlDrawer drawer, Matrix additionalRenderMatrix) { in drawFrame() 188 public void drawFrame(VideoFrame frame, RendererCommon.GlDrawer drawer, in drawFrame() 199 final boolean isTextureFrame = frame.getBuffer() instanceof VideoFrame.TextureBuffer; in drawFrame() 213 drawTexture(drawer, (VideoFrame.TextureBuffer) frame.getBuffer(), renderMatrix, renderWidth, in drawFrame() 220 final VideoFrame.I420Buffer i420Buffer = frame.getBuffer().toI420(); in drawFrame() 231 public VideoFrame.Buffer prepareBufferForViewportSize( in prepareBufferForViewportSize() [all …]
|
/external/webrtc/sdk/android/native_unittests/video/ |
D | video_source_unittest.cc | 22 class TestVideoSink : public rtc::VideoSinkInterface<VideoFrame> { 24 void OnFrame(const VideoFrame& frame) { frames_.push_back(frame); } in OnFrame() 26 std::vector<VideoFrame> GetFrames() { in GetFrames() 27 std::vector<VideoFrame> temp = frames_; in GetFrames() 33 std::vector<VideoFrame> frames_; 76 std::vector<VideoFrame> frames = test_video_sink.GetFrames(); in TEST() 78 webrtc::VideoFrame frame = frames[0]; in TEST() 109 std::vector<VideoFrame> frames = test_video_sink.GetFrames(); in TEST() 111 webrtc::VideoFrame frame = frames[0]; in TEST()
|
/external/libwebm/testing/ |
D | video_frame_tests.cc | 13 const libwebm::VideoFrame::Codec kCodec = libwebm::VideoFrame::kVP8; 19 libwebm::VideoFrame frame; in TEST() 25 EXPECT_EQ(libwebm::VideoFrame::kVP9, frame.codec()); in TEST() 29 libwebm::VideoFrame frame; in TEST() 52 libwebm::VideoFrame keyframe(kKeyframe, kPts, kCodec); in TEST() 68 EXPECT_TRUE(keyframe.Init(kSize, kPts + 1, libwebm::VideoFrame::kVP9)); in TEST()
|