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

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

Issue 1406903002: Expose codec implementation names in stats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: fix rebase Created 5 years 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 int32_t SetTransportCallback(VCMPacketizationCallback* transport); 55 int32_t SetTransportCallback(VCMPacketizationCallback* transport);
56 /** 56 /**
57 * Set media Optimization 57 * Set media Optimization
58 */ 58 */
59 void SetMediaOpt (media_optimization::MediaOptimization* mediaOpt); 59 void SetMediaOpt (media_optimization::MediaOptimization* mediaOpt);
60 60
61 void SetPayloadType(uint8_t payloadType) { _payloadType = payloadType; }; 61 void SetPayloadType(uint8_t payloadType) { _payloadType = payloadType; };
62 void SetInternalSource(bool internalSource) { _internalSource = internalSour ce; }; 62 void SetInternalSource(bool internalSource) { _internalSource = internalSour ce; };
63 63
64 void SetRotation(VideoRotation rotation) { _rotation = rotation; } 64 void SetRotation(VideoRotation rotation) { _rotation = rotation; }
65 void SignalLastEncoderImplementationUsed(
66 const char* encoder_implementation_name);
65 67
66 private: 68 private:
67 VCMPacketizationCallback* _sendCallback; 69 VCMPacketizationCallback* send_callback_;
68 media_optimization::MediaOptimization* _mediaOpt; 70 media_optimization::MediaOptimization* _mediaOpt;
69 uint8_t _payloadType; 71 uint8_t _payloadType;
70 bool _internalSource; 72 bool _internalSource;
71 VideoRotation _rotation; 73 VideoRotation _rotation;
72 74
73 EncodedImageCallback* post_encode_callback_; 75 EncodedImageCallback* post_encode_callback_;
74 76
75 #ifdef DEBUG_ENCODER_BIT_STREAM 77 #ifdef DEBUG_ENCODER_BIT_STREAM
76 FILE* _bitStreamAfterEncoder; 78 FILE* _bitStreamAfterEncoder;
77 #endif 79 #endif
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 const bool internal_source_; 135 const bool internal_source_;
134 mutable rtc::CriticalSection params_lock_; 136 mutable rtc::CriticalSection params_lock_;
135 EncoderParameters encoder_params_ GUARDED_BY(params_lock_); 137 EncoderParameters encoder_params_ GUARDED_BY(params_lock_);
136 VideoRotation rotation_; 138 VideoRotation rotation_;
137 bool is_screenshare_; 139 bool is_screenshare_;
138 }; // end of VCMGenericEncoder class 140 }; // end of VCMGenericEncoder class
139 141
140 } // namespace webrtc 142 } // namespace webrtc
141 143
142 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_ 144 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_ENCODER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/generic_decoder.cc ('k') | webrtc/modules/video_coding/generic_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698