| Index: webrtc/media/webrtc/webrtcvideoframefactory.cc
|
| diff --git a/webrtc/media/webrtc/webrtcvideoframefactory.cc b/webrtc/media/webrtc/webrtcvideoframefactory.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bb77748e712583006ad135b1d3681cf3721788a5
|
| --- /dev/null
|
| +++ b/webrtc/media/webrtc/webrtcvideoframefactory.cc
|
| @@ -0,0 +1,28 @@
|
| +/*
|
| + * Copyright 2014 The WebRTC Project Authors. All rights reserved.
|
| + *
|
| + * Use of this source code is governed by a BSD-style license
|
| + * that can be found in the LICENSE file in the root of the source
|
| + * tree. An additional intellectual property rights grant can be found
|
| + * in the file PATENTS. All contributing project authors may
|
| + * be found in the AUTHORS file in the root of the source tree.
|
| + */
|
| +
|
| +#include "webrtc/base/logging.h"
|
| +#include "webrtc/media/webrtc/webrtcvideoframe.h"
|
| +#include "webrtc/media/webrtc/webrtcvideoframefactory.h"
|
| +
|
| +namespace cricket {
|
| +
|
| +VideoFrame* WebRtcVideoFrameFactory::CreateAliasedFrame(
|
| + const CapturedFrame* aliased_frame, int width, int height) const {
|
| + rtc::scoped_ptr<WebRtcVideoFrame> frame(new WebRtcVideoFrame());
|
| + if (!frame->Init(aliased_frame, width, height, apply_rotation_)) {
|
| + LOG(LS_ERROR) <<
|
| + "Failed to create WebRtcVideoFrame in CreateAliasedFrame.";
|
| + return NULL;
|
| + }
|
| + return frame.release();
|
| +}
|
| +
|
| +} // namespace cricket
|
|
|