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

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

Issue 1983193002: Decouple capture timestamp and reference time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 VideoCaptureDeviceClient( 42 VideoCaptureDeviceClient(
43 const base::WeakPtr<VideoCaptureController>& controller, 43 const base::WeakPtr<VideoCaptureController>& controller,
44 const scoped_refptr<VideoCaptureBufferPool>& buffer_pool); 44 const scoped_refptr<VideoCaptureBufferPool>& buffer_pool);
45 ~VideoCaptureDeviceClient() override; 45 ~VideoCaptureDeviceClient() override;
46 46
47 // VideoCaptureDevice::Client implementation. 47 // VideoCaptureDevice::Client implementation.
48 void OnIncomingCapturedData(const uint8_t* data, 48 void OnIncomingCapturedData(const uint8_t* data,
49 int length, 49 int length,
50 const media::VideoCaptureFormat& frame_format, 50 const media::VideoCaptureFormat& frame_format,
51 int rotation, 51 int rotation,
52 const base::TimeTicks& timestamp) override; 52 base::TimeTicks reference_time,
53 base::TimeDelta timestamp) override;
53 std::unique_ptr<Buffer> ReserveOutputBuffer( 54 std::unique_ptr<Buffer> ReserveOutputBuffer(
54 const gfx::Size& dimensions, 55 const gfx::Size& dimensions,
55 media::VideoPixelFormat format, 56 media::VideoPixelFormat format,
56 media::VideoPixelStorage storage) override; 57 media::VideoPixelStorage storage) override;
57 void OnIncomingCapturedBuffer(std::unique_ptr<Buffer> buffer, 58 void OnIncomingCapturedBuffer(std::unique_ptr<Buffer> buffer,
58 const media::VideoCaptureFormat& frame_format, 59 const media::VideoCaptureFormat& frame_format,
59 const base::TimeTicks& timestamp) override; 60 const base::TimeTicks& timestamp) override;
60 void OnIncomingCapturedVideoFrame( 61 void OnIncomingCapturedVideoFrame(
61 std::unique_ptr<Buffer> buffer, 62 std::unique_ptr<Buffer> buffer,
62 const scoped_refptr<media::VideoFrame>& frame, 63 const scoped_refptr<media::VideoFrame>& frame,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 109
109 media::VideoPixelFormat last_captured_pixel_format_; 110 media::VideoPixelFormat last_captured_pixel_format_;
110 111
111 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 112 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
112 }; 113 };
113 114
114 115
115 } // namespace content 116 } // namespace content
116 117
117 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 118 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698