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

Unified Diff: media/video/capture/video_capture_types.h

Issue 660493002: VideoCapture: Sort VideoPixelFormat in order of preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: obsolete UMA Created 6 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/video/capture/video_capture_types.h
diff --git a/media/video/capture/video_capture_types.h b/media/video/capture/video_capture_types.h
index 80804318030a572a9f6b79cf582cd3b75aea4b77..91118b91ff238114790c3801f404007c890b9ecf 100644
--- a/media/video/capture/video_capture_types.h
+++ b/media/video/capture/video_capture_types.h
@@ -16,18 +16,18 @@ namespace media {
// shared with device manager.
typedef int VideoCaptureSessionId;
-// Color formats from camera.
+// Color formats from camera. This list is sorted in order of preference.
enum VideoPixelFormat {
- PIXEL_FORMAT_UNKNOWN, // Color format not set.
PIXEL_FORMAT_I420,
- PIXEL_FORMAT_YUY2,
+ PIXEL_FORMAT_YV12,
+ PIXEL_FORMAT_NV21,
PIXEL_FORMAT_UYVY,
+ PIXEL_FORMAT_YUY2,
PIXEL_FORMAT_RGB24,
PIXEL_FORMAT_ARGB,
PIXEL_FORMAT_MJPEG,
- PIXEL_FORMAT_NV21,
- PIXEL_FORMAT_YV12,
PIXEL_FORMAT_TEXTURE, // Capture format as a GL texture.
+ PIXEL_FORMAT_UNKNOWN, // Color format not set.
PIXEL_FORMAT_MAX,
};
« no previous file with comments | « content/browser/renderer_host/media/video_capture_controller.cc ('k') | media/video/capture/video_capture_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698