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

Side by Side Diff: webrtc/media/base/videoframefactory.h

Issue 1779883004: Change VideoCapture_apply_rotation default to false (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « webrtc/media/base/videocapturer_unittest.cc ('k') | webrtc/media/base/videosourceinterface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_ 11 #ifndef WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_
12 #define WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_ 12 #define WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/media/base/videoframe.h" 16 #include "webrtc/media/base/videoframe.h"
17 17
18 namespace cricket { 18 namespace cricket {
19 19
20 struct CapturedFrame; 20 struct CapturedFrame;
21 class VideoFrame; 21 class VideoFrame;
22 22
23 // Creates cricket::VideoFrames, or a subclass of cricket::VideoFrame 23 // Creates cricket::VideoFrames, or a subclass of cricket::VideoFrame
24 // depending on the subclass of VideoFrameFactory. 24 // depending on the subclass of VideoFrameFactory.
25 class VideoFrameFactory { 25 class VideoFrameFactory {
26 public: 26 public:
27 VideoFrameFactory() : apply_rotation_(true) {} 27 VideoFrameFactory() : apply_rotation_(false) {}
28 virtual ~VideoFrameFactory() {} 28 virtual ~VideoFrameFactory() {}
29 29
30 // The returned frame aliases the aliased_frame if the input color 30 // The returned frame aliases the aliased_frame if the input color
31 // space allows for aliasing, otherwise a color conversion will 31 // space allows for aliasing, otherwise a color conversion will
32 // occur. Returns NULL if conversion fails. 32 // occur. Returns NULL if conversion fails.
33 33
34 // The returned frame will be a center crop of |input_frame| with 34 // The returned frame will be a center crop of |input_frame| with
35 // size |cropped_width| x |cropped_height|. 35 // size |cropped_width| x |cropped_height|.
36 virtual VideoFrame* CreateAliasedFrame(const CapturedFrame* input_frame, 36 virtual VideoFrame* CreateAliasedFrame(const CapturedFrame* input_frame,
37 int cropped_width, 37 int cropped_width,
(...skipping 15 matching lines...) Expand all
53 53
54 private: 54 private:
55 // An internal frame buffer to avoid reallocations. It is mutable because it 55 // An internal frame buffer to avoid reallocations. It is mutable because it
56 // does not affect behaviour, only performance. 56 // does not affect behaviour, only performance.
57 mutable std::unique_ptr<VideoFrame> output_frame_; 57 mutable std::unique_ptr<VideoFrame> output_frame_;
58 }; 58 };
59 59
60 } // namespace cricket 60 } // namespace cricket
61 61
62 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_ 62 #endif // WEBRTC_MEDIA_BASE_VIDEOFRAMEFACTORY_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/videocapturer_unittest.cc ('k') | webrtc/media/base/videosourceinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698