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

Unified Diff: content/common/gpu/media/vaapi_wrapper.h

Issue 27498002: Add vaapi_h264_decoder_test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 7 years, 2 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
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();

Powered by Google App Engine
This is Rietveld 408576698