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

Unified Diff: media/base/video_frame.cc

Issue 45053003: Add UMA metrics for ffmpeg color ranges. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename FORMAT_MAX to NUM_FORMATS. Created 7 years, 2 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 a372889cb55a9f3ff2dedacdaf023e054cf56bf6..8ecf166cc3e858d4f43546fc4c63c220bd10fb7b 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -66,6 +66,8 @@ std::string VideoFrame::FormatToString(VideoFrame::Format format) {
#endif
case VideoFrame::YV12A:
return "YV12A";
+ case VideoFrame::NUM_FORMATS:
+ return "NUM_FORMATS";
}
NOTREACHED() << "Invalid videoframe format provided: " << format;
return "";
@@ -241,6 +243,7 @@ size_t VideoFrame::NumPlanes(Format format) {
return 4;
case VideoFrame::EMPTY:
case VideoFrame::INVALID:
+ case VideoFrame::NUM_FORMATS:
break;
}
NOTREACHED() << "Unsupported video frame format: " << format;
@@ -280,6 +283,7 @@ size_t VideoFrame::AllocationSize(Format format, const gfx::Size& coded_size) {
#if defined(GOOGLE_TV)
case VideoFrame::HOLE:
#endif
+ case VideoFrame::NUM_FORMATS:
break;
}
NOTREACHED() << "Unsupported video frame format: " << format;

Powered by Google App Engine
This is Rietveld 408576698