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

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

Issue 2089773002: Add EncodedImageCallback::OnEncodedImage(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . Created 4 years, 4 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
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/video/vie_encoder.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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 void EncodeVideoFrame(const VideoFrame& video_frame); 76 void EncodeVideoFrame(const VideoFrame& video_frame);
77 void SendKeyFrame(); 77 void SendKeyFrame();
78 78
79 // Returns the time when the encoder last received an input frame or produced 79 // Returns the time when the encoder last received an input frame or produced
80 // an encoded frame. 80 // an encoded frame.
81 int64_t time_of_last_frame_activity_ms(); 81 int64_t time_of_last_frame_activity_ms();
82 82
83 83
84 // Implements EncodedImageCallback. 84 // Implements EncodedImageCallback.
85 int32_t Encoded(const EncodedImage& encoded_image, 85 EncodedImageCallback::Result OnEncodedImage(
86 const CodecSpecificInfo* codec_specific_info, 86 const EncodedImage& encoded_image,
87 const RTPFragmentationHeader* fragmentation) override; 87 const CodecSpecificInfo* codec_specific_info,
88 const RTPFragmentationHeader* fragmentation) override;
88 89
89 // Implements VideoSendStatisticsCallback. 90 // Implements VideoSendStatisticsCallback.
90 void SendStatistics(uint32_t bit_rate, 91 void SendStatistics(uint32_t bit_rate,
91 uint32_t frame_rate, 92 uint32_t frame_rate,
92 const std::string& encoder_name) override; 93 const std::string& encoder_name) override;
93 94
94 // virtual to test EncoderStateFeedback with mocks. 95 // virtual to test EncoderStateFeedback with mocks.
95 virtual void OnReceivedIntraFrameRequest(size_t stream_index); 96 virtual void OnReceivedIntraFrameRequest(size_t stream_index);
96 virtual void OnReceivedSLI(uint8_t picture_id); 97 virtual void OnReceivedSLI(uint8_t picture_id);
97 virtual void OnReceivedRPSI(uint64_t picture_id); 98 virtual void OnReceivedRPSI(uint64_t picture_id);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); 131 uint8_t picture_id_sli_ GUARDED_BY(data_cs_);
131 bool has_received_rpsi_ GUARDED_BY(data_cs_); 132 bool has_received_rpsi_ GUARDED_BY(data_cs_);
132 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); 133 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_);
133 134
134 bool video_suspended_ GUARDED_BY(data_cs_); 135 bool video_suspended_ GUARDED_BY(data_cs_);
135 }; 136 };
136 137
137 } // namespace webrtc 138 } // namespace webrtc
138 139
139 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ 140 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698