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

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: switched to using double instead of string for file size 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
« no previous file with comments | « media/base/video_frame.h ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index de7440ae20cf386df0e2b0caa8a52ded697f5c26..10ad0511ffa925ef60a9431d6699e0315c95190c 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -43,6 +43,34 @@ scoped_refptr<VideoFrame> VideoFrame::CreateFrame(
}
// static
+std::string VideoFrame::FormatToString(VideoFrame::Format format) {
+ switch (format) {
+ case VideoFrame::INVALID:
+ return "INVALID";
+ case VideoFrame::RGB32:
+ return "RGB32";
+ case VideoFrame::YV12:
+ return "YV12";
+ case VideoFrame::YV16:
+ return "YV16";
+ case VideoFrame::EMPTY:
+ return "EMPTY";
+ case VideoFrame::I420:
+ return "I420";
+ case VideoFrame::NATIVE_TEXTURE:
+ return "NATIVE_TEXTURE";
+#if defined(GOOGLE_TV)
+ case VideoFrame::HOLE:
+ return "HOLE";
+#endif
+ case VideoFrame::YV12A:
+ return "YV12A";
+ }
+ NOTREACHED() << "Invalid videoframe format provided: " << format;
+ return "";
+}
+
+// static
bool VideoFrame::IsValidConfig(VideoFrame::Format format,
const gfx::Size& coded_size,
const gfx::Rect& visible_rect,
« no previous file with comments | « media/base/video_frame.h ('k') | media/filters/ffmpeg_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698