Home
last modified time | relevance | path

Searched refs:videoFrame (Results 1 – 21 of 21) sorted by relevance

/external/webrtc/sdk/objc/native/src/
Dobjc_video_renderer.mm25 RTC_OBJC_TYPE(RTCVideoFrame)* videoFrame = ToObjCVideoFrame(nativeVideoFrame);
27 CGSize current_size = (videoFrame.rotation % 180 == 0) ?
28 CGSizeMake(videoFrame.width, videoFrame.height) :
29 CGSizeMake(videoFrame.height, videoFrame.width);
35 [renderer_ renderFrame:videoFrame];
Dobjc_video_frame.mm19 RTC_OBJC_TYPE(RTCVideoFrame) *videoFrame = [[RTC_OBJC_TYPE(RTCVideoFrame) alloc]
23 videoFrame.timeStamp = frame.timestamp();
25 return videoFrame;
Dobjc_video_decoder_factory.mm60 VideoFrame videoFrame =
67 videoFrame.set_timestamp(frame.timeStamp);
69 callback->Decoded(videoFrame);
/external/webrtc/sdk/objc/components/renderer/metal/
DRTCMTLVideoView.m37 @property(atomic) RTC_OBJC_TYPE(RTCVideoFrame) * videoFrame; property
49 @synthesize videoFrame = _videoFrame;
140 RTC_OBJC_TYPE(RTCVideoFrame) *videoFrame = self.videoFrame;
142 if (!videoFrame || videoFrame.width <= 0 || videoFrame.height <= 0 ||
143 videoFrame.timeStampNs == self.lastFrameTimeNs) {
152 if ([videoFrame.buffer isKindOfClass:[RTC_OBJC_TYPE(RTCCVPixelBuffer) class]]) {
153 RTC_OBJC_TYPE(RTCCVPixelBuffer) *buffer = (RTC_OBJC_TYPE(RTCCVPixelBuffer) *)videoFrame.buffer;
190 [renderer drawFrame:videoFrame];
191 self.lastFrameTimeNs = videoFrame.timeStampNs;
217 return self.videoFrame.rotation;
[all …]
DRTCMTLNSVideoView.m23 @property(atomic, strong) RTC_OBJC_TYPE(RTCVideoFrame) * videoFrame; property
33 @synthesize videoFrame = _videoFrame;
94 if (self.videoFrame == nil) {
98 [_renderer drawFrame:self.videoFrame];
119 self.videoFrame = [frame newI420VideoFrame];
/external/webrtc/sdk/objc/api/
DRTCVideoRendererAdapter.mm29 RTC_OBJC_TYPE(RTCVideoFrame)* videoFrame = NativeToObjCVideoFrame(nativeVideoFrame);
31 CGSize current_size = (videoFrame.rotation % 180 == 0)
32 ? CGSizeMake(videoFrame.width, videoFrame.height)
33 : CGSizeMake(videoFrame.height, videoFrame.width);
39 [adapter_.videoRenderer renderFrame:videoFrame];
/external/webrtc/modules/video_capture/test/
Dvideo_capture_unittest.cc75 void OnFrame(const webrtc::VideoFrame& videoFrame) override { in OnFrame() argument
77 int height = videoFrame.height(); in OnFrame()
78 int width = videoFrame.width(); in OnFrame()
87 EXPECT_EQ(rotate_frame_, videoFrame.rotation()); in OnFrame()
90 EXPECT_TRUE(videoFrame.render_time_ms() >= rtc::TimeMillis() - 30 && in OnFrame()
91 videoFrame.render_time_ms() <= rtc::TimeMillis()); in OnFrame()
93 if ((videoFrame.render_time_ms() > in OnFrame()
96 (videoFrame.render_time_ms() < in OnFrame()
103 last_render_time_ms_ = videoFrame.render_time_ms(); in OnFrame()
104 last_frame_ = videoFrame.video_frame_buffer(); in OnFrame()
/external/webrtc/sdk/android/src/java/org/webrtc/
DHardwareVideoEncoder.java345 public VideoCodecStatus encode(VideoFrame videoFrame, EncodeInfo encodeInfo) { in encode() argument
351 final VideoFrame.Buffer videoFrameBuffer = videoFrame.getBuffer(); in encode()
355 final int frameWidth = videoFrame.getBuffer().getWidth(); in encode()
356 final int frameHeight = videoFrame.getBuffer().getHeight(); in encode()
378 if (requestedKeyFrame || shouldForceKeyFrame(videoFrame.getTimestampNs())) { in encode()
379 requestKeyFrame(videoFrame.getTimestampNs()); in encode()
386 .setCaptureTimeNs(videoFrame.getTimestampNs()) in encode()
387 .setEncodedWidth(videoFrame.getBuffer().getWidth()) in encode()
388 .setEncodedHeight(videoFrame.getBuffer().getHeight()) in encode()
389 .setRotation(videoFrame.getRotation()); in encode()
[all …]
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DVideoTrackTest.java83 final VideoFrame videoFrame = new VideoFrame( in testAddingSameVideoSinkMultipleTimes() local
89 videoSource.getCapturerObserver().onFrameCaptured(videoFrame); in testAddingSameVideoSinkMultipleTimes()
98 final VideoFrame videoFrame = new VideoFrame( in testAddingAndRemovingVideoSink() local
110 videoSource.getCapturerObserver().onFrameCaptured(videoFrame); in testAddingAndRemovingVideoSink()
DCameraVideoCapturerTestFixtures.java99 private @Nullable VideoFrame videoFrame; field in CameraVideoCapturerTestFixtures.FakeCapturerObserver
124 if (videoFrame != null) { in onFrameCaptured()
125 videoFrame.release(); in onFrameCaptured()
127 videoFrame = frame; in onFrameCaptured()
128 videoFrame.retain(); in onFrameCaptured()
129 timestamps.add(videoFrame.getTimestampNs()); in onFrameCaptured()
157 return videoFrame.getBuffer().getWidth(); in frameWidth()
163 return videoFrame.getBuffer().getHeight(); in frameHeight()
169 if (videoFrame != null) { in releaseFrame()
170 videoFrame.release(); in releaseFrame()
[all …]
/external/webrtc/sdk/android/tests/src/org/webrtc/
DHardwareVideoEncoderTest.java244 EncodedImage videoFrame = videoFrameCaptor.getValue(); in testDeliversOutputData() local
245 assertThat(videoFrame).isNotNull(); in testDeliversOutputData()
246 assertThat(videoFrame.encodedWidth).isEqualTo(TEST_ENCODER_SETTINGS.width); in testDeliversOutputData()
247 assertThat(videoFrame.encodedHeight).isEqualTo(TEST_ENCODER_SETTINGS.height); in testDeliversOutputData()
248 assertThat(videoFrame.rotation).isEqualTo(0); in testDeliversOutputData()
249 assertThat(videoFrame.captureTimeNs).isEqualTo(42); in testDeliversOutputData()
250 assertThat(videoFrame.frameType).isEqualTo(FrameType.VideoFrameKey); in testDeliversOutputData()
252 outputData, videoFrame.buffer, /* offset= */ 0, videoFrame.buffer.capacity()); in testDeliversOutputData()
DAndroidVideoDecoderTest.java311 VideoFrame videoFrame = fakeDecoderCallback.decodedFrames.get(0); in testDeliversOutputByteBuffers() local
312 assertThat(videoFrame).isNotNull(); in testDeliversOutputByteBuffers()
313 assertThat(videoFrame.getRotatedWidth()).isEqualTo(TEST_DECODER_SETTINGS.width); in testDeliversOutputByteBuffers()
314 assertThat(videoFrame.getRotatedHeight()).isEqualTo(TEST_DECODER_SETTINGS.height); in testDeliversOutputByteBuffers()
315 assertThat(videoFrame.getRotation()).isEqualTo(0); in testDeliversOutputByteBuffers()
316 I420Buffer deliveredBuffer = videoFrame.getBuffer().toI420(); in testDeliversOutputByteBuffers()
398 VideoFrame videoFrame = fakeDecoderCallback.decodedFrames.get(0); in testDeliversRenderedBuffers() local
399 assertThat(videoFrame).isNotNull(); in testDeliversRenderedBuffers()
400 assertThat(videoFrame.getBuffer()).isEqualTo(outputTextureBuffer); in testDeliversRenderedBuffers()
/external/webrtc/sdk/objc/components/renderer/opengl/
DRTCEAGLVideoView.m38 // `videoFrame` is set when we receive a frame from a worker thread and is read
40 @property(atomic, strong) RTC_OBJC_TYPE(RTCVideoFrame) * videoFrame; property
59 @synthesize videoFrame = _videoFrame;
187 RTC_OBJC_TYPE(RTCVideoFrame) *frame = self.videoFrame;
210 _lastDrawnFrameTimeStampNs = self.videoFrame.timeStampNs;
224 _lastDrawnFrameTimeStampNs = self.videoFrame.timeStampNs;
240 self.videoFrame = frame;
248 if (!_isDirty && _lastDrawnFrameTimeStampNs == self.videoFrame.timeStampNs) {
272 self.videoFrame = nil;
DRTCNSGLVideoView.m28 // `videoFrame` is set when we receive a frame from a worker thread and is read
31 videoFrame;
56 @synthesize videoFrame = _videoFrame;
121 self.videoFrame = frame;
127 RTC_OBJC_TYPE(RTCVideoFrame) *frame = self.videoFrame;
/external/webrtc/sdk/android/api/org/webrtc/
DFileVideoCapturer.java166 VideoFrame videoFrame = videoReader.getNextFrame(); in tick() local
167 capturerObserver.onFrameCaptured(videoFrame); in tick()
168 videoFrame.release(); in tick()
/external/webrtc/examples/objc/AppRTCMobile/
DARDExternalSampleCapturer.m45 RTC_OBJC_TYPE(RTCVideoFrame) *videoFrame =
49 [self.delegate capturer:self didCaptureVideoFrame:videoFrame];
/external/webrtc/modules/video_capture/
Dvideo_capture_impl.cc116 int32_t VideoCaptureImpl::IncomingFrame(uint8_t* videoFrame, in IncomingFrame() argument
177 videoFrame, videoFrameLength, buffer.get()->MutableDataY(), in IncomingFrame()
Dvideo_capture_impl.h65 int32_t IncomingFrame(uint8_t* videoFrame,
/external/webrtc/modules/video_coding/include/
Dvideo_coding_defines.h53 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT
/external/webrtc/sdk/objc/components/capturer/
DRTCFileVideoCapturer.m190 RTC_OBJC_TYPE(RTCVideoFrame) *videoFrame =
200 [self.delegate capturer:self didCaptureVideoFrame:videoFrame];
DRTCCameraVideoCapturer.m295 RTC_OBJC_TYPE(RTCVideoFrame) *videoFrame =
299 [self.delegate capturer:self didCaptureVideoFrame:videoFrame];