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

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

Issue 558623002: Video capture: Refactor GetBestMatchedFormat from Win to OS independent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sort pixel formats in order of preference 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 36cc54ad827955005e5fd566afa1dae78dfb1f29..9eee9cf8f3b8e214b7544cb303bb65d15248a00b 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 {
mcasas 2014/10/13 08:18:45 You have to update histograms.xml as well https://
- 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,
};

Powered by Google App Engine
This is Rietveld 408576698