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

Unified Diff: webrtc/modules/video_capture/windows/sink_filter_ds.cc

Issue 2765243002: Delete RawVideoType enum, use the VideoType enum instead. (Closed)
Patch Set: Define constant webrtc::kI420, for backwards compatibility. Created 3 years, 8 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: webrtc/modules/video_capture/windows/sink_filter_ds.cc
diff --git a/webrtc/modules/video_capture/windows/sink_filter_ds.cc b/webrtc/modules/video_capture/windows/sink_filter_ds.cc
index 7e995560818528fa42cb6eb767ad5fb3656a4f11..1fca73f33c72427c18b98473c1692927d21beb09 100644
--- a/webrtc/modules/video_capture/windows/sink_filter_ds.cc
+++ b/webrtc/modules/video_capture/windows/sink_filter_ds.cc
@@ -205,39 +205,39 @@ CaptureInputPin::CheckMediaType ( IN const CMediaType * pMediaType)
if(*SubType == MEDIASUBTYPE_MJPG
&& pvi->bmiHeader.biCompression == MAKEFOURCC('M','J','P','G'))
{
- _resultingCapability.rawType = kVideoMJPEG;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kMJPEG;
+ return S_OK; // This format is acceptable.
}
if(*SubType == MEDIASUBTYPE_I420
&& pvi->bmiHeader.biCompression == MAKEFOURCC('I','4','2','0'))
{
- _resultingCapability.rawType = kVideoI420;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kI420;
+ return S_OK; // This format is acceptable.
}
if(*SubType == MEDIASUBTYPE_YUY2
&& pvi->bmiHeader.biCompression == MAKEFOURCC('Y','U','Y','2'))
{
- _resultingCapability.rawType = kVideoYUY2;
- ::Sleep(60); // workaround for bad driver
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kYUY2;
+ ::Sleep(60); // workaround for bad driver
+ return S_OK; // This format is acceptable.
}
if(*SubType == MEDIASUBTYPE_UYVY
&& pvi->bmiHeader.biCompression == MAKEFOURCC('U','Y','V','Y'))
{
- _resultingCapability.rawType = kVideoUYVY;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kUYVY;
+ return S_OK; // This format is acceptable.
}
if(*SubType == MEDIASUBTYPE_HDYC)
{
- _resultingCapability.rawType = kVideoUYVY;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kUYVY;
+ return S_OK; // This format is acceptable.
}
if(*SubType == MEDIASUBTYPE_RGB24
&& pvi->bmiHeader.biCompression == BI_RGB)
{
- _resultingCapability.rawType = kVideoRGB24;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kRGB24;
+ return S_OK; // This format is acceptable.
}
}
if(*formatType == FORMAT_VideoInfo2)
@@ -272,38 +272,38 @@ CaptureInputPin::CheckMediaType ( IN const CMediaType * pMediaType)
if(*SubType == MEDIASUBTYPE_MJPG
&& pvi->bmiHeader.biCompression == MAKEFOURCC('M','J','P','G'))
{
- _resultingCapability.rawType = kVideoMJPEG;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kMJPEG;
+ return S_OK; // This format is acceptable.
}
if(*SubType == MEDIASUBTYPE_I420
&& pvi->bmiHeader.biCompression == MAKEFOURCC('I','4','2','0'))
{
- _resultingCapability.rawType = kVideoI420;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kI420;
+ return S_OK; // This format is acceptable.
}
if(*SubType == MEDIASUBTYPE_YUY2
&& pvi->bmiHeader.biCompression == MAKEFOURCC('Y','U','Y','2'))
{
- _resultingCapability.rawType = kVideoYUY2;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kYUY2;
+ return S_OK; // This format is acceptable.
}
if(*SubType == MEDIASUBTYPE_UYVY
&& pvi->bmiHeader.biCompression == MAKEFOURCC('U','Y','V','Y'))
{
- _resultingCapability.rawType = kVideoUYVY;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kUYVY;
+ return S_OK; // This format is acceptable.
}
if(*SubType == MEDIASUBTYPE_HDYC)
{
- _resultingCapability.rawType = kVideoUYVY;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kUYVY;
+ return S_OK; // This format is acceptable.
}
if(*SubType == MEDIASUBTYPE_RGB24
&& pvi->bmiHeader.biCompression == BI_RGB)
{
- _resultingCapability.rawType = kVideoRGB24;
- return S_OK; // This format is acceptable.
+ _resultingCapability.videoType = VideoType::kRGB24;
+ return S_OK; // This format is acceptable.
}
}
return E_INVALIDARG;
« no previous file with comments | « webrtc/modules/video_capture/windows/device_info_ds.cc ('k') | webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698