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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor.h

Issue 2089773002: Add EncodedImageCallback::OnEncodedImage(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 4 years, 4 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 double bit_rate_factor_; // multiply frame length with this to get bit rate 223 double bit_rate_factor_; // multiply frame length with this to get bit rate
224 int64_t encode_start_ns_; 224 int64_t encode_start_ns_;
225 int64_t decode_start_ns_; 225 int64_t decode_start_ns_;
226 226
227 // Callback class required to implement according to the VideoEncoder API. 227 // Callback class required to implement according to the VideoEncoder API.
228 class VideoProcessorEncodeCompleteCallback 228 class VideoProcessorEncodeCompleteCallback
229 : public webrtc::EncodedImageCallback { 229 : public webrtc::EncodedImageCallback {
230 public: 230 public:
231 explicit VideoProcessorEncodeCompleteCallback(VideoProcessorImpl* vp) 231 explicit VideoProcessorEncodeCompleteCallback(VideoProcessorImpl* vp)
232 : video_processor_(vp) {} 232 : video_processor_(vp) {}
233 int32_t Encoded( 233 Result OnEncodedImage(
234 const webrtc::EncodedImage& encoded_image, 234 const webrtc::EncodedImage& encoded_image,
235 const webrtc::CodecSpecificInfo* codec_specific_info, 235 const webrtc::CodecSpecificInfo* codec_specific_info,
236 const webrtc::RTPFragmentationHeader* fragmentation) override; 236 const webrtc::RTPFragmentationHeader* fragmentation) override;
237 237
238 private: 238 private:
239 VideoProcessorImpl* video_processor_; 239 VideoProcessorImpl* video_processor_;
240 }; 240 };
241 241
242 // Callback class required to implement according to the VideoDecoder API. 242 // Callback class required to implement according to the VideoDecoder API.
243 class VideoProcessorDecodeCompleteCallback 243 class VideoProcessorDecodeCompleteCallback
(...skipping 10 matching lines...) Expand all
254 254
255 private: 255 private:
256 VideoProcessorImpl* video_processor_; 256 VideoProcessorImpl* video_processor_;
257 }; 257 };
258 }; 258 };
259 259
260 } // namespace test 260 } // namespace test
261 } // namespace webrtc 261 } // namespace webrtc
262 262
263 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 263 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testAPI/test_api_video.cc ('k') | webrtc/modules/video_coding/codecs/test/videoprocessor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698