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

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

Issue 1822983002: Support external buffer import in VDA interface and add a V4L2SVDA impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_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
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
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_
OLDNEW
« no previous file with comments | « content/public/gpu/gpu_video_decode_accelerator_factory.cc ('k') | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698