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

Side by Side Diff: content/browser/renderer_host/media/video_capture_controller.cc

Issue 12255032: Implement "hole" video frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added contact address Created 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/media/video_capture_controller.h" 5 #include "content/browser/renderer_host/media/video_capture_controller.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 base::TimeDelta(), 414 base::TimeDelta(),
415 base::Bind(&base::DoNothing))); 415 base::Bind(&base::DoNothing)));
416 416
417 const int kYPlane = media::VideoFrame::kYPlane; 417 const int kYPlane = media::VideoFrame::kYPlane;
418 const int kUPlane = media::VideoFrame::kUPlane; 418 const int kUPlane = media::VideoFrame::kUPlane;
419 const int kVPlane = media::VideoFrame::kVPlane; 419 const int kVPlane = media::VideoFrame::kVPlane;
420 const int kRGBPlane = media::VideoFrame::kRGBPlane; 420 const int kRGBPlane = media::VideoFrame::kRGBPlane;
421 421
422 // Do color conversion from the camera format to I420. 422 // Do color conversion from the camera format to I420.
423 switch (frame->format()) { 423 switch (frame->format()) {
424 #if defined(GOOGLE_TV)
425 case media::VideoFrame::HOLE: {
426 NOTREACHED();
scherkus (not reviewing) 2013/02/27 06:54:20 do you need to duplicate the { NOTREACHED(); break
wonsik2 2013/02/27 10:19:29 Done. Added a short comment for a little safeguard
427 break;
428 }
429 #endif
424 case media::VideoFrame::INVALID: 430 case media::VideoFrame::INVALID:
425 case media::VideoFrame::YV16: 431 case media::VideoFrame::YV16:
426 case media::VideoFrame::EMPTY: 432 case media::VideoFrame::EMPTY:
427 case media::VideoFrame::NATIVE_TEXTURE: { 433 case media::VideoFrame::NATIVE_TEXTURE: {
428 NOTREACHED(); 434 NOTREACHED();
429 break; 435 break;
430 } 436 }
431 case media::VideoFrame::I420: 437 case media::VideoFrame::I420:
432 case media::VideoFrame::YV12: { 438 case media::VideoFrame::YV12: {
433 DCHECK(!chopped_width_ && !chopped_height_); 439 DCHECK(!chopped_width_ && !chopped_height_);
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 base::AutoLock lock(lock_); 705 base::AutoLock lock(lock_);
700 for (DIBMap::iterator dib_it = owned_dibs_.begin(); 706 for (DIBMap::iterator dib_it = owned_dibs_.begin();
701 dib_it != owned_dibs_.end(); dib_it++) { 707 dib_it != owned_dibs_.end(); dib_it++) {
702 if (dib_it->second->references > 0) 708 if (dib_it->second->references > 0)
703 return true; 709 return true;
704 } 710 }
705 return false; 711 return false;
706 } 712 }
707 713
708 } // namespace content 714 } // namespace content
OLDNEW
« cc/video_layer_impl.cc ('K') | « cc/video_layer_impl.cc ('k') | media/base/video_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698