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

Side by Side Diff: content/renderer/media/rtc_video_encoder.h

Issue 746123002: Roll WebRTC, Libjingle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge in changes from pkasting Created 6 years, 1 month 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 | « DEPS ('k') | content/renderer/media/rtc_video_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 // 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 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 public: 47 public:
48 RTCVideoEncoder( 48 RTCVideoEncoder(
49 webrtc::VideoCodecType type, 49 webrtc::VideoCodecType type,
50 const scoped_refptr<media::GpuVideoAcceleratorFactories>& gpu_factories); 50 const scoped_refptr<media::GpuVideoAcceleratorFactories>& gpu_factories);
51 ~RTCVideoEncoder() override; 51 ~RTCVideoEncoder() override;
52 52
53 // webrtc::VideoEncoder implementation. Tasks are posted to |impl_| using the 53 // webrtc::VideoEncoder implementation. Tasks are posted to |impl_| using the
54 // appropriate VEA methods. 54 // appropriate VEA methods.
55 int32_t InitEncode(const webrtc::VideoCodec* codec_settings, 55 int32_t InitEncode(const webrtc::VideoCodec* codec_settings,
56 int32_t number_of_cores, 56 int32_t number_of_cores,
57 uint32_t max_payload_size) override; 57 size_t max_payload_size) override;
58 int32_t Encode( 58 int32_t Encode(
59 const webrtc::I420VideoFrame& input_image, 59 const webrtc::I420VideoFrame& input_image,
60 const webrtc::CodecSpecificInfo* codec_specific_info, 60 const webrtc::CodecSpecificInfo* codec_specific_info,
61 const std::vector<webrtc::VideoFrameType>* frame_types) override; 61 const std::vector<webrtc::VideoFrameType>* frame_types) override;
62 int32_t RegisterEncodeCompleteCallback( 62 int32_t RegisterEncodeCompleteCallback(
63 webrtc::EncodedImageCallback* callback) override; 63 webrtc::EncodedImageCallback* callback) override;
64 int32_t Release() override; 64 int32_t Release() override;
65 int32_t SetChannelParameters(uint32_t packet_loss, int rtt) override; 65 int32_t SetChannelParameters(uint32_t packet_loss, int rtt) override;
66 int32_t SetRates(uint32_t new_bit_rate, uint32_t frame_rate) override; 66 int32_t SetRates(uint32_t new_bit_rate, uint32_t frame_rate) override;
67 67
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // RTCVideoEncoder. 103 // RTCVideoEncoder.
104 // NOTE: Weak pointers must be invalidated before all other member variables. 104 // NOTE: Weak pointers must be invalidated before all other member variables.
105 base::WeakPtrFactory<RTCVideoEncoder> weak_factory_; 105 base::WeakPtrFactory<RTCVideoEncoder> weak_factory_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoder); 107 DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoder);
108 }; 108 };
109 109
110 } // namespace content 110 } // namespace content
111 111
112 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_ 112 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_
OLDNEW
« no previous file with comments | « DEPS ('k') | content/renderer/media/rtc_video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698