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..8785ff6a487f803010054c0554d0b2ddc0cdce17 100644 |
--- a/content/common/gpu/media/vaapi_wrapper.h |
+++ b/content/common/gpu/media/vaapi_wrapper.h |
@@ -15,6 +15,7 @@ |
#include "content/common/content_export.h" |
#include "content/common/gpu/media/va_surface.h" |
#include "media/base/video_decoder_config.h" |
+#include "media/base/video_frame.h" |
#include "third_party/libva/va/va.h" |
#include "third_party/libva/va/va_x11.h" |
#include "ui/gfx/size.h" |
@@ -78,6 +79,12 @@ class CONTENT_EXPORT VaapiWrapper { |
Pixmap x_pixmap, |
gfx::Size dest_size); |
+ // Get the surface data and return it as a VideoFrame. The VideoFrame |
+ // contains I420 formatted data. Currently it only handles VASurface with |
+ // NV12 format. |
+ scoped_refptr<media::VideoFrame> GetI420FromSurface( |
Pawel Osciak
2013/11/21 06:31:41
Rename to VideoFrameFromVASurface or something lik
chihchung
2013/11/21 12:17:32
Done.
|
+ VASurfaceID va_surface_id); |
+ |
// Do any necessary initialization before the sandbox is enabled. |
static void PreSandboxInitialization(); |