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

Side by Side Diff: webrtc/video_engine/vie_encoder.cc

Issue 1371043003: Unify FrameType and VideoFrameType. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 587
588 { 588 {
589 CriticalSectionScoped cs(data_cs_.get()); 589 CriticalSectionScoped cs(data_cs_.get());
590 time_of_last_frame_activity_ms_ = TickTime::MillisecondTimestamp(); 590 time_of_last_frame_activity_ms_ = TickTime::MillisecondTimestamp();
591 } 591 }
592 592
593 if (stats_proxy_ != NULL) 593 if (stats_proxy_ != NULL)
594 stats_proxy_->OnSendEncodedImage(encoded_image, rtp_video_hdr); 594 stats_proxy_->OnSendEncodedImage(encoded_image, rtp_video_hdr);
595 595
596 return send_payload_router_->RoutePayload( 596 return send_payload_router_->RoutePayload(
597 VCMEncodedFrame::ConvertFrameType(encoded_image._frameType), payload_type, 597 encoded_image._frameType, payload_type, encoded_image._timeStamp,
598 encoded_image._timeStamp, encoded_image.capture_time_ms_, 598 encoded_image.capture_time_ms_, encoded_image._buffer,
599 encoded_image._buffer, encoded_image._length, &fragmentation_header, 599 encoded_image._length, &fragmentation_header, rtp_video_hdr)
600 rtp_video_hdr) ? 0 : -1; 600 ? 0
601 : -1;
601 } 602 }
602 603
603 int32_t ViEEncoder::SendStatistics(const uint32_t bit_rate, 604 int32_t ViEEncoder::SendStatistics(const uint32_t bit_rate,
604 const uint32_t frame_rate) { 605 const uint32_t frame_rate) {
605 if (stats_proxy_) 606 if (stats_proxy_)
606 stats_proxy_->OnOutgoingRate(frame_rate, bit_rate); 607 stats_proxy_->OnOutgoingRate(frame_rate, bit_rate);
607 return 0; 608 return 0;
608 } 609 }
609 610
610 void ViEEncoder::OnReceivedSLI(uint32_t /*ssrc*/, 611 void ViEEncoder::OnReceivedSLI(uint32_t /*ssrc*/,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 const uint32_t width, 755 const uint32_t width,
755 const uint32_t height) { 756 const uint32_t height) {
756 return vpm_->SetTargetResolution(width, height, frame_rate); 757 return vpm_->SetTargetResolution(width, height, frame_rate);
757 } 758 }
758 759
759 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) { 760 void QMVideoSettingsCallback::SetTargetFramerate(int frame_rate) {
760 vpm_->SetTargetFramerate(frame_rate); 761 vpm_->SetTargetFramerate(frame_rate);
761 } 762 }
762 763
763 } // namespace webrtc 764 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698