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

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

Issue 1479793002: Remove RegisterExternal{De,En}coder error codes. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Get a copy of the currently configured send codec. 75 // Get a copy of the currently configured send codec.
76 // This method acquires a lock to copy the current configuration out, 76 // This method acquires a lock to copy the current configuration out,
77 // so it can block and the returned information is not guaranteed to be 77 // so it can block and the returned information is not guaranteed to be
78 // accurate upon return. Consider using GetSendCodec() instead and make 78 // accurate upon return. Consider using GetSendCodec() instead and make
79 // decisions on that thread with regards to the current codec. 79 // decisions on that thread with regards to the current codec.
80 int32_t SendCodecBlocking(VideoCodec* currentSendCodec) const; 80 int32_t SendCodecBlocking(VideoCodec* currentSendCodec) const;
81 81
82 // Same as SendCodecBlocking. Try to use GetSendCodec() instead. 82 // Same as SendCodecBlocking. Try to use GetSendCodec() instead.
83 VideoCodecType SendCodecBlocking() const; 83 VideoCodecType SendCodecBlocking() const;
84 84
85 int32_t RegisterExternalEncoder(VideoEncoder* externalEncoder, 85 void RegisterExternalEncoder(VideoEncoder* externalEncoder,
86 uint8_t payloadType, 86 uint8_t payloadType,
87 bool internalSource); 87 bool internalSource);
88 88
89 int Bitrate(unsigned int* bitrate) const; 89 int Bitrate(unsigned int* bitrate) const;
90 int FrameRate(unsigned int* framerate) const; 90 int FrameRate(unsigned int* framerate) const;
91 91
92 int32_t SetChannelParameters(uint32_t target_bitrate, // bits/s. 92 int32_t SetChannelParameters(uint32_t target_bitrate, // bits/s.
93 uint8_t lossRate, 93 uint8_t lossRate,
94 int64_t rtt); 94 int64_t rtt);
95 95
96 int32_t RegisterTransportCallback(VCMPacketizationCallback* transport); 96 int32_t RegisterTransportCallback(VCMPacketizationCallback* transport);
97 int32_t RegisterSendStatisticsCallback(VCMSendStatisticsCallback* sendStats); 97 int32_t RegisterSendStatisticsCallback(VCMSendStatisticsCallback* sendStats);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 public: 143 public:
144 typedef VideoCodingModule::ReceiverRobustness ReceiverRobustness; 144 typedef VideoCodingModule::ReceiverRobustness ReceiverRobustness;
145 145
146 VideoReceiver(Clock* clock, EventFactory* event_factory); 146 VideoReceiver(Clock* clock, EventFactory* event_factory);
147 ~VideoReceiver(); 147 ~VideoReceiver();
148 148
149 int32_t RegisterReceiveCodec(const VideoCodec* receiveCodec, 149 int32_t RegisterReceiveCodec(const VideoCodec* receiveCodec,
150 int32_t numberOfCores, 150 int32_t numberOfCores,
151 bool requireKeyFrame); 151 bool requireKeyFrame);
152 152
153 int32_t RegisterExternalDecoder(VideoDecoder* externalDecoder, 153 void RegisterExternalDecoder(VideoDecoder* externalDecoder,
154 uint8_t payloadType, 154 uint8_t payloadType,
155 bool internalRenderTiming); 155 bool internalRenderTiming);
156 int32_t RegisterReceiveCallback(VCMReceiveCallback* receiveCallback); 156 int32_t RegisterReceiveCallback(VCMReceiveCallback* receiveCallback);
157 int32_t RegisterReceiveStatisticsCallback( 157 int32_t RegisterReceiveStatisticsCallback(
158 VCMReceiveStatisticsCallback* receiveStats); 158 VCMReceiveStatisticsCallback* receiveStats);
159 int32_t RegisterDecoderTimingCallback( 159 int32_t RegisterDecoderTimingCallback(
160 VCMDecoderTimingCallback* decoderTiming); 160 VCMDecoderTimingCallback* decoderTiming);
161 int32_t RegisterFrameTypeCallback(VCMFrameTypeCallback* frameTypeCallback); 161 int32_t RegisterFrameTypeCallback(VCMFrameTypeCallback* frameTypeCallback);
162 int32_t RegisterPacketRequestCallback(VCMPacketRequestCallback* callback); 162 int32_t RegisterPacketRequestCallback(VCMPacketRequestCallback* callback);
163 int RegisterRenderBufferSizeCallback(VCMRenderBufferSizeCallback* callback); 163 int RegisterRenderBufferSizeCallback(VCMRenderBufferSizeCallback* callback);
164 164
165 int32_t Decode(uint16_t maxWaitTimeMs); 165 int32_t Decode(uint16_t maxWaitTimeMs);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 VCMCodecDataBase _codecDataBase GUARDED_BY(_receiveCritSect); 228 VCMCodecDataBase _codecDataBase GUARDED_BY(_receiveCritSect);
229 VCMProcessTimer _receiveStatsTimer; 229 VCMProcessTimer _receiveStatsTimer;
230 VCMProcessTimer _retransmissionTimer; 230 VCMProcessTimer _retransmissionTimer;
231 VCMProcessTimer _keyRequestTimer; 231 VCMProcessTimer _keyRequestTimer;
232 QpParser qp_parser_; 232 QpParser qp_parser_;
233 }; 233 };
234 234
235 } // namespace vcm 235 } // namespace vcm
236 } // namespace webrtc 236 } // namespace webrtc
237 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ 237 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/include/video_coding.h ('k') | webrtc/modules/video_coding/video_coding_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698