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

Side by Side Diff: webrtc/modules/video_coding/main/interface/video_coding_defines.h

Issue 1315413002: Wire up currently-received video codec to stats. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: feedback Created 5 years, 3 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Callback class used for passing decoded frames which are ready to be rendered . 70 // Callback class used for passing decoded frames which are ready to be rendered .
71 class VCMReceiveCallback { 71 class VCMReceiveCallback {
72 public: 72 public:
73 virtual int32_t FrameToRender(VideoFrame& videoFrame) = 0; 73 virtual int32_t FrameToRender(VideoFrame& videoFrame) = 0;
74 virtual int32_t ReceivedDecodedReferenceFrame( 74 virtual int32_t ReceivedDecodedReferenceFrame(
75 const uint64_t pictureId) { 75 const uint64_t pictureId) {
76 return -1; 76 return -1;
77 } 77 }
78 // Called when the current receive codec changes. 78 // Called when the current receive codec changes.
79 virtual void IncomingCodecChanged(const VideoCodec& codec) {} 79 virtual void OnIncomingPayloadType(int payload_type) {}
80 80
81 protected: 81 protected:
82 virtual ~VCMReceiveCallback() { 82 virtual ~VCMReceiveCallback() {
83 } 83 }
84 }; 84 };
85 85
86 // Callback class used for informing the user of the bit rate and frame rate pro duced by the 86 // Callback class used for informing the user of the bit rate and frame rate pro duced by the
87 // encoder. 87 // encoder.
88 class VCMSendStatisticsCallback { 88 class VCMSendStatisticsCallback {
89 public: 89 public:
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 virtual void RenderBufferSizeMs(int buffer_size_ms) = 0; 192 virtual void RenderBufferSizeMs(int buffer_size_ms) = 0;
193 193
194 protected: 194 protected:
195 virtual ~VCMRenderBufferSizeCallback() { 195 virtual ~VCMRenderBufferSizeCallback() {
196 } 196 }
197 }; 197 };
198 198
199 } // namespace webrtc 199 } // namespace webrtc
200 200
201 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_CODING_DEFINES_H_ 201 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_CODING_DEFINES_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/webrtcvideoengine2_unittest.cc ('k') | webrtc/modules/video_coding/main/source/codec_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698