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

Unified Diff: media/base/video_capture_types.cc

Issue 1036063002: MEDIASUBTYPE_RGB32 support for Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fallback in switch statement. Created 5 years, 9 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_capture_types.h ('k') | media/video/capture/win/sink_input_pin_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_capture_types.cc
diff --git a/media/base/video_capture_types.cc b/media/base/video_capture_types.cc
index 0e0bf1795f7c11bc1e0420cd2e6704b3f6215555..1528017456a35c43dde6abe8ee752c2e8a4156d6 100644
--- a/media/base/video_capture_types.cc
+++ b/media/base/video_capture_types.cc
@@ -47,6 +47,7 @@ size_t VideoCaptureFormat::ImageAllocationSize() const {
case PIXEL_FORMAT_RGB24:
result_frame_size *= 3;
break;
+ case PIXEL_FORMAT_RGB32:
case PIXEL_FORMAT_ARGB:
result_frame_size *= 4;
break;
@@ -80,6 +81,8 @@ std::string VideoCaptureFormat::PixelFormatToString(VideoPixelFormat format) {
return "UYVY";
case PIXEL_FORMAT_RGB24:
return "RGB24";
+ case PIXEL_FORMAT_RGB32:
+ return "RGB32";
case PIXEL_FORMAT_ARGB:
return "ARGB";
case PIXEL_FORMAT_MJPEG:
« no previous file with comments | « media/base/video_capture_types.h ('k') | media/video/capture/win/sink_input_pin_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698