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

Side by Side Diff: media/renderers/skcanvas_video_renderer.cc

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 "media/renderers/skcanvas_video_renderer.h" 5 #include "media/renderers/skcanvas_video_renderer.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "gpu/GLES2/gl2extchromium.h" 10 #include "gpu/GLES2/gl2extchromium.h"
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 case PIXEL_FORMAT_YUV420P10: 619 case PIXEL_FORMAT_YUV420P10:
620 case PIXEL_FORMAT_YUV422P10: 620 case PIXEL_FORMAT_YUV422P10:
621 case PIXEL_FORMAT_YUV444P10: { 621 case PIXEL_FORMAT_YUV444P10: {
622 scoped_refptr<VideoFrame> temporary_frame = 622 scoped_refptr<VideoFrame> temporary_frame =
623 DownShiftHighbitVideoFrame(video_frame); 623 DownShiftHighbitVideoFrame(video_frame);
624 ConvertVideoFrameToRGBPixels(temporary_frame.get(), rgb_pixels, 624 ConvertVideoFrameToRGBPixels(temporary_frame.get(), rgb_pixels,
625 row_bytes); 625 row_bytes);
626 break; 626 break;
627 } 627 }
628 628
629 case PIXEL_FORMAT_Y16:
629 case PIXEL_FORMAT_NV12: 630 case PIXEL_FORMAT_NV12:
630 case PIXEL_FORMAT_NV21: 631 case PIXEL_FORMAT_NV21:
631 case PIXEL_FORMAT_UYVY: 632 case PIXEL_FORMAT_UYVY:
632 case PIXEL_FORMAT_YUY2: 633 case PIXEL_FORMAT_YUY2:
633 case PIXEL_FORMAT_ARGB: 634 case PIXEL_FORMAT_ARGB:
634 case PIXEL_FORMAT_XRGB: 635 case PIXEL_FORMAT_XRGB:
635 case PIXEL_FORMAT_RGB24: 636 case PIXEL_FORMAT_RGB24:
636 case PIXEL_FORMAT_RGB32: 637 case PIXEL_FORMAT_RGB32:
637 case PIXEL_FORMAT_MJPEG: 638 case PIXEL_FORMAT_MJPEG:
638 case PIXEL_FORMAT_MT21: 639 case PIXEL_FORMAT_MT21:
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 } 680 }
680 681
681 void SkCanvasVideoRenderer::ResetCache() { 682 void SkCanvasVideoRenderer::ResetCache() {
682 DCHECK(thread_checker_.CalledOnValidThread()); 683 DCHECK(thread_checker_.CalledOnValidThread());
683 // Clear cached values. 684 // Clear cached values.
684 last_image_ = nullptr; 685 last_image_ = nullptr;
685 last_timestamp_ = kNoTimestamp(); 686 last_timestamp_ = kNoTimestamp();
686 } 687 }
687 688
688 } // namespace media 689 } // namespace media
OLDNEW
« cc/layers/video_layer_impl.cc ('K') | « media/capture/video/win/video_capture_device_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698