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

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

Issue 1412943003: Update VideoFrameType to FrameType in RTC coders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 // 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 ~RTCVideoEncoder() override; 43 ~RTCVideoEncoder() override;
44 44
45 // webrtc::VideoEncoder implementation. Tasks are posted to |impl_| using the 45 // webrtc::VideoEncoder implementation. Tasks are posted to |impl_| using the
46 // appropriate VEA methods. 46 // appropriate VEA methods.
47 int32_t InitEncode(const webrtc::VideoCodec* codec_settings, 47 int32_t InitEncode(const webrtc::VideoCodec* codec_settings,
48 int32_t number_of_cores, 48 int32_t number_of_cores,
49 size_t max_payload_size) override; 49 size_t max_payload_size) override;
50 int32_t Encode( 50 int32_t Encode(
51 const webrtc::VideoFrame& input_image, 51 const webrtc::VideoFrame& input_image,
52 const webrtc::CodecSpecificInfo* codec_specific_info, 52 const webrtc::CodecSpecificInfo* codec_specific_info,
53 const std::vector<webrtc::VideoFrameType>* frame_types) override; 53 const std::vector<webrtc::FrameType>* frame_types) override;
54 int32_t RegisterEncodeCompleteCallback( 54 int32_t RegisterEncodeCompleteCallback(
55 webrtc::EncodedImageCallback* callback) override; 55 webrtc::EncodedImageCallback* callback) override;
56 int32_t Release() override; 56 int32_t Release() override;
57 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; 57 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override;
58 int32_t SetRates(uint32_t new_bit_rate, uint32_t frame_rate) override; 58 int32_t SetRates(uint32_t new_bit_rate, uint32_t frame_rate) override;
59 59
60 private: 60 private:
61 class Impl; 61 class Impl;
62 friend class RTCVideoEncoder::Impl; 62 friend class RTCVideoEncoder::Impl;
63 63
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // RTCVideoEncoder. 95 // RTCVideoEncoder.
96 // NOTE: Weak pointers must be invalidated before all other member variables. 96 // NOTE: Weak pointers must be invalidated before all other member variables.
97 base::WeakPtrFactory<RTCVideoEncoder> weak_factory_; 97 base::WeakPtrFactory<RTCVideoEncoder> weak_factory_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoder); 99 DISALLOW_COPY_AND_ASSIGN(RTCVideoEncoder);
100 }; 100 };
101 101
102 } // namespace content 102 } // namespace content
103 103
104 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_ 104 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_ENCODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698