class DriverCodecDiagnostics

Defined at line 56 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_diagnostics.h

Class is used to store codec inspect data for a codec where we control the underlying

hardware (example: amlogic driver). Because we control the hardware we can calculate

utilization of the underlying hardware and report it via the inspect data.

Public Methods

void DriverCodecDiagnostics (CodecDiagnostics & driver_diagnostics, inspect::Node root)

Defined at line 22 of file ../../src/media/lib/codec_impl/codec_diagnostics.cc

void ~DriverCodecDiagnostics ()

Defined at line 32 of file ../../src/media/lib/codec_impl/codec_diagnostics.cc

void UpdateHardwareUtilizationStatus (zx::time now, bool is_utilizing_hardware)

Update the hardware utilization status. This function should be called whenever a variable that

could effect value of VideoDecoder::IsUtilizingHardware() changes even if the value of

VideoDecoder::IsUtilizingHardware() has not changed from the previous call to this function. The

reason is so that this function can take into account the passage of time and update durations

stored by this class accordingly. This will also effect the allocation which is calculated and

published by this function.

Defined at line 47 of file ../../src/media/lib/codec_impl/codec_diagnostics.cc

void DriverCodecDiagnostics (const DriverCodecDiagnostics & )

Nodes and NumericProperty should be cleaned up when this class

is destroyed, so ensure it is not copy to imply ownership so that

we can use a RAII approach.

Defined at line 76 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_diagnostics.h

DriverCodecDiagnostics & operator= (const DriverCodecDiagnostics & )

Defined at line 77 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_diagnostics.h

void DriverCodecDiagnostics (DriverCodecDiagnostics && )

Defined at line 78 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_diagnostics.h

DriverCodecDiagnostics & operator= (DriverCodecDiagnostics && )

Defined at line 79 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_diagnostics.h

Records