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

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

Issue 1428293003: Add VideoCodec::PreferDecodeLate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 * Reset the decoder state, prepare for a new call 90 * Reset the decoder state, prepare for a new call
91 */ 91 */
92 int32_t Reset(); 92 int32_t Reset();
93 93
94 /** 94 /**
95 * Set decode callback. Deregistering while decoding is illegal. 95 * Set decode callback. Deregistering while decoding is illegal.
96 */ 96 */
97 int32_t RegisterDecodeCompleteCallback(VCMDecodedFrameCallback* callback); 97 int32_t RegisterDecodeCompleteCallback(VCMDecodedFrameCallback* callback);
98 98
99 bool External() const; 99 bool External() const;
100 bool PrefersLateDecoding() const;
100 101
101 private: 102 private:
102 VCMDecodedFrameCallback* _callback; 103 VCMDecodedFrameCallback* _callback;
103 VCMFrameInformation _frameInfos[kDecoderFrameMemoryLength]; 104 VCMFrameInformation _frameInfos[kDecoderFrameMemoryLength];
104 uint32_t _nextFrameInfoIdx; 105 uint32_t _nextFrameInfoIdx;
105 VideoDecoder* const _decoder; 106 VideoDecoder* const _decoder;
106 VideoCodecType _codecType; 107 VideoCodecType _codecType;
107 bool _isExternal; 108 bool _isExternal;
108 bool _keyFrameDecoded; 109 bool _keyFrameDecoded;
109 }; 110 };
110 111
111 } // namespace webrtc 112 } // namespace webrtc
112 113
113 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_DECODER_H_ 114 #endif // WEBRTC_MODULES_VIDEO_CODING_GENERIC_DECODER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codec_database.cc ('k') | webrtc/modules/video_coding/generic_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698