Clean up webrtc external capture.
This cl removes the dependency to the external capture module if external capturing is used in webrtc. It also removes two external capture methods that is not needed. Further more it adds I420VideoFrame::Create that takes a pointer to packed memory as input. R=magjed@webrtc.org, mflodman@webrtc.org, pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/43879004 Cr-Commit-Position: refs/heads/master@{#8804} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8804 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -181,17 +181,10 @@ bool VideoProcessorImpl::ProcessFrame(int frame_number) {
|
||||
}
|
||||
if (frame_reader_->ReadFrame(source_buffer_)) {
|
||||
// Copy the source frame to the newly read frame data.
|
||||
int size_y = config_.codec_settings->width * config_.codec_settings->height;
|
||||
int half_width = (config_.codec_settings->width + 1) / 2;
|
||||
int half_height = (config_.codec_settings->height + 1) / 2;
|
||||
int size_uv = half_width * half_height;
|
||||
source_frame_.CreateFrame(source_buffer_,
|
||||
source_buffer_ + size_y,
|
||||
source_buffer_ + size_y + size_uv,
|
||||
config_.codec_settings->width,
|
||||
config_.codec_settings->height,
|
||||
config_.codec_settings->width,
|
||||
half_width, half_width);
|
||||
kVideoRotation_0);
|
||||
|
||||
// Ensure we have a new statistics data object we can fill:
|
||||
FrameStatistic& stat = stats_->NewFrame(frame_number);
|
||||
|
||||
Reference in New Issue
Block a user