| Index: content/browser/renderer_host/media/video_capture_controller.cc
|
| diff --git a/content/browser/renderer_host/media/video_capture_controller.cc b/content/browser/renderer_host/media/video_capture_controller.cc
|
| index dc1609b28af256691b7f906481d08f040767a1d7..372e8b0ecd4231947fae566d448502b18d674d1e 100644
|
| --- a/content/browser/renderer_host/media/video_capture_controller.cc
|
| +++ b/content/browser/renderer_host/media/video_capture_controller.cc
|
| @@ -288,18 +288,18 @@ void VideoCaptureController::OnIncomingCapturedFrame(const uint8* data,
|
|
|
| // Do color conversion from the camera format to I420.
|
| switch (frame_info_.color) {
|
| - case media::VideoCaptureDevice::kColorUnknown: // Color format not set.
|
| + case media::VideoFrame::kColorUnknown: // Color format not set.
|
| break;
|
| - case media::VideoCaptureDevice::kI420: {
|
| + case media::VideoFrame::kI420: {
|
| memcpy(target, data, (frame_info_.width * frame_info_.height * 3) / 2);
|
| break;
|
| }
|
| - case media::VideoCaptureDevice::kYUY2: {
|
| + case media::VideoFrame::kYUY2: {
|
| media::ConvertYUY2ToYUV(data, yplane, uplane, vplane, frame_info_.width,
|
| frame_info_.height);
|
| break;
|
| }
|
| - case media::VideoCaptureDevice::kRGB24: {
|
| + case media::VideoFrame::kRGB24: {
|
| int ystride = frame_info_.width;
|
| int uvstride = frame_info_.width / 2;
|
| #if defined(OS_WIN) // RGB on Windows start at the bottom line.
|
| @@ -315,7 +315,7 @@ void VideoCaptureController::OnIncomingCapturedFrame(const uint8* data,
|
| rgb_stride, ystride, uvstride);
|
| break;
|
| }
|
| - case media::VideoCaptureDevice::kARGB: {
|
| + case media::VideoFrame::kARGB: {
|
| media::ConvertRGB32ToYUV(data, yplane, uplane, vplane, frame_info_.width,
|
| frame_info_.height, frame_info_.width * 4,
|
| frame_info_.width, frame_info_.width / 2);
|
| @@ -339,7 +339,7 @@ void VideoCaptureController::OnError() {
|
| }
|
|
|
| void VideoCaptureController::OnFrameInfo(
|
| - const media::VideoCaptureDevice::Capability& info) {
|
| + const media::VideoCaptureCapability& info) {
|
| frame_info_= info;
|
| BrowserThread::PostTask(BrowserThread::IO,
|
| FROM_HERE,
|
| @@ -385,7 +385,7 @@ void VideoCaptureController::DoErrorOnIOThread() {
|
| }
|
|
|
| void VideoCaptureController::DoFrameInfoOnIOThread(
|
| - const media::VideoCaptureDevice::Capability info) {
|
| + const media::VideoCaptureCapability info) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| DCHECK(owned_dibs_.empty())
|
| << "Device is restarted without releasing shared memory.";
|
|
|