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

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

Issue 1685713003: Remove V4L2CaptureDelegate{Single,Multi}Plane, VCD::Client::OnIncomingCapturedYuvData() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: perkj@ comments and reverted change to WeakPtr Created 4 years, 10 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const base::WeakPtr<VideoCaptureController>& controller, 42 const base::WeakPtr<VideoCaptureController>& controller,
43 const scoped_refptr<VideoCaptureBufferPool>& buffer_pool); 43 const scoped_refptr<VideoCaptureBufferPool>& buffer_pool);
44 ~VideoCaptureDeviceClient() override; 44 ~VideoCaptureDeviceClient() override;
45 45
46 // VideoCaptureDevice::Client implementation. 46 // VideoCaptureDevice::Client implementation.
47 void OnIncomingCapturedData(const uint8_t* data, 47 void OnIncomingCapturedData(const uint8_t* data,
48 int length, 48 int length,
49 const media::VideoCaptureFormat& frame_format, 49 const media::VideoCaptureFormat& frame_format,
50 int rotation, 50 int rotation,
51 const base::TimeTicks& timestamp) override; 51 const base::TimeTicks& timestamp) override;
52 void OnIncomingCapturedYuvData(const uint8_t* y_data,
53 const uint8_t* u_data,
54 const uint8_t* v_data,
55 size_t y_stride,
56 size_t u_stride,
57 size_t v_stride,
58 const media::VideoCaptureFormat& frame_format,
59 int clockwise_rotation,
60 const base::TimeTicks& timestamp) override;
61 scoped_ptr<Buffer> ReserveOutputBuffer( 52 scoped_ptr<Buffer> ReserveOutputBuffer(
62 const gfx::Size& dimensions, 53 const gfx::Size& dimensions,
63 media::VideoPixelFormat format, 54 media::VideoPixelFormat format,
64 media::VideoPixelStorage storage) override; 55 media::VideoPixelStorage storage) override;
65 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer, 56 void OnIncomingCapturedBuffer(scoped_ptr<Buffer> buffer,
66 const media::VideoCaptureFormat& frame_format, 57 const media::VideoCaptureFormat& frame_format,
67 const base::TimeTicks& timestamp) override; 58 const base::TimeTicks& timestamp) override;
68 void OnIncomingCapturedVideoFrame( 59 void OnIncomingCapturedVideoFrame(
69 scoped_ptr<Buffer> buffer, 60 scoped_ptr<Buffer> buffer,
70 const scoped_refptr<media::VideoFrame>& frame, 61 const scoped_refptr<media::VideoFrame>& frame,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 102
112 media::VideoPixelFormat last_captured_pixel_format_; 103 media::VideoPixelFormat last_captured_pixel_format_;
113 104
114 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 105 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
115 }; 106 };
116 107
117 108
118 } // namespace content 109 } // namespace content
119 110
120 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 111 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/media/media_internals_unittest.cc ('k') | content/browser/renderer_host/media/video_capture_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698