Chromium Code Reviews

Side by Side Diff: webrtc/modules/video_coding/include/video_coding_defines.h

Issue 2865663002: Remove deprecated API (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 43 matching lines...)
54 54
55 struct VCMFrameCount { 55 struct VCMFrameCount {
56 uint32_t numKeyFrames; 56 uint32_t numKeyFrames;
57 uint32_t numDeltaFrames; 57 uint32_t numDeltaFrames;
58 }; 58 };
59 59
60 // Callback class used for passing decoded frames which are ready to be 60 // Callback class used for passing decoded frames which are ready to be
61 // rendered. 61 // rendered.
62 class VCMReceiveCallback { 62 class VCMReceiveCallback {
63 public: 63 public:
64 // TODO(ilnik): Once deprecation is complete, change this to pure virtual.
65 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT 64 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT
66 rtc::Optional<uint8_t> qp, 65 rtc::Optional<uint8_t> qp,
67 VideoContentType /*content_type*/) { 66 VideoContentType /*content_type*/) = 0;
68 return FrameToRender(videoFrame, qp); 67
69 }
70 // DEPRECATED. Use the other overloaded version.
71 virtual int32_t FrameToRender(VideoFrame& videoFrame, // NOLINT
72 rtc::Optional<uint8_t> qp) {
73 return -1;
74 }
75 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) { 68 virtual int32_t ReceivedDecodedReferenceFrame(const uint64_t pictureId) {
76 return -1; 69 return -1;
77 } 70 }
78 // Called when the current receive codec changes. 71 // Called when the current receive codec changes.
79 virtual void OnIncomingPayloadType(int payload_type) {} 72 virtual void OnIncomingPayloadType(int payload_type) {}
80 virtual void OnDecoderImplementationName(const char* implementation_name) {} 73 virtual void OnDecoderImplementationName(const char* implementation_name) {}
81 74
82 protected: 75 protected:
83 virtual ~VCMReceiveCallback() {} 76 virtual ~VCMReceiveCallback() {}
84 }; 77 };
(...skipping 79 matching lines...)
164 public: 157 public:
165 virtual void RequestKeyFrame() = 0; 158 virtual void RequestKeyFrame() = 0;
166 159
167 protected: 160 protected:
168 virtual ~KeyFrameRequestSender() {} 161 virtual ~KeyFrameRequestSender() {}
169 }; 162 };
170 163
171 } // namespace webrtc 164 } // namespace webrtc
172 165
173 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_ 166 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_DEFINES_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/include/mock/mock_vcm_callbacks.h ('k') | webrtc/video/video_stream_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine