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

Unified Diff: media/base/video_frame.cc

Issue 1316493004: Add support for converting I420 software frames into NV12 hardware frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snapshot
Patch Set: Fix win_x64 build Created 5 years, 4 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: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 662d6aa1c59edc31bdc55eca32df81001d43ec85..ec70f36534199b622f40df961e5c308653033116 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -223,7 +223,9 @@ scoped_refptr<VideoFrame> VideoFrame::WrapNativeTexture(
const gfx::Rect& visible_rect,
const gfx::Size& natural_size,
base::TimeDelta timestamp) {
- if (format != PIXEL_FORMAT_ARGB && format != PIXEL_FORMAT_UYVY) {
+ if (format != PIXEL_FORMAT_ARGB &&
+ format != PIXEL_FORMAT_UYVY &&
+ format != PIXEL_FORMAT_NV12) {
Daniele Castagna 2015/08/25 15:08:42 You need to add the same to the DCHECK in media/bl
Andre 2015/08/25 18:19:57 I'm not sure how to deal with it there, let me loo
DLOG(ERROR) << "Unsupported pixel format supported, got "
<< VideoPixelFormatToString(format);
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698