Home
last modified time | relevance | path

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

123

/external/chromium_org/third_party/webrtc/common_video/
Di420_video_frame.cc65 int I420VideoFrame::CopyFrame(const I420VideoFrame& videoFrame) { in CopyFrame() argument
66 int ret = CreateFrame(videoFrame.allocated_size(kYPlane), in CopyFrame()
67 videoFrame.buffer(kYPlane), in CopyFrame()
68 videoFrame.allocated_size(kUPlane), in CopyFrame()
69 videoFrame.buffer(kUPlane), in CopyFrame()
70 videoFrame.allocated_size(kVPlane), in CopyFrame()
71 videoFrame.buffer(kVPlane), in CopyFrame()
72 videoFrame.width_, videoFrame.height_, in CopyFrame()
73 videoFrame.stride(kYPlane), videoFrame.stride(kUPlane), in CopyFrame()
74 videoFrame.stride(kVPlane)); in CopyFrame()
[all …]
Dtexture_video_frame.cc55 int TextureVideoFrame::CopyFrame(const I420VideoFrame& videoFrame) { in CopyFrame() argument
65 void TextureVideoFrame::SwapFrame(I420VideoFrame* videoFrame) { in SwapFrame() argument
/external/webrtc/src/modules/interface/
Dmodule_common_types.h458 WebRtc_Word32 SwapFrame(VideoFrame& videoFrame);
463 WebRtc_Word32 CopyFrame(const VideoFrame& videoFrame);
598 VideoFrame::SwapFrame(VideoFrame& videoFrame) in SwapFrame() argument
605 _timeStamp = videoFrame._timeStamp; in SwapFrame()
606 _width = videoFrame._width; in SwapFrame()
607 _height = videoFrame._height; in SwapFrame()
608 _renderTimeMs = videoFrame._renderTimeMs; in SwapFrame()
610 videoFrame._timeStamp = tmpTimeStamp; in SwapFrame()
611 videoFrame._width = tmpWidth; in SwapFrame()
612 videoFrame._height = tmpHeight; in SwapFrame()
[all …]
/external/chromium_org/third_party/webrtc/modules/interface/
Dmodule_common_types.h431 int32_t SwapFrame(VideoFrame& videoFrame);
437 int32_t CopyFrame(const VideoFrame& videoFrame);
556 inline int32_t VideoFrame::SwapFrame(VideoFrame& videoFrame) { in SwapFrame() argument
562 _timeStamp = videoFrame._timeStamp; in SwapFrame()
563 _width = videoFrame._width; in SwapFrame()
564 _height = videoFrame._height; in SwapFrame()
565 _renderTimeMs = videoFrame._renderTimeMs; in SwapFrame()
567 videoFrame._timeStamp = tmpTimeStamp; in SwapFrame()
568 videoFrame._width = tmpWidth; in SwapFrame()
569 videoFrame._height = tmpHeight; in SwapFrame()
[all …]
/external/chromium_org/third_party/webrtc/modules/video_render/linux/
Dvideo_x11_channel.cc47 I420VideoFrame& videoFrame) { in RenderFrame() argument
49 if (_width != videoFrame.width() || _height in RenderFrame()
50 != videoFrame.height()) { in RenderFrame()
51 if (FrameSizeChange(videoFrame.width(), videoFrame.height(), 1) == -1) { in RenderFrame()
55 return DeliverFrame(videoFrame); in RenderFrame()
75 int32_t VideoX11Channel::DeliverFrame(const I420VideoFrame& videoFrame) { in DeliverFrame() argument
85 ConvertFromI420(videoFrame, kARGB, 0, _buffer); in DeliverFrame()
Dvideo_x11_channel.h37 I420VideoFrame& videoFrame);
41 int32_t DeliverFrame(const I420VideoFrame& videoFrame);
/external/chromium_org/third_party/webrtc/modules/utility/source/
Dvideo_coder.cc76 int32_t VideoCoder::Encode(const I420VideoFrame& videoFrame, in Encode() argument
83 if(_vcm->AddVideoFrame(videoFrame) != VCM_OK) in Encode()
105 int32_t VideoCoder::FrameToRender(I420VideoFrame& videoFrame) in FrameToRender() argument
107 return _decodedVideo->CopyFrame(videoFrame); in FrameToRender()
Dfile_recorder_impl.cc428 int32_t AviRecorder::RecordVideoToFile(const I420VideoFrame& videoFrame) in RecordVideoToFile() argument
431 if(!IsRecording() || videoFrame.IsZeroSize()) in RecordVideoToFile()
436 int32_t retVal = _videoFramesQueue->AddFrame(videoFrame); in RecordVideoToFile()
627 int32_t AviRecorder::EncodeAndWriteVideoToFile(I420VideoFrame& videoFrame) in EncodeAndWriteVideoToFile() argument
629 if (!IsRecording() || videoFrame.IsZeroSize()) in EncodeAndWriteVideoToFile()
634 if(_frameScaler->ResizeFrameIfNeeded(&videoFrame, _videoCodecInst.width, in EncodeAndWriteVideoToFile()
644 int length = CalcBufferSize(kI420, videoFrame.width(), in EncodeAndWriteVideoToFile()
645 videoFrame.height()); in EncodeAndWriteVideoToFile()
650 int ret_length = ExtractBuffer(videoFrame, length, in EncodeAndWriteVideoToFile()
658 if( _videoEncoder->Encode(videoFrame, _videoEncodedData) != 0) in EncodeAndWriteVideoToFile()
Dfile_player_impl.cc489 int32_t VideoFilePlayerImpl::GetVideoFromFile(I420VideoFrame& videoFrame, in GetVideoFromFile() argument
495 int32_t retVal = GetVideoFromFile(videoFrame); in GetVideoFromFile()
500 if (!videoFrame.IsZeroSize()) in GetVideoFromFile()
502 retVal = _frameScaler.ResizeFrameIfNeeded(&videoFrame, outWidth, in GetVideoFromFile()
508 int32_t VideoFilePlayerImpl::GetVideoFromFile(I420VideoFrame& videoFrame) in GetVideoFromFile() argument
514 videoFrame.ResetSize(); in GetVideoFromFile()
529 videoFrame.CreateFrame(size_y, buffer_y, in GetVideoFromFile()
539 retVal = video_decoder_->Decode(videoFrame, _encodedData); in GetVideoFromFile()
543 videoFrame.set_render_time_ms(renderTimeMs); in GetVideoFromFile()
Dvideo_coder.h38 int32_t Encode(const I420VideoFrame& videoFrame,
46 virtual int32_t FrameToRender(I420VideoFrame& videoFrame) OVERRIDE;
Dfile_recorder_impl.h81 virtual int32_t RecordVideoToFile(const I420VideoFrame& videoFrame) in RecordVideoToFile() argument
149 virtual int32_t RecordVideoToFile(const I420VideoFrame& videoFrame);
165 int32_t EncodeAndWriteVideoToFile(I420VideoFrame& videoFrame);
Dfile_player_impl.h96 virtual int32_t GetVideoFromFile(I420VideoFrame& videoFrame);
97 virtual int32_t GetVideoFromFile(I420VideoFrame& videoFrame,
/external/chromium_org/third_party/webrtc/modules/video_coding/main/test/
Dnormal_test.cc150 VCMNTDecodeCompleCallback::FrameToRender(webrtc::I420VideoFrame& videoFrame) in FrameToRender() argument
152 if (videoFrame.width() != _currentWidth || in FrameToRender()
153 videoFrame.height() != _currentHeight) in FrameToRender()
155 _currentWidth = videoFrame.width(); in FrameToRender()
156 _currentHeight = videoFrame.height(); in FrameToRender()
164 if (PrintI420VideoFrame(videoFrame, _decodedFile) < 0) { in FrameToRender()
168 videoFrame.width(), videoFrame.height()); in FrameToRender()
Dquality_modes_test.cc486 VCMQMDecodeCompleCallback::FrameToRender(I420VideoFrame& videoFrame) in FrameToRender() argument
492 last_frame_.CopyFrame(videoFrame); in FrameToRender()
497 (videoFrame.timestamp() - (last_frame_.timestamp() + (9e4 / frame_rate_))) / in FrameToRender()
513 if (_origWidth == videoFrame.width() && _origHeight == videoFrame.height()) in FrameToRender()
515 if (PrintI420VideoFrame(videoFrame, _decodedFile) < 0) { in FrameToRender()
534 _decodedBytes += CalcBufferSize(kI420, videoFrame.width(), in FrameToRender()
535 videoFrame.height()); in FrameToRender()
536 videoFrame.SwapFrame(&last_frame_); in FrameToRender()
Dtest_callbacks.cc192 VCMDecodeCompleteCallback::FrameToRender(I420VideoFrame& videoFrame) in FrameToRender() argument
194 if (PrintI420VideoFrame(videoFrame, _decodedFile) < 0) { in FrameToRender()
197 _decodedBytes+= CalcBufferSize(kI420, videoFrame.width(), in FrameToRender()
198 videoFrame.height()); in FrameToRender()
/external/chromium_org/third_party/webrtc/modules/video_capture/ios/
Drtc_video_capture_ios_objc.mm360 CVImageBufferRef videoFrame = CMSampleBufferGetImageBuffer(sampleBuffer);
362 if (CVPixelBufferLockBaseAddress(videoFrame, kFlags) != kCVReturnSuccess) {
370 (uint8_t*)CVPixelBufferGetBaseAddressOfPlane(videoFrame, kYPlaneIndex);
372 CVPixelBufferGetBytesPerRowOfPlane(videoFrame, kYPlaneIndex);
373 int yPlaneHeight = CVPixelBufferGetHeightOfPlane(videoFrame, kYPlaneIndex);
375 CVPixelBufferGetBytesPerRowOfPlane(videoFrame, kUVPlaneIndex);
376 int uvPlaneHeight = CVPixelBufferGetHeightOfPlane(videoFrame, kUVPlaneIndex);
381 tempCaptureCapability.width = CVPixelBufferGetWidth(videoFrame);
382 tempCaptureCapability.height = CVPixelBufferGetHeight(videoFrame);
388 CVPixelBufferUnlockBaseAddress(videoFrame, kFlags);
/external/chromium_org/third_party/webrtc/modules/video_capture/mac/qtkit/
Dvideo_capture_qtkit_objc.mm226 didOutputVideoFrame:(CVImageBufferRef)videoFrame
237 if (CVPixelBufferLockBaseAddress(videoFrame, kFlags) == kCVReturnSuccess) {
238 void *baseAddress = CVPixelBufferGetBaseAddress(videoFrame);
239 size_t bytesPerRow = CVPixelBufferGetBytesPerRow(videoFrame);
240 int frameHeight = CVPixelBufferGetHeight(videoFrame);
252 CVPixelBufferUnlockBaseAddress(videoFrame, kFlags);
/external/chromium_org/third_party/webrtc/modules/video_processing/main/test/unit_test/
Dvideo_processing_unittest.cc75 I420VideoFrame videoFrame; in TEST_F() local
76 videoFrame.set_width(width_); in TEST_F()
77 videoFrame.set_height(height_); in TEST_F()
79 EXPECT_EQ(-3, vpm_->GetFrameStats(&stats, videoFrame)); in TEST_F()
81 EXPECT_EQ(-1, vpm_->ColorEnhancement(&videoFrame)); in TEST_F()
83 EXPECT_EQ(-1, vpm_->Deflickering(&videoFrame, &stats)); in TEST_F()
85 EXPECT_EQ(-3, vpm_->BrightnessDetection(videoFrame, stats)); in TEST_F()
/external/chromium_org/third_party/webrtc/modules/video_capture/test/
Dvideo_capture_unittest.cc109 webrtc::I420VideoFrame& videoFrame) { in OnIncomingCapturedFrame() argument
112 int height = videoFrame.height(); in OnIncomingCapturedFrame()
113 int width = videoFrame.width(); in OnIncomingCapturedFrame()
124 videoFrame.render_time_ms() >= TickTime::MillisecondTimestamp()-30 && in OnIncomingCapturedFrame()
125 videoFrame.render_time_ms() <= TickTime::MillisecondTimestamp()); in OnIncomingCapturedFrame()
127 if ((videoFrame.render_time_ms() > in OnIncomingCapturedFrame()
130 (videoFrame.render_time_ms() < in OnIncomingCapturedFrame()
137 last_render_time_ms_ = videoFrame.render_time_ms(); in OnIncomingCapturedFrame()
138 last_frame_.CopyFrame(videoFrame); in OnIncomingCapturedFrame()
141 webrtc::VideoFrame& videoFrame, in OnIncomingCapturedEncodedFrame() argument
/external/chromium_org/media/video/capture/mac/
Dvideo_capture_device_avfoundation_mac.mm255 CVImageBufferRef videoFrame =
259 if (CVPixelBufferLockBaseAddress(videoFrame, kLockFlags) ==
261 void* baseAddress = CVPixelBufferGetBaseAddress(videoFrame);
262 size_t bytesPerRow = CVPixelBufferGetBytesPerRow(videoFrame);
263 size_t frameWidth = CVPixelBufferGetWidth(videoFrame);
264 size_t frameHeight = CVPixelBufferGetHeight(videoFrame);
276 CVPixelBufferUnlockBaseAddress(videoFrame, kLockFlags);
Dvideo_capture_device_qtkit_mac.mm253 didOutputVideoFrame:(CVImageBufferRef)videoFrame
264 if (CVPixelBufferLockBaseAddress(videoFrame, kLockFlags)
266 void *baseAddress = CVPixelBufferGetBaseAddress(videoFrame);
267 size_t bytesPerRow = CVPixelBufferGetBytesPerRow(videoFrame);
268 size_t frameWidth = CVPixelBufferGetWidth(videoFrame);
269 size_t frameHeight = CVPixelBufferGetHeight(videoFrame);
309 videoFrame, kCVImageBufferPixelAspectRatioKey, NULL);
326 CVPixelBufferUnlockBaseAddress(videoFrame, kLockFlags);
/external/chromium_org/third_party/webrtc/common_video/interface/
Dtexture_video_frame.h51 virtual int CopyFrame(const I420VideoFrame& videoFrame) OVERRIDE;
53 virtual void SwapFrame(I420VideoFrame* videoFrame) OVERRIDE;
/external/chromium_org/third_party/webrtc/modules/video_capture/include/
Dvideo_capture_defines.h94 virtual int32_t IncomingFrame(uint8_t* videoFrame,
110 I420VideoFrame& videoFrame) = 0;
/external/chromium_org/third_party/webrtc/
Dvideo_frame.h79 virtual int CopyFrame(const I420VideoFrame& videoFrame);
86 virtual void SwapFrame(I420VideoFrame* videoFrame);
/external/chromium_org/third_party/webrtc/modules/video_render/windows/
Dvideo_render_direct3d9.cc146 I420VideoFrame& videoFrame) in RenderFrame() argument
149 if (_width != videoFrame.width() || _height != videoFrame.height()) in RenderFrame()
151 if (FrameSizeChange(videoFrame.width(), videoFrame.height(), 1) == -1) in RenderFrame()
156 return DeliverFrame(videoFrame); in RenderFrame()
160 int D3D9Channel::DeliverFrame(const I420VideoFrame& videoFrame) { in DeliverFrame() argument
195 ConvertFromI420(videoFrame, kARGB, 0, pRect); in DeliverFrame()

123