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

Unified Diff: media/base/video_frame.cc

Issue 21953003: Added logging calls to FFmpegDemuxer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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 de7440ae20cf386df0e2b0caa8a52ded697f5c26..b37c439f85e22b7b9c4976e6bac028a1f7becd74 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -42,6 +42,27 @@ scoped_refptr<VideoFrame> VideoFrame::CreateFrame(
return frame;
}
+static std::string FormatToString(VideoFrame::Format format) {
+ switch(format){
+ case VideoFrame::Format::INVALID:
+ return "INVALID";
+ case VideoFrame::Format::RGB32:
+ return "RGB32";
+ case VideoFrame::Format::YV12:
+ return "YV12";
+ case VideoFrame::Format::YV16:
+ return "YV16";
+ case VideoFrame::Format::EMPTY:
+ return "EMPTY";
+ case VideoFrame::Format::I420:
+ return "I420";
+ case VideoFrame::Format::YV12A:
+ return "YV12A";
+ case VideoFrame::Format::NATIVE_TEXTURE:
+ return "NATIVE_TEXTURE";
scherkus (not reviewing) 2013/08/03 00:17:18 try to have this order match the order defined in
Ty Overby 2013/08/05 19:18:45 Done.
+ }
+}
+
// static
bool VideoFrame::IsValidConfig(VideoFrame::Format format,
const gfx::Size& coded_size,

Powered by Google App Engine
This is Rietveld 408576698