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

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

Issue 1031583002: Revert of Linux Video Capture: Add V4L2VideoCaptureDelegate{Single,Multi}Plane. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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;
51 scoped_refptr<Buffer> ReserveOutputBuffer(media::VideoFrame::Format format, 42 scoped_refptr<Buffer> ReserveOutputBuffer(media::VideoFrame::Format format,
52 const gfx::Size& size) override; 43 const gfx::Size& size) override;
53 void OnIncomingCapturedVideoFrame( 44 void OnIncomingCapturedVideoFrame(
54 const scoped_refptr<Buffer>& buffer, 45 const scoped_refptr<Buffer>& buffer,
55 const scoped_refptr<media::VideoFrame>& frame, 46 const scoped_refptr<media::VideoFrame>& frame,
56 const base::TimeTicks& timestamp) override; 47 const base::TimeTicks& timestamp) override;
57 void OnError(const std::string& reason) override; 48 void OnError(const std::string& reason) override;
58 void OnLog(const std::string& message) override; 49 void OnLog(const std::string& message) override;
59 50
60 private: 51 private:
61 // The controller to which we post events. 52 // The controller to which we post events.
62 const base::WeakPtr<VideoCaptureController> controller_; 53 const base::WeakPtr<VideoCaptureController> controller_;
63 54
64 // The pool of shared-memory buffers used for capturing. 55 // The pool of shared-memory buffers used for capturing.
65 const scoped_refptr<VideoCaptureBufferPool> buffer_pool_; 56 const scoped_refptr<VideoCaptureBufferPool> buffer_pool_;
66 57
67 media::VideoPixelFormat last_captured_pixel_format_; 58 media::VideoPixelFormat last_captured_pixel_format_;
68 59
69 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 60 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
70 }; 61 };
71 62
72 63
73 } // namespace content 64 } // namespace content
74 65
75 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 66 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698