| 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_DECODER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 bool SaveToPendingBuffers_Locked(const webrtc::EncodedImage& input_image, | 140 bool SaveToPendingBuffers_Locked(const webrtc::EncodedImage& input_image, |
| 141 const BufferData& buffer_data); | 141 const BufferData& buffer_data); |
| 142 | 142 |
| 143 // Gets SHM and moves pending buffers to decode buffers. | 143 // Gets SHM and moves pending buffers to decode buffers. |
| 144 void MovePendingBuffersToDecodeBuffers(); | 144 void MovePendingBuffersToDecodeBuffers(); |
| 145 | 145 |
| 146 scoped_refptr<media::VideoFrame> CreateVideoFrame( | 146 scoped_refptr<media::VideoFrame> CreateVideoFrame( |
| 147 const media::Picture& picture, | 147 const media::Picture& picture, |
| 148 const media::PictureBuffer& pb, | 148 const media::PictureBuffer& pb, |
| 149 uint32_t timestamp, | 149 uint32_t timestamp, |
| 150 const gfx::Rect& visible_rect); | 150 const gfx::Rect& visible_rect, |
| 151 media::VideoPixelFormat pixel_format); |
| 151 | 152 |
| 152 // Resets VDA. | 153 // Resets VDA. |
| 153 void ResetInternal(); | 154 void ResetInternal(); |
| 154 | 155 |
| 155 // Static method is to allow it to run even after RVD is deleted. | 156 // Static method is to allow it to run even after RVD is deleted. |
| 156 static void ReleaseMailbox(base::WeakPtr<RTCVideoDecoder> decoder, | 157 static void ReleaseMailbox(base::WeakPtr<RTCVideoDecoder> decoder, |
| 157 media::GpuVideoAcceleratorFactories* factories, | 158 media::GpuVideoAcceleratorFactories* factories, |
| 158 int64_t picture_buffer_id, | 159 int64_t picture_buffer_id, |
| 159 uint32_t texture_id, | 160 uint32_t texture_id, |
| 160 const gpu::SyncToken& release_sync_token); | 161 const gpu::SyncToken& release_sync_token); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 // Must be destroyed, or invalidated, on |vda_loop_proxy_| | 296 // Must be destroyed, or invalidated, on |vda_loop_proxy_| |
| 296 // NOTE: Weak pointers must be invalidated before all other member variables. | 297 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 297 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; | 298 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; |
| 298 | 299 |
| 299 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); | 300 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); |
| 300 }; | 301 }; |
| 301 | 302 |
| 302 } // namespace content | 303 } // namespace content |
| 303 | 304 |
| 304 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 305 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
| OLD | NEW |