Home
last modified time | relevance | path

Searched refs:VideoFrame (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/external/webrtc/api/video/
Dvideo_frame.cc21 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 …]
Dvideo_frame.h30 class RTC_EXPORT VideoFrame {
105 VideoFrame build();
133 VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer,
136 VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer,
141 ~VideoFrame();
144 VideoFrame(const VideoFrame&);
145 VideoFrame(VideoFrame&&);
146 VideoFrame& operator=(const VideoFrame&);
147 VideoFrame& operator=(VideoFrame&&);
237 void set_update_rect(const VideoFrame::UpdateRect& update_rect) { in set_update_rect()
[all …]
/external/v4l2_codec2/components/
DVideoFrame.cpp16 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/
Dvideo_frame_unittest.cc202 VideoFrame frame = in TEST()
203 VideoFrame::Builder() in TEST()
239 VideoFrame frame1 = VideoFrame::Builder() in TEST()
249 VideoFrame frame2(frame1); in TEST()
277 VideoFrame frame = test::FakeNativeBuffer::CreateFrame( in TEST()
466 VideoFrame::UpdateRect a = {0, 0, 100, 200}; in TEST()
467 VideoFrame::UpdateRect b = {0, 0, 100, 200}; in TEST()
468 VideoFrame::UpdateRect c = {1, 0, 100, 200}; in TEST()
469 VideoFrame::UpdateRect d = {0, 1, 100, 200}; in TEST()
476 VideoFrame::UpdateRect a = {0, 0, 0, 0}; in TEST()
[all …]
/external/webrtc/media/base/
Dvideo_source_base.h28 class VideoSourceBase : public VideoSourceInterface<webrtc::VideoFrame> {
32 void AddOrUpdateSink(VideoSinkInterface<webrtc::VideoFrame>* sink,
34 void RemoveSink(VideoSinkInterface<webrtc::VideoFrame>* sink) override;
38 SinkPair(VideoSinkInterface<webrtc::VideoFrame>* sink, VideoSinkWants wants) in SinkPair()
40 VideoSinkInterface<webrtc::VideoFrame>* sink;
43 SinkPair* FindSinkPair(const VideoSinkInterface<webrtc::VideoFrame>* sink);
53 class VideoSourceBaseGuarded : public VideoSourceInterface<webrtc::VideoFrame> {
58 void AddOrUpdateSink(VideoSinkInterface<webrtc::VideoFrame>* sink,
60 void RemoveSink(VideoSinkInterface<webrtc::VideoFrame>* sink) override;
64 SinkPair(VideoSinkInterface<webrtc::VideoFrame>* sink, VideoSinkWants wants) in SinkPair()
[all …]
/external/webrtc/modules/video_coding/codecs/multiplex/test/
Dmultiplex_adapter_unittest.cc83 std::unique_ptr<VideoFrame> CreateDataAugmentedInputFrame( in CreateDataAugmentedInputFrame()
84 VideoFrame* video_frame) { in CreateDataAugmentedInputFrame()
95 return std::make_unique<VideoFrame>( in CreateDataAugmentedInputFrame()
96 VideoFrame::Builder() in CreateDataAugmentedInputFrame()
105 std::unique_ptr<VideoFrame> CreateI420AInputFrame() { in CreateI420AInputFrame()
106 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/sdk/android/instrumentationtests/src/org/webrtc/
DVideoFrameBufferTest.java34 import org.webrtc.VideoFrame;
70 private static VideoFrame.Buffer createBufferWithType( in createBufferWithType()
71 BufferType bufferType, VideoFrame.I420Buffer i420Buffer) { in createBufferWithType()
72 VideoFrame.Buffer buffer; in createBufferWithType()
110 private VideoFrame.Buffer createBufferToTest(VideoFrame.I420Buffer i420Buffer) { in createBufferToTest()
117 public static VideoFrame.I420Buffer createTestI420Buffer() { in createTestI420Buffer()
152 public static VideoFrame.TextureBuffer createRgbTextureBuffer( in createRgbTextureBuffer()
153 EglBase.Context eglContext, VideoFrame.I420Buffer i420Buffer) { in createRgbTextureBuffer()
174 return new TextureBufferImpl(width, height, VideoFrame.TextureBuffer.Type.RGB, in createRgbTextureBuffer()
190 public static VideoFrame.TextureBuffer createOesTextureBuffer(
[all …]
DFileVideoCapturerTest.java27 private final ArrayList<VideoFrame> frames = new ArrayList<VideoFrame>();
42 public synchronized void onFrameCaptured(VideoFrame frame) { in onFrameCaptured()
50 public synchronized ArrayList<VideoFrame> getMinimumFramesBlocking(int minFrames) in getMinimumFramesBlocking()
55 return new ArrayList<VideoFrame>(frames); in getMinimumFramesBlocking()
86 final ArrayList<VideoFrame> frames = in testVideoCaptureFromFile()
95 final VideoFrame frame = frames.get(i); in testVideoCaptureFromFile()
96 final VideoFrame.Buffer buffer = frame.getBuffer(); in testVideoCaptureFromFile()
97 assertTrue(buffer instanceof VideoFrame.I420Buffer); in testVideoCaptureFromFile()
98 final VideoFrame.I420Buffer i420Buffer = (VideoFrame.I420Buffer) buffer; in testVideoCaptureFromFile()
DHardwareVideoEncoderTest.java110 public void assertFrameEncoded(VideoFrame frame) { in assertFrameEncoded()
111 final VideoFrame.Buffer buffer = frame.getBuffer(); in assertFrameEncoded()
122 private static abstract class MockBufferBase implements VideoFrame.Buffer {
165 extends MockBufferBase implements VideoFrame.TextureBuffer {
174 public VideoFrame.TextureBuffer.Type getType() { in getType()
175 return VideoFrame.TextureBuffer.Type.OES; in getType()
189 public VideoFrame.I420Buffer toI420() { in toI420()
194 public VideoFrame.Buffer cropAndScale( in cropAndScale()
201 private static class MockI420Buffer extends MockBufferBase implements VideoFrame.I420Buffer {
240 public VideoFrame.I420Buffer toI420() { in toI420()
[all …]
DAndroidVideoDecoderInstrumentationTest.java61 private VideoFrame.I420Buffer[] TEST_FRAMES;
78 private BlockingQueue<VideoFrame> frameQueue = new LinkedBlockingQueue<>();
81 public void onDecodedFrame(VideoFrame frame, Integer decodeTimeMs, Integer qp) { in onDecodedFrame()
86 public void assertFrameDecoded(EncodedImage testImage, VideoFrame.I420Buffer testBuffer) { in assertFrameDecoded()
87 VideoFrame decodedFrame = poll(); in assertFrameDecoded()
88 VideoFrame.Buffer decodedBuffer = decodedFrame.getBuffer(); in assertFrameDecoded()
97 public VideoFrame poll() { in poll()
99 VideoFrame frame = frameQueue.poll(DECODE_TIMEOUT_MS, TimeUnit.MILLISECONDS); in poll()
108 private static VideoFrame.I420Buffer[] generateTestFrames() { in generateTestFrames()
109 VideoFrame.I420Buffer[] result = new VideoFrame.I420Buffer[TEST_FRAME_COUNT]; in generateTestFrames()
[all …]
DVideoTrackTest.java61 public void onFrame(VideoFrame frame) {} in testRemovingNonExistantVideoSink()
77 public void onFrame(VideoFrame frame) { in testAddingSameVideoSinkMultipleTimes()
83 final VideoFrame videoFrame = new VideoFrame( in testAddingSameVideoSinkMultipleTimes()
98 final VideoFrame videoFrame = new VideoFrame( in testAddingAndRemovingVideoSink()
104 public void onFrame(VideoFrame frame) { in testAddingAndRemovingVideoSink()
/external/webrtc/test/scenario/
Dvideo_frame_matcher.h39 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/video/
Dvideo_analyzer.h38 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 …]
Dvideo_source_sink_controller_unittest.cc30 class MockVideoSinkWithVideoFrame : public rtc::VideoSinkInterface<VideoFrame> {
34 MOCK_METHOD(void, OnFrame, (const VideoFrame& frame), (override));
39 : public rtc::VideoSourceInterface<VideoFrame> {
45 (rtc::VideoSinkInterface<VideoFrame>*,
50 (rtc::VideoSinkInterface<VideoFrame>*),
69 .WillOnce([](rtc::VideoSinkInterface<VideoFrame>* sink, in TEST()
95 .WillOnce([](rtc::VideoSinkInterface<VideoFrame>* sink, in TEST()
109 .WillOnce([](rtc::VideoSinkInterface<VideoFrame>* sink, in TEST()
125 .WillOnce([](rtc::VideoSinkInterface<VideoFrame>* sink, in TEST()
140 .WillOnce([](rtc::VideoSinkInterface<VideoFrame>* sink, in TEST()
[all …]
/external/webrtc/test/
Dtest_video_capturer.h26 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;
49 void OnFrame(const VideoFrame& frame);
54 VideoFrame MaybePreprocess(const VideoFrame& frame);
Dtest_video_capturer.cc35 void TestVideoCapturer::OnFrame(const VideoFrame& original_frame) { in OnFrame()
41 VideoFrame frame = MaybePreprocess(original_frame); in OnFrame()
57 VideoFrame::Builder new_frame_builder = in OnFrame()
58 VideoFrame::Builder() in OnFrame()
64 VideoFrame::UpdateRect new_rect = frame.update_rect().ScaleWithFrame( in OnFrame()
82 rtc::VideoSinkInterface<VideoFrame>* sink, in AddOrUpdateSink()
88 void TestVideoCapturer::RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) { in RemoveSink()
97 VideoFrame TestVideoCapturer::MaybePreprocess(const VideoFrame& frame) { in MaybePreprocess()
Dframe_forwarder.h24 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/test/testsupport/
Dfixed_fps_video_frame_writer_adapter_test.cc39 bool WriteFrame(const webrtc::VideoFrame& frame) override { in WriteFrame()
47 std::vector<VideoFrame> received_frames() const { in received_frames()
54 std::vector<VideoFrame> received_frames_ RTC_GUARDED_BY(mutex_);
57 VideoFrame EmptyFrameWithId(uint16_t frame_id) { in EmptyFrameWithId()
58 return VideoFrame::Builder() in EmptyFrameWithId()
64 std::vector<uint16_t> FrameIds(const std::vector<VideoFrame>& frames) { in FrameIds()
66 for (const VideoFrame& frame : frames) { in FrameIds()
96 std::vector<VideoFrame> received_frames = in TEST()
130 std::vector<VideoFrame> received_frames = in TEST()
149 std::vector<VideoFrame> received_frames = in TEST()
[all …]
/external/v4l2_codec2/tests/c2_e2e_test/jni/
Dvideo_frame.cpp50 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/sdk/android/api/org/webrtc/
DVideoProcessor.java47 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()
DVideoFrameDrawer.java32 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/
Dvideo_source_unittest.cc22 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/webrtc/modules/video_coding/
Dgeneric_decoder_unittest.cc35 int32_t FrameToRender(VideoFrame& frame, in FrameToRender()
43 absl::optional<VideoFrame> PopLastFrame() { in PopLastFrame()
51 rtc::ArrayView<const VideoFrame> GetAllFrames() const { return frames_; } in GetAllFrames()
60 std::vector<VideoFrame> frames_;
100 absl::optional<VideoFrame> decoded_frame = user_callback_.PopLastFrame(); in TEST_F()
136 absl::optional<VideoFrame> decoded_frame = user_callback_.PopLastFrame(); in TEST_F()
145 absl::optional<VideoFrame> decoded_frame = user_callback_.PopLastFrame(); in TEST_F()
161 absl::optional<VideoFrame> decoded_frame = user_callback_.PopLastFrame(); in TEST_F()
172 absl::optional<VideoFrame> decoded_frame = user_callback_.PopLastFrame(); in TEST_F()
184 absl::optional<VideoFrame> decoded_frame = user_callback_.PopLastFrame(); in TEST_F()
/external/webrtc/test/pc/e2e/analyzer/video/
Dvideo_quality_analyzer_injection_helper.cc51 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>>>
120 std::vector<std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>>> sinks; in CreateFramePreprocessor()
144 std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>>
202 const VideoFrame& frame) { in OnFrame()
209 VideoFrame frame_copy = frame; in OnFrame()
214 if (frame.id() != VideoFrame::kNotSetId) { in OnFrame()
216 std::vector<std::unique_ptr<rtc::VideoSinkInterface<VideoFrame>>>* sinks = in OnFrame()
[all …]
/external/libwebm/testing/
Dvideo_frame_tests.cc13 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()

12345678910>>...15