Home
last modified time | relevance | path

Searched refs:videoFrame (Results 1 – 22 of 22) 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.mm59 VideoFrame videoFrame =
66 videoFrame.set_timestamp(frame.timeStamp);
68 callback->Decoded(videoFrame);
/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/sdk/objc/components/renderer/metal/
DRTCMTLVideoView.m37 @property(atomic) RTC_OBJC_TYPE(RTCVideoFrame) * videoFrame; property
49 @synthesize videoFrame = _videoFrame;
144 RTC_OBJC_TYPE(RTCVideoFrame) *videoFrame = self.videoFrame;
146 if (!videoFrame || videoFrame.timeStampNs == self.lastFrameTimeNs) {
155 if ([videoFrame.buffer isKindOfClass:[RTC_OBJC_TYPE(RTCCVPixelBuffer) class]]) {
156 RTC_OBJC_TYPE(RTCCVPixelBuffer) *buffer = (RTC_OBJC_TYPE(RTCCVPixelBuffer) *)videoFrame.buffer;
193 [renderer drawFrame:videoFrame];
194 self.lastFrameTimeNs = videoFrame.timeStampNs;
220 return self.videoFrame.rotation;
230 BOOL sizeIsLandscape = (self.videoFrame.rotation == RTCVideoRotation_0) ||
[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/android/src/java/org/webrtc/
DHardwareVideoEncoder.java331 public VideoCodecStatus encode(VideoFrame videoFrame, EncodeInfo encodeInfo) { in encode() argument
337 final VideoFrame.Buffer videoFrameBuffer = videoFrame.getBuffer(); in encode()
341 final int frameWidth = videoFrame.getBuffer().getWidth(); in encode()
342 final int frameHeight = videoFrame.getBuffer().getHeight(); in encode()
364 if (requestedKeyFrame || shouldForceKeyFrame(videoFrame.getTimestampNs())) { in encode()
365 requestKeyFrame(videoFrame.getTimestampNs()); in encode()
372 .setCaptureTimeNs(videoFrame.getTimestampNs()) in encode()
374 .setEncodedWidth(videoFrame.getBuffer().getWidth()) in encode()
375 .setEncodedHeight(videoFrame.getBuffer().getHeight()) in encode()
376 .setRotation(videoFrame.getRotation()); in encode()
[all …]
/external/webrtc/modules/video_capture/test/
Dvideo_capture_unittest.cc76 void OnFrame(const webrtc::VideoFrame& videoFrame) override { in OnFrame() argument
78 int height = videoFrame.height(); in OnFrame()
79 int width = videoFrame.width(); in OnFrame()
88 EXPECT_EQ(rotate_frame_, videoFrame.rotation()); in OnFrame()
91 EXPECT_TRUE(videoFrame.render_time_ms() >= rtc::TimeMillis() - 30 && in OnFrame()
92 videoFrame.render_time_ms() <= rtc::TimeMillis()); in OnFrame()
94 if ((videoFrame.render_time_ms() > in OnFrame()
97 (videoFrame.render_time_ms() < in OnFrame()
104 last_render_time_ms_ = videoFrame.render_time_ms(); in OnFrame()
105 last_frame_ = videoFrame.video_frame_buffer(); in OnFrame()
/external/webrtc/sdk/android/tests/src/org/webrtc/
DHardwareVideoEncoderTest.java230 EncodedImage videoFrame = videoFrameCaptor.getValue(); in testDeliversOutputData() local
231 assertThat(videoFrame).isNotNull(); in testDeliversOutputData()
232 assertThat(videoFrame.encodedWidth).isEqualTo(TEST_ENCODER_SETTINGS.width); in testDeliversOutputData()
233 assertThat(videoFrame.encodedHeight).isEqualTo(TEST_ENCODER_SETTINGS.height); in testDeliversOutputData()
234 assertThat(videoFrame.rotation).isEqualTo(0); in testDeliversOutputData()
235 assertThat(videoFrame.captureTimeNs).isEqualTo(42); in testDeliversOutputData()
236 assertThat(videoFrame.completeFrame).isTrue(); in testDeliversOutputData()
237 assertThat(videoFrame.frameType).isEqualTo(FrameType.VideoFrameKey); in testDeliversOutputData()
239 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/android/instrumentationtests/src/org/webrtc/
DVideoTrackTest.java86 final VideoFrame videoFrame = new VideoFrame( in testAddingSameVideoSinkMultipleTimes() local
92 videoSource.getCapturerObserver().onFrameCaptured(videoFrame); in testAddingSameVideoSinkMultipleTimes()
101 final VideoFrame videoFrame = new VideoFrame( in testAddingAndRemovingVideoSink() local
113 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/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.m39 RTC_OBJC_TYPE(RTCVideoFrame) *videoFrame =
43 [self.delegate capturer:self didCaptureVideoFrame:videoFrame];
/external/webrtc/modules/video_coding/
Dgeneric_decoder_unittest.cc31 int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT in FrameToRender() argument
37 last_frame_ = videoFrame; in FrameToRender()
/external/webrtc/modules/video_capture/
Dvideo_capture_impl.cc117 int32_t VideoCaptureImpl::IncomingFrame(uint8_t* videoFrame, in IncomingFrame() argument
180 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.h54 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];