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

Side by Side Diff: content/browser/renderer_host/media/video_capture_device_client.h

Issue 1204063005: Reland: Video Capture: extract storage info from pixel format in VideoCaptureFormat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng@ nit on DCHECK_EQ(expected, actual) Created 5 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const base::TimeTicks& timestamp) override; 46 const base::TimeTicks& timestamp) override;
47 void OnIncomingCapturedYuvData(const uint8* y_data, 47 void OnIncomingCapturedYuvData(const uint8* y_data,
48 const uint8* u_data, 48 const uint8* u_data,
49 const uint8* v_data, 49 const uint8* v_data,
50 size_t y_stride, 50 size_t y_stride,
51 size_t u_stride, 51 size_t u_stride,
52 size_t v_stride, 52 size_t v_stride,
53 const media::VideoCaptureFormat& frame_format, 53 const media::VideoCaptureFormat& frame_format,
54 int clockwise_rotation, 54 int clockwise_rotation,
55 const base::TimeTicks& timestamp) override; 55 const base::TimeTicks& timestamp) override;
56 scoped_ptr<Buffer> ReserveOutputBuffer(media::VideoPixelFormat format, 56 scoped_ptr<Buffer> ReserveOutputBuffer(
57 const gfx::Size& dimensions) override; 57 const gfx::Size& dimensions,
58 media::VideoPixelFormat format,
59 media::VideoPixelStorage storage) override;
58 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer, 60 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer,
59 const media::VideoCaptureFormat& frame_format, 61 const media::VideoCaptureFormat& frame_format,
60 const base::TimeTicks& timestamp) override; 62 const base::TimeTicks& timestamp) override;
61 void OnIncomingCapturedVideoFrame( 63 void OnIncomingCapturedVideoFrame(
62 scoped_ptr<Buffer> buffer, 64 scoped_ptr<Buffer> buffer,
63 const scoped_refptr<media::VideoFrame>& frame, 65 const scoped_refptr<media::VideoFrame>& frame,
64 const base::TimeTicks& timestamp) override; 66 const base::TimeTicks& timestamp) override;
65 void OnError(const std::string& reason) override; 67 void OnError(const std::string& reason) override;
66 void OnLog(const std::string& message) override; 68 void OnLog(const std::string& message) override;
67 double GetBufferPoolUtilization() const override; 69 double GetBufferPoolUtilization() const override;
(...skipping 14 matching lines...) Expand all
82 84
83 media::VideoPixelFormat last_captured_pixel_format_; 85 media::VideoPixelFormat last_captured_pixel_format_;
84 86
85 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 87 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
86 }; 88 };
87 89
88 90
89 } // namespace content 91 } // namespace content
90 92
91 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 93 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698