X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fmedia%2Fcast%2Fvideo_receiver%2Fvideo_receiver.h;h=38c8bc1db404df7d53f6405aa2834e48979c91bc;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=bb7b3a7a1c8d13fb4099f63fada1efefc55dcd54;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/media/cast/video_receiver/video_receiver.h b/src/media/cast/video_receiver/video_receiver.h index bb7b3a7..38c8bc1 100644 --- a/src/media/cast/video_receiver/video_receiver.h +++ b/src/media/cast/video_receiver/video_receiver.h @@ -16,17 +16,15 @@ #include "media/cast/cast_config.h" #include "media/cast/cast_environment.h" #include "media/cast/cast_receiver.h" +#include "media/cast/rtcp/receiver_rtcp_event_subscriber.h" #include "media/cast/rtcp/rtcp.h" #include "media/cast/rtp_receiver/rtp_receiver.h" #include "media/cast/rtp_receiver/rtp_receiver_defines.h" - -namespace crypto { -class Encryptor; -class SymmetricKey; -} +#include "media/cast/transport/utility/transport_encryption_handler.h" namespace media { namespace cast { + class Framer; class LocalRtpVideoData; class LocalRtpVideoFeedback; @@ -52,8 +50,7 @@ class VideoReceiver : public base::NonThreadSafe, void GetEncodedVideoFrame(const VideoFrameEncodedCallback& callback); // Insert a RTP packet to the video receiver. - void IncomingPacket(const uint8* packet, size_t length, - const base::Closure callback); + void IncomingPacket(scoped_ptr packet); protected: void IncomingParsedRtpPacket(const uint8* payload_data, @@ -78,7 +75,6 @@ class VideoReceiver : public base::NonThreadSafe, bool DecryptVideoFrame(scoped_ptr* video_frame); bool PullEncodedVideoFrame( - uint32 rtp_timestamp, bool next_frame, scoped_ptr* encoded_frame, base::TimeTicks* render_time); @@ -104,6 +100,11 @@ class VideoReceiver : public base::NonThreadSafe, scoped_ptr video_decoder_; scoped_refptr cast_environment_; + + // Subscribes to raw events. + // Processes raw audio events to be sent over to the cast sender via RTCP. + ReceiverRtcpEventSubscriber event_subscriber_; + scoped_ptr framer_; const transport::VideoCodec codec_; base::TimeDelta target_delay_delta_; @@ -113,11 +114,8 @@ class VideoReceiver : public base::NonThreadSafe, RtpReceiver rtp_receiver_; scoped_ptr rtcp_; scoped_ptr rtp_video_receiver_statistics_; - base::TimeTicks time_last_sent_cast_message_; base::TimeDelta time_offset_; // Sender-receiver offset estimation. - scoped_ptr decryptor_; - scoped_ptr decryption_key_; - std::string iv_mask_; + transport::TransportEncryptionHandler decryptor_; std::list queued_encoded_callbacks_; bool time_incoming_packet_updated_; base::TimeTicks time_incoming_packet_;