template <typename StateType>

class DiagnosticStateWrapper

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

Wrapper class that allows for the getting and setting of a decoder state. When setting

the decoder state the class will update trace data to reflect the current decoder state and

also calls the UpdateDiagnostics() on the VideoDecoder class to update the decoder's diagnostics.

Public Methods

void DiagnosticStateWrapper<StateType> (fit::closure update_diagnostics_function, StateType state_value, fit::function<const char *(StateType)> state_name_function)

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

void ~DiagnosticStateWrapper<StateType> ()

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

DiagnosticStateWrapper<StateType> & operator= (StateType new_statue)

Wrapper assignment operator. When a different state is assigned, end the current trace for

this decoder and start a trace for the new state, update the underlying state and call

UpdateDiagnostics() so the decoder's diagnostics are updated

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

bool operator== (StateType other_state)

Comparison operators, just passthrough to the underlying state

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

bool operator!= (StateType other_state)

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

StateType operator StateType ()

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

UnderlyingType operator __underlying_type(type-parameter-0-0) ()

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