| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // The video codec type, as reported to WebRTC. | 74 // The video codec type, as reported to WebRTC. |
| 75 const webrtc::VideoCodecType video_codec_type_; | 75 const webrtc::VideoCodecType video_codec_type_; |
| 76 | 76 |
| 77 // The video codec profile, to configure the encoder to encode to. | 77 // The video codec profile, to configure the encoder to encode to. |
| 78 const media::VideoCodecProfile video_codec_profile_; | 78 const media::VideoCodecProfile video_codec_profile_; |
| 79 | 79 |
| 80 // Factory for creating VEAs, shared memory buffers, etc. | 80 // Factory for creating VEAs, shared memory buffers, etc. |
| 81 scoped_refptr<RendererGpuVideoAcceleratorFactories> gpu_factories_; | 81 scoped_refptr<RendererGpuVideoAcceleratorFactories> gpu_factories_; |
| 82 | 82 |
| 83 // Weak pointer and factory for posting back VEA::Client notifications to | 83 // Weak pointer factory for posting back VEA::Client notifications to |
| 84 // RTCVideoEncoder. | 84 // RTCVideoEncoder. |
| 85 scoped_ptr<base::WeakPtrFactory<RTCVideoEncoder> > weak_this_factory_; | 85 base::WeakPtrFactory<RTCVideoEncoder> weak_this_factory_; |
| 86 | 86 |
| 87 // webrtc::VideoEncoder encode complete callback. | 87 // webrtc::VideoEncoder encode complete callback. |
| 88 webrtc::EncodedImageCallback* encoded_image_callback_; | 88 webrtc::EncodedImageCallback* encoded_image_callback_; |
| 89 | 89 |
| 90 // The RTCVideoEncoder::Impl that does all the work. | 90 // The RTCVideoEncoder::Impl that does all the work. |
| 91 scoped_refptr<Impl> impl_; | 91 scoped_refptr<Impl> impl_; |
| 92 | 92 |
| 93 // We cannot immediately return error conditions to the WebRTC user of this | 93 // We cannot immediately return error conditions to the WebRTC user of this |
| 94 // class, as there is no error callback in the webrtc::VideoEncoder interface. | 94 // class, as there is no error callback in the webrtc::VideoEncoder interface. |
| 95 // Instead, we cache an error status here and return it the next time an | 95 // Instead, we cache an error status here and return it the next time an |
| 96 // interface entry point is called. | 96 // interface entry point is called. |
| 97 int32_t impl_status_; | 97 int32_t impl_status_; |
| 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_ |
| OLD | NEW |