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

Side by Side Diff: media/capture/video/video_capture_device_client.h

Issue 2673373003: getUserMeida: report device starting states (Closed)
Patch Set: Created 3 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 MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 5 #ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_
6 #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 6 #define MEDIA_CAPTURE_VIDEO_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 base::TimeDelta timestamp, 77 base::TimeDelta timestamp,
78 gfx::Rect visible_rect, 78 gfx::Rect visible_rect,
79 const VideoFrameMetadata& additional_metadata) override; 79 const VideoFrameMetadata& additional_metadata) override;
80 Buffer ResurrectLastOutputBuffer(const gfx::Size& dimensions, 80 Buffer ResurrectLastOutputBuffer(const gfx::Size& dimensions,
81 media::VideoPixelFormat format, 81 media::VideoPixelFormat format,
82 media::VideoPixelStorage storage, 82 media::VideoPixelStorage storage,
83 int new_frame_feedback_id) override; 83 int new_frame_feedback_id) override;
84 void OnError(const tracked_objects::Location& from_here, 84 void OnError(const tracked_objects::Location& from_here,
85 const std::string& reason) override; 85 const std::string& reason) override;
86 void OnLog(const std::string& message) override; 86 void OnLog(const std::string& message) override;
87 void OnStarted() override;
87 double GetBufferPoolUtilization() const override; 88 double GetBufferPoolUtilization() const override;
88 89
89 private: 90 private:
90 void InitializeI420PlanePointers(const gfx::Size& dimensions, 91 void InitializeI420PlanePointers(const gfx::Size& dimensions,
91 uint8_t* const data, 92 uint8_t* const data,
92 uint8_t** y_plane_data, 93 uint8_t** y_plane_data,
93 uint8_t** u_plane_data, 94 uint8_t** u_plane_data,
94 uint8_t** v_plane_data); 95 uint8_t** v_plane_data);
95 96
96 // A branch of OnIncomingCapturedData for Y16 frame_format.pixel_format. 97 // A branch of OnIncomingCapturedData for Y16 frame_format.pixel_format.
(...skipping 25 matching lines...) Expand all
122 #endif // DCHECK_IS_ON() 123 #endif // DCHECK_IS_ON()
123 124
124 media::VideoPixelFormat last_captured_pixel_format_; 125 media::VideoPixelFormat last_captured_pixel_format_;
125 126
126 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient); 127 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceClient);
127 }; 128 };
128 129
129 } // namespace media 130 } // namespace media
130 131
131 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_ 132 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698