Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: webrtc/media/base/videoframefactory.h

Issue 2370993003: Reland of Delete VideoFrameFactory, CapturedFrame, and related code. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Resolve conflict in webrtc/media/BUILD.gn. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/media/base/videocapturer_unittest.cc ('k') | webrtc/media/base/videoframefactory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videoframefactory.h
diff --git a/webrtc/media/base/videoframefactory.h b/webrtc/media/base/videoframefactory.h
deleted file mode 100644
index 985199f646f12d8285547e8eeadefe8b07ed3890..0000000000000000000000000000000000000000
--- a/webrtc/media/base/videoframefactory.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 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.
- */
-
-#ifndef WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_
-#define WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_
-
-#include <memory>
-
-#include "webrtc/common_video/include/i420_buffer_pool.h"
-#include "webrtc/media/base/videoframe.h"
-
-namespace cricket {
-
-struct CapturedFrame;
-class VideoFrame;
-
-// Creates cricket::VideoFrames, or a subclass of cricket::VideoFrame
-// depending on the subclass of VideoFrameFactory.
-class VideoFrameFactory {
- public:
- VideoFrameFactory() : apply_rotation_(false) {}
- virtual ~VideoFrameFactory() {}
-
- // The returned frame aliases the aliased_frame if the input color
- // space allows for aliasing, otherwise a color conversion will
- // occur. Returns NULL if conversion fails.
-
- // The returned frame will be a center crop of |input_frame| with
- // size |cropped_width| x |cropped_height|.
- virtual VideoFrame* CreateAliasedFrame(const CapturedFrame* input_frame,
- int cropped_width,
- int cropped_height) const = 0;
-
- // The returned frame will be a center crop of |input_frame| with size
- // |cropped_width| x |cropped_height|, scaled to |output_width| x
- // |output_height|.
- virtual VideoFrame* CreateAliasedFrame(const CapturedFrame* input_frame,
- int cropped_input_width,
- int cropped_input_height,
- int output_width,
- int output_height) const;
-
- void SetApplyRotation(bool enable) { apply_rotation_ = enable; }
-
- protected:
- bool apply_rotation_;
-
- private:
- // An internal pool to avoid reallocations. It is mutable because it
- // does not affect behaviour, only performance.
- mutable webrtc::I420BufferPool pool_;
-};
-
-} // namespace cricket
-
-#endif // WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_
« no previous file with comments | « webrtc/media/base/videocapturer_unittest.cc ('k') | webrtc/media/base/videoframefactory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698