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

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: Resolve Comments Created 4 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 <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 base::TimeTicks reference_time,
61 base::TimeDelta timestamp) override;
60 void OnIncomingCapturedVideoFrame( 62 void OnIncomingCapturedVideoFrame(
61 std::unique_ptr<Buffer> buffer, 63 std::unique_ptr<Buffer> buffer,
62 const scoped_refptr<media::VideoFrame>& frame, 64 const scoped_refptr<media::VideoFrame>& frame,
63 const base::TimeTicks& timestamp) override; 65 base::TimeTicks reference_time) override;
64 std::unique_ptr<Buffer> ResurrectLastOutputBuffer( 66 std::unique_ptr<Buffer> ResurrectLastOutputBuffer(
65 const gfx::Size& dimensions, 67 const gfx::Size& dimensions,
66 media::VideoPixelFormat format, 68 media::VideoPixelFormat format,
67 media::VideoPixelStorage storage) override; 69 media::VideoPixelStorage storage) override;
68 void OnError(const tracked_objects::Location& from_here, 70 void OnError(const tracked_objects::Location& from_here,
69 const std::string& reason) override; 71 const std::string& reason) override;
70 void OnLog(const std::string& message) override; 72 void OnLog(const std::string& message) override;
71 double GetBufferPoolUtilization() const override; 73 double GetBufferPoolUtilization() const override;
72 74
73 private: 75 private:
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 110
109 media::VideoPixelFormat last_captured_pixel_format_; 111 media::VideoPixelFormat last_captured_pixel_format_;
110 112
111 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 113 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
112 }; 114 };
113 115
114 116
115 } // namespace content 117 } // namespace content
116 118
117 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 119 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698