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

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

Issue 967793002: Linux Video Capture: Add V4L2VideoCaptureDelegate{Single,Multi}Plane. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: magjed@ comments Created 5 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 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 21 matching lines...) Expand all
32 const scoped_refptr<VideoCaptureBufferPool>& buffer_pool); 32 const scoped_refptr<VideoCaptureBufferPool>& buffer_pool);
33 ~VideoCaptureDeviceClient() override; 33 ~VideoCaptureDeviceClient() override;
34 34
35 // VideoCaptureDevice::Client implementation. 35 // VideoCaptureDevice::Client implementation.
36 void OnIncomingCapturedData( 36 void OnIncomingCapturedData(
37 const uint8* data, 37 const uint8* data,
38 int length, 38 int length,
39 const media::VideoCaptureFormat& frame_format, 39 const media::VideoCaptureFormat& frame_format,
40 int rotation, 40 int rotation,
41 const base::TimeTicks& timestamp) override; 41 const base::TimeTicks& timestamp) override;
42 void OnIncomingCapturedYuvData(const uint8* y_data,
43 const uint8* u_data,
44 const uint8* v_data,
45 size_t y_stride,
46 size_t u_stride,
47 size_t v_stride,
48 const media::VideoCaptureFormat& frame_format,
49 int clockwise_rotation,
50 const base::TimeTicks& timestamp) override;
42 scoped_refptr<Buffer> ReserveOutputBuffer(media::VideoFrame::Format format, 51 scoped_refptr<Buffer> ReserveOutputBuffer(media::VideoFrame::Format format,
43 const gfx::Size& size) override; 52 const gfx::Size& size) override;
44 void OnIncomingCapturedVideoFrame( 53 void OnIncomingCapturedVideoFrame(
45 const scoped_refptr<Buffer>& buffer, 54 const scoped_refptr<Buffer>& buffer,
46 const scoped_refptr<media::VideoFrame>& frame, 55 const scoped_refptr<media::VideoFrame>& frame,
47 const base::TimeTicks& timestamp) override; 56 const base::TimeTicks& timestamp) override;
48 void OnError(const std::string& reason) override; 57 void OnError(const std::string& reason) override;
49 void OnLog(const std::string& message) override; 58 void OnLog(const std::string& message) override;
50 59
51 private: 60 private:
52 // The controller to which we post events. 61 // The controller to which we post events.
53 const base::WeakPtr<VideoCaptureController> controller_; 62 const base::WeakPtr<VideoCaptureController> controller_;
54 63
55 // The pool of shared-memory buffers used for capturing. 64 // The pool of shared-memory buffers used for capturing.
56 const scoped_refptr<VideoCaptureBufferPool> buffer_pool_; 65 const scoped_refptr<VideoCaptureBufferPool> buffer_pool_;
57 66
58 media::VideoPixelFormat last_captured_pixel_format_; 67 media::VideoPixelFormat last_captured_pixel_format_;
59 68
60 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 69 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
61 }; 70 };
62 71
63 72
64 } // namespace content 73 } // namespace content
65 74
66 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 75 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698