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

Side by Side Diff: webrtc/modules/video_coding/video_receiver.cc

Issue 1765443002: Added log messages for important call setup events: first packet sent/received (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Code review feedback; added unit tests for OneTimeEvent Created 4 years, 8 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
« nohup.out ('K') | « webrtc/modules/video_coding/video_coding_impl.h ('k') | no next file » | 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 #ifdef DEBUG_DECODER_BIT_STREAM 317 #ifdef DEBUG_DECODER_BIT_STREAM
318 if (_bitStreamBeforeDecoder != NULL) { 318 if (_bitStreamBeforeDecoder != NULL) {
319 // Write bit stream to file for debugging purposes 319 // Write bit stream to file for debugging purposes
320 if (fwrite(frame->Buffer(), 1, frame->Length(), _bitStreamBeforeDecoder) != 320 if (fwrite(frame->Buffer(), 1, frame->Length(), _bitStreamBeforeDecoder) !=
321 frame->Length()) { 321 frame->Length()) {
322 return -1; 322 return -1;
323 } 323 }
324 } 324 }
325 #endif 325 #endif
326
327 if (first_frame_received_()) {
328 LOG(LS_INFO) << "Received first decodable video frame, complete = "
329 << (frame->Complete() ? "true" : "false");
330 }
331
326 const int32_t ret = Decode(*frame); 332 const int32_t ret = Decode(*frame);
327 _receiver.ReleaseFrame(frame); 333 _receiver.ReleaseFrame(frame);
328 return ret; 334 return ret;
329 } 335 }
330 336
331 int32_t VideoReceiver::RequestSliceLossIndication( 337 int32_t VideoReceiver::RequestSliceLossIndication(
332 const uint64_t pictureID) const { 338 const uint64_t pictureID) const {
333 TRACE_EVENT1("webrtc", "RequestSLI", "picture_id", pictureID); 339 TRACE_EVENT1("webrtc", "RequestSLI", "picture_id", pictureID);
334 CriticalSectionScoped cs(process_crit_sect_.get()); 340 CriticalSectionScoped cs(process_crit_sect_.get());
335 if (_frameTypeCallback != NULL) { 341 if (_frameTypeCallback != NULL) {
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 } 546 }
541 547
542 void VideoReceiver::RegisterPreDecodeImageCallback( 548 void VideoReceiver::RegisterPreDecodeImageCallback(
543 EncodedImageCallback* observer) { 549 EncodedImageCallback* observer) {
544 CriticalSectionScoped cs(_receiveCritSect); 550 CriticalSectionScoped cs(_receiveCritSect);
545 pre_decode_image_callback_ = observer; 551 pre_decode_image_callback_ = observer;
546 } 552 }
547 553
548 } // namespace vcm 554 } // namespace vcm
549 } // namespace webrtc 555 } // namespace webrtc
OLDNEW
« nohup.out ('K') | « webrtc/modules/video_coding/video_coding_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698