OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |