Index: content/common/gpu/media/vaapi_wrapper.h |
diff --git a/content/common/gpu/media/vaapi_wrapper.h b/content/common/gpu/media/vaapi_wrapper.h |
index aa277fd3860a86d9a4dbbb594e26f52033592018..d496d4a5a1081df7c9572ea400e395cf5fbbbcde 100644 |
--- a/content/common/gpu/media/vaapi_wrapper.h |
+++ b/content/common/gpu/media/vaapi_wrapper.h |
@@ -78,6 +78,14 @@ class CONTENT_EXPORT VaapiWrapper { |
Pixmap x_pixmap, |
gfx::Size dest_size); |
+ // Get the surface data and return it in |buffer|, which has size |size|. |
+ // The returned buffer contains data in I420 format and needs to be |
+ // released by calling free(). The function returns true if successful. |
Pawel Osciak
2013/10/20 23:53:11
Can you instead use VideoFrame class for this?
chihchung
2013/10/21 09:33:05
Done.
|
+ // Currently it only handles VASurface with NV12 format. |
+ bool GetI420FromSurface(VASurfaceID va_surface_id, |
+ void** buffer, |
+ size_t* size); |
+ |
// Do any necessary initialization before the sandbox is enabled. |
static void PreSandboxInitialization(); |