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

Unified Diff: media/video/gpu_memory_buffer_video_frame_pool.h

Issue 1871383003: media: Implement zero-copy video playback for ffmpeg. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/renderers/default_renderer_factory.cc ('k') | media/video/gpu_memory_buffer_video_frame_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/gpu_memory_buffer_video_frame_pool.h
diff --git a/media/video/gpu_memory_buffer_video_frame_pool.h b/media/video/gpu_memory_buffer_video_frame_pool.h
index 6a9973b21202b6ee00fa128854c28107e915e198..9d50fb02288db01c64f442e174a904657926ac6f 100644
--- a/media/video/gpu_memory_buffer_video_frame_pool.h
+++ b/media/video/gpu_memory_buffer_video_frame_pool.h
@@ -66,6 +66,15 @@ class MEDIA_EXPORT GpuMemoryBufferVideoFramePool {
const gfx::Size& natural_size,
base::TimeDelta timestamp);
+ enum class Usage {
+ GENERIC,
+ // FFMPEG requires wide padding.
+ FFMPEG,
+
+ LAST = FFMPEG
+ };
+ void SetUsage(Usage usage);
+
// The number of output planes to be copied in each iteration.
static size_t PlanesPerCopy(VideoPixelFormat format, size_t plane);
« no previous file with comments | « media/renderers/default_renderer_factory.cc ('k') | media/video/gpu_memory_buffer_video_frame_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698