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

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: change to gtest and add md5 verification Created 7 years, 1 month 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 850bebdea384352b1f1fb2474145a0c09628bce7..fb8c012d840969a6a6463d941acd48dd5f46d77f 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"
@@ -81,6 +82,12 @@ class CONTENT_EXPORT VaapiWrapper {
// Returns true if the VAAPI version is less than the specified version.
bool VAAPIVersionLessThan(int major, int minor);
+ // Get the surface data and return it as a VideoFrame. The VideoFrame
+ // contains I420 formatted data. Currently it only handles VASurface with
+ // NV12 format.
Pawel Osciak 2013/11/29 04:25:13 Perhaps it'd be a good idea to add a note that thi
chihchung 2013/11/29 14:06:30 Done.
+ scoped_refptr<media::VideoFrame> VideoFrameFromVASurface(
+ VASurfaceID va_surface_id);
+
private:
VaapiWrapper();

Powered by Google App Engine
This is Rietveld 408576698