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

Side by Side Diff: webrtc/modules/video_coding/generic_encoder.h

Issue 1886113003: Add rotation to EncodedImage and make sure it is passed through encoders. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: IOS Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void SetMediaOpt(media_optimization::MediaOptimization* mediaOpt); 59 void SetMediaOpt(media_optimization::MediaOptimization* mediaOpt);
60 60
61 void SetPayloadType(uint8_t payloadType) { 61 void SetPayloadType(uint8_t payloadType) {
62 _payloadType = payloadType; 62 _payloadType = payloadType;
63 } 63 }
64 64
65 void SetInternalSource(bool internalSource) { 65 void SetInternalSource(bool internalSource) {
66 _internalSource = internalSource; 66 _internalSource = internalSource;
67 } 67 }
68 68
69 void SetRotation(VideoRotation rotation) { _rotation = rotation; }
70 void SignalLastEncoderImplementationUsed( 69 void SignalLastEncoderImplementationUsed(
71 const char* encoder_implementation_name); 70 const char* encoder_implementation_name);
72 71
73 private: 72 private:
74 VCMPacketizationCallback* send_callback_; 73 VCMPacketizationCallback* send_callback_;
75 media_optimization::MediaOptimization* _mediaOpt; 74 media_optimization::MediaOptimization* _mediaOpt;
76 uint8_t _payloadType; 75 uint8_t _payloadType;
77 bool _internalSource; 76 bool _internalSource;
78 VideoRotation _rotation;
79 77
80 EncodedImageCallback* post_encode_callback_; 78 EncodedImageCallback* post_encode_callback_;
81 79
82 #ifdef DEBUG_ENCODER_BIT_STREAM 80 #ifdef DEBUG_ENCODER_BIT_STREAM
83 FILE* _bitStreamAfterEncoder; 81 FILE* _bitStreamAfterEncoder;
84 #endif 82 #endif
85 }; // end of VCMEncodeFrameCallback class 83 }; // end of VCMEncodeFrameCallback class
86 84
87 /******************************/ 85 /******************************/
88 /* VCMGenericEncoder class */ 86 /* VCMGenericEncoder class */
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const bool internal_source_; 137 const bool internal_source_;
140 rtc::CriticalSection params_lock_; 138 rtc::CriticalSection params_lock_;
141 EncoderParameters encoder_params_ GUARDED_BY(params_lock_); 139 EncoderParameters encoder_params_ GUARDED_BY(params_lock_);
142 VideoRotation rotation_; 140 VideoRotation rotation_;
143 bool is_screenshare_; 141 bool is_screenshare_;
144 }; // end of VCMGenericEncoder class 142 }; // end of VCMGenericEncoder class
145 143
146 } // namespace webrtc 144 } // namespace webrtc
147 145
148 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ 146 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698