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

Side by Side Diff: media/cast/video_receiver/video_receiver.cc

Issue 214273003: [Cast] Remove AudioDecoder's dependency on WebRTC, and refactor/clean-up AudioReceiver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/video_receiver/video_receiver.h" 5 #include "media/cast/video_receiver/video_receiver.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 21 matching lines...) Expand all
32 // Used to pass payload data into the video receiver. 32 // Used to pass payload data into the video receiver.
33 class LocalRtpVideoData : public RtpData { 33 class LocalRtpVideoData : public RtpData {
34 public: 34 public:
35 explicit LocalRtpVideoData(VideoReceiver* video_receiver) 35 explicit LocalRtpVideoData(VideoReceiver* video_receiver)
36 : video_receiver_(video_receiver) {} 36 : video_receiver_(video_receiver) {}
37 37
38 virtual ~LocalRtpVideoData() {} 38 virtual ~LocalRtpVideoData() {}
39 39
40 virtual void OnReceivedPayloadData(const uint8* payload_data, 40 virtual void OnReceivedPayloadData(const uint8* payload_data,
41 size_t payload_size, 41 size_t payload_size,
42 const RtpCastHeader* rtp_header) OVERRIDE { 42 const RtpCastHeader& rtp_header) OVERRIDE {
43 video_receiver_->IncomingParsedRtpPacket( 43 video_receiver_->IncomingParsedRtpPacket(
44 payload_data, payload_size, *rtp_header); 44 payload_data, payload_size, rtp_header);
45 } 45 }
46 46
47 private: 47 private:
48 VideoReceiver* video_receiver_; 48 VideoReceiver* video_receiver_;
49 49
50 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalRtpVideoData); 50 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalRtpVideoData);
51 }; 51 };
52 52
53 // Local implementation of RtpPayloadFeedback (defined in rtp_defines.h) 53 // Local implementation of RtpPayloadFeedback (defined in rtp_defines.h)
54 // Used to convey cast-specific feedback from receiver to sender. 54 // Used to convey cast-specific feedback from receiver to sender.
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 } 550 }
551 551
552 void VideoReceiver::UpdateTargetDelay() { 552 void VideoReceiver::UpdateTargetDelay() {
553 NOTIMPLEMENTED(); 553 NOTIMPLEMENTED();
554 rtcp_->SetTargetDelay(target_delay_delta_); 554 rtcp_->SetTargetDelay(target_delay_delta_);
555 target_delay_cb_.Run(target_delay_delta_); 555 target_delay_cb_.Run(target_delay_delta_);
556 } 556 }
557 557
558 } // namespace cast 558 } // namespace cast
559 } // namespace media 559 } // namespace media
OLDNEW
« media/cast/audio_receiver/audio_receiver.cc ('K') | « media/cast/test/utility/in_process_receiver.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698