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

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: fix destruct order 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..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();

Powered by Google App Engine
This is Rietveld 408576698