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

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, 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 de7440ae20cf386df0e2b0caa8a52ded697f5c26..f8cb9cb38f92bbfc5e561b74cca23f280dee82fe 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -42,6 +42,31 @@ scoped_refptr<VideoFrame> VideoFrame::CreateFrame(
return frame;
}
+static std::string FormatToString(VideoFrame::Format format) {
+ switch(format){
DaleCurtis 2013/08/05 19:58:39 Space after )
Ty Overby 2013/08/05 20:14:59 Done.
+ 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::NATIVE_TEXTURE:
+ return "NATIVE_TEXTURE";
+#if defined(GOOGLE_TV)
+ case VideoFrame::Format::HOLE:
+ return "HOLE";
+#endif
+ case VideoFrame::Format::YV12A:
+ return "YV12A";
+ }
+}
+
// static
bool VideoFrame::IsValidConfig(VideoFrame::Format format,
const gfx::Size& coded_size,

Powered by Google App Engine
This is Rietveld 408576698