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

Side by Side Diff: media/renderers/gpu_video_accelerator_factories.h

Issue 2648633005: cros: Support YUYV format for GPU memory buffer video frames
Patch Set: Enable YUYV GPU memory buffer video frames Created 3 years, 10 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 MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 5 #ifndef MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual ~ScopedGLContextLock(){}; 56 virtual ~ScopedGLContextLock(){};
57 57
58 private: 58 private:
59 DISALLOW_COPY_AND_ASSIGN(ScopedGLContextLock); 59 DISALLOW_COPY_AND_ASSIGN(ScopedGLContextLock);
60 }; 60 };
61 61
62 enum class OutputFormat { 62 enum class OutputFormat {
63 UNDEFINED = 0, // Unset state 63 UNDEFINED = 0, // Unset state
64 I420, // 3 x R8 GMBs 64 I420, // 3 x R8 GMBs
65 UYVY, // One 422 GMB 65 UYVY, // One 422 GMB
66 YUYV, // One YUYV GMB
66 NV12_SINGLE_GMB, // One NV12 GMB 67 NV12_SINGLE_GMB, // One NV12 GMB
67 NV12_DUAL_GMB, // One R8, one RG88 GMB 68 NV12_DUAL_GMB, // One R8, one RG88 GMB
68 }; 69 };
69 70
70 // Return whether GPU encoding/decoding is enabled. 71 // Return whether GPU encoding/decoding is enabled.
71 virtual bool IsGpuVideoAcceleratorEnabled() = 0; 72 virtual bool IsGpuVideoAcceleratorEnabled() = 0;
72 73
73 // Return the channel token, or an empty token if the channel is unusable. 74 // Return the channel token, or an empty token if the channel is unusable.
74 virtual base::UnguessableToken GetChannelToken() = 0; 75 virtual base::UnguessableToken GetChannelToken() = 0;
75 76
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 GetVideoEncodeAcceleratorSupportedProfiles() = 0; 130 GetVideoEncodeAcceleratorSupportedProfiles() = 0;
130 131
131 protected: 132 protected:
132 friend class base::RefCounted<GpuVideoAcceleratorFactories>; 133 friend class base::RefCounted<GpuVideoAcceleratorFactories>;
133 virtual ~GpuVideoAcceleratorFactories() {} 134 virtual ~GpuVideoAcceleratorFactories() {}
134 }; 135 };
135 136
136 } // namespace media 137 } // namespace media
137 138
138 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 139 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_memory_buffer_support.cc ('k') | media/renderers/mock_gpu_video_accelerator_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698