Chromium Code Reviews

Side by Side Diff: webrtc/video/video_stream_decoder.h

Issue 2649133005: Add QP sum stats for received streams. (Closed)
Patch Set: Rebase. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | webrtc/video/video_stream_decoder.cc » ('j') | 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) 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 42 matching lines...)
53 VCMFrameTypeCallback* vcm_frame_type_callback, 53 VCMFrameTypeCallback* vcm_frame_type_callback,
54 VCMPacketRequestCallback* vcm_packet_request_callback, 54 VCMPacketRequestCallback* vcm_packet_request_callback,
55 bool enable_nack, 55 bool enable_nack,
56 bool enable_fec, 56 bool enable_fec,
57 ReceiveStatisticsProxy* receive_statistics_proxy, 57 ReceiveStatisticsProxy* receive_statistics_proxy,
58 rtc::VideoSinkInterface<VideoFrame>* incoming_video_stream, 58 rtc::VideoSinkInterface<VideoFrame>* incoming_video_stream,
59 I420FrameCallback* pre_render_callback); 59 I420FrameCallback* pre_render_callback);
60 ~VideoStreamDecoder(); 60 ~VideoStreamDecoder();
61 61
62 // Implements VCMReceiveCallback. 62 // Implements VCMReceiveCallback.
63 int32_t FrameToRender(VideoFrame& video_frame) override; // NOLINT 63 int32_t FrameToRender(VideoFrame& video_frame,
64 rtc::Optional<uint8_t> qp) override;
64 int32_t ReceivedDecodedReferenceFrame(const uint64_t picture_id) override; 65 int32_t ReceivedDecodedReferenceFrame(const uint64_t picture_id) override;
65 void OnIncomingPayloadType(int payload_type) override; 66 void OnIncomingPayloadType(int payload_type) override;
66 void OnDecoderImplementationName(const char* implementation_name) override; 67 void OnDecoderImplementationName(const char* implementation_name) override;
67 68
68 // Implements VCMReceiveStatisticsCallback. 69 // Implements VCMReceiveStatisticsCallback.
69 void OnReceiveRatesUpdated(uint32_t bit_rate, uint32_t frame_rate) override; 70 void OnReceiveRatesUpdated(uint32_t bit_rate, uint32_t frame_rate) override;
70 void OnDiscardedPacketsUpdated(int discarded_packets) override; 71 void OnDiscardedPacketsUpdated(int discarded_packets) override;
71 void OnFrameCountsUpdated(const FrameCounts& frame_counts) override; 72 void OnFrameCountsUpdated(const FrameCounts& frame_counts) override;
72 void OnCompleteFrame(bool is_keyframe, size_t size_bytes) override; 73 void OnCompleteFrame(bool is_keyframe, size_t size_bytes) override;
73 void OnFrameBufferTimingsUpdated(int decode_ms, 74 void OnFrameBufferTimingsUpdated(int decode_ms,
(...skipping 31 matching lines...)
105 // TODO(tommi): This callback is basically the same thing as the one above. 106 // TODO(tommi): This callback is basically the same thing as the one above.
106 // We shouldn't need to support both. 107 // We shouldn't need to support both.
107 I420FrameCallback* const pre_render_callback_; 108 I420FrameCallback* const pre_render_callback_;
108 109
109 int64_t last_rtt_ms_ GUARDED_BY(crit_); 110 int64_t last_rtt_ms_ GUARDED_BY(crit_);
110 }; 111 };
111 112
112 } // namespace webrtc 113 } // namespace webrtc
113 114
114 #endif // WEBRTC_VIDEO_VIDEO_STREAM_DECODER_H_ 115 #endif // WEBRTC_VIDEO_VIDEO_STREAM_DECODER_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_receive_stream.cc ('k') | webrtc/video/video_stream_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine