class StreamRecord
Defined at line 126 of file ../../src/camera/bin/device/metrics_reporter.h
An object of the StreamRecord class monitors each stream, collects metrics, and reports them
via the Cobalt logger if it is enabled. Some of collected metrics are available via the
Inspect API.
Public Methods
void StreamRecord (MetricsReporter::Impl & impl, inspect::Node & parent, uint32_t config_index, uint32_t stream_index)
Defined at line 210 of file ../../src/camera/bin/device/metrics_reporter.cc
void SetProperties (const fuchsia::camera3::StreamProperties2 & props)
Stores the properties of current stream.
|props| References to StreamProperties2 object that contains the size information, the
output format, and the frame rate.
Defined at line 222 of file ../../src/camera/bin/device/metrics_reporter.cc
void FrameReceived ()
Reports that we've received a new frame.
Defined at line 236 of file ../../src/camera/bin/device/metrics_reporter.cc
void FrameDropped (cobalt::FrameDropReason why)
Reports that we've dropped/skipped a newly delivered frame.
Defined at line 241 of file ../../src/camera/bin/device/metrics_reporter.cc