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

Side by Side Diff: webrtc/video_decoder.h

Issue 1414693006: Add DecodedImageCallback::Decoded() function with custom decode time value. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Renamed to just Decoded(...) Created 5 years, 1 month 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
« no previous file with comments | « webrtc/modules/video_coding/main/source/timing_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 11 matching lines...) Expand all
22 class RTPFragmentationHeader; 22 class RTPFragmentationHeader;
23 // TODO(pbos): Expose these through a public (root) header or change these APIs. 23 // TODO(pbos): Expose these through a public (root) header or change these APIs.
24 struct CodecSpecificInfo; 24 struct CodecSpecificInfo;
25 struct VideoCodec; 25 struct VideoCodec;
26 26
27 class DecodedImageCallback { 27 class DecodedImageCallback {
28 public: 28 public:
29 virtual ~DecodedImageCallback() {} 29 virtual ~DecodedImageCallback() {}
30 30
31 virtual int32_t Decoded(VideoFrame& decodedImage) = 0; 31 virtual int32_t Decoded(VideoFrame& decodedImage) = 0;
32 // Provides an alternative interface that allows the decoder to specify the
33 // decode time excluding waiting time for any previous pending frame to
34 // return. This is necessary for breaking positive feedback in the delay
35 // estimation when the decoder has a single output buffer.
36 virtual int32_t Decoded(VideoFrame& decodedImage, int64_t decode_time_ms) {
37 // The default implementation ignores custom decode time value.
38 return Decoded(decodedImage);
39 }
stefan-webrtc 2015/11/10 10:32:00 Are there many places where you have to make this
40
32 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { 41 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) {
33 return -1; 42 return -1;
34 } 43 }
35 44
36 virtual int32_t ReceivedDecodedFrame(const uint64_t pictureId) { return -1; } 45 virtual int32_t ReceivedDecodedFrame(const uint64_t pictureId) { return -1; }
37 }; 46 };
38 47
39 class VideoDecoder { 48 class VideoDecoder {
40 public: 49 public:
41 enum DecoderType { 50 enum DecoderType {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 105
97 VideoCodec codec_settings_; 106 VideoCodec codec_settings_;
98 int32_t number_of_cores_; 107 int32_t number_of_cores_;
99 rtc::scoped_ptr<VideoDecoder> fallback_decoder_; 108 rtc::scoped_ptr<VideoDecoder> fallback_decoder_;
100 DecodedImageCallback* callback_; 109 DecodedImageCallback* callback_;
101 }; 110 };
102 111
103 } // namespace webrtc 112 } // namespace webrtc
104 113
105 #endif // WEBRTC_VIDEO_DECODER_H_ 114 #endif // WEBRTC_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/main/source/timing_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698