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

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

Issue 1853813002: Add support for writing raw encoder output to .ivf files. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Moved file recording to ViEEncoder 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; } 69 void SetRotation(VideoRotation rotation) { _rotation = rotation; }
70 void SignalLastEncoderImplementationUsed( 70 void SignalLastEncoderImplementationUsed(
71 const char* encoder_implementation_name); 71 const char* encoder_implementation_name);
72 72
73 private: 73 private:
74 VCMPacketizationCallback* send_callback_; 74 VCMPacketizationCallback* send_callback_;
75 media_optimization::MediaOptimization* _mediaOpt; 75 media_optimization::MediaOptimization* _mediaOpt;
76 uint8_t _payloadType; 76 uint8_t _payloadType;
77 bool _internalSource; 77 bool _internalSource;
78 VideoRotation _rotation; 78 VideoRotation _rotation;
pbos-webrtc 2016/04/05 13:31:27 Can you git cl format this entire class so that we
sprang_webrtc 2016/04/05 16:00:53 Done, reformatted and cleaned up generic_encoder.(
79 79
80 EncodedImageCallback* post_encode_callback_; 80 EncodedImageCallback* post_encode_callback_;
81
82 #ifdef DEBUG_ENCODER_BIT_STREAM
83 FILE* _bitStreamAfterEncoder;
84 #endif
85 }; // end of VCMEncodeFrameCallback class 81 }; // end of VCMEncodeFrameCallback class
86 82
87 /******************************/ 83 /******************************/
88 /* VCMGenericEncoder class */ 84 /* VCMGenericEncoder class */
89 /******************************/ 85 /******************************/
90 class VCMGenericEncoder { 86 class VCMGenericEncoder {
91 friend class VCMCodecDataBase; 87 friend class VCMCodecDataBase;
92 88
93 public: 89 public:
94 VCMGenericEncoder(VideoEncoder* encoder, 90 VCMGenericEncoder(VideoEncoder* encoder,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const bool internal_source_; 135 const bool internal_source_;
140 rtc::CriticalSection params_lock_; 136 rtc::CriticalSection params_lock_;
141 EncoderParameters encoder_params_ GUARDED_BY(params_lock_); 137 EncoderParameters encoder_params_ GUARDED_BY(params_lock_);
142 VideoRotation rotation_; 138 VideoRotation rotation_;
143 bool is_screenshare_; 139 bool is_screenshare_;
144 }; // end of VCMGenericEncoder class 140 }; // end of VCMGenericEncoder class
145 141
146 } // namespace webrtc 142 } // namespace webrtc
147 143
148 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ 144 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698