class CodecAdmission

Defined at line 88 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_admission_control.h

Controls how many Codec instances are concurrently served by this process.

There's a limit of 1 for single-instance decoders, but arbitrarily-many

multi-instance decoders can be used if there's no single-instance decoder.

Public Methods

void CodecAdmission (CodecAdmission && from)

Defined at line 90 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_admission_control.h

CodecAdmission & operator= (CodecAdmission && from)

Defined at line 91 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_admission_control.h

void CodecAdmission (const CodecAdmission & from)

Defined at line 92 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_admission_control.h

CodecAdmission & operator= (const CodecAdmission & from)

Defined at line 93 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_admission_control.h

void SetCodecIsClosing ()

Tell the codec admission control that this codec will be closing soon. When the class is

destroyed |close_handle_| will be destructed and that allows pending callbacks to run.

Defined at line 108 of file ../../src/media/lib/codec_impl/include/lib/media/codec_impl/codec_admission_control.h

std::unique_ptr<CodecAdmission> NoAdmissionControlNeeded ()

Only use this method if the codec doesn't expose any single-instance modes

where other instances are impossible while that single-instance mode is

active.

When a codec always allows multi-instance, this can be used to create a

nop CodecAdmission.

Defined at line 149 of file ../../src/media/lib/codec_impl/codec_admission_control.cc

void SetChannelToWaitOn (const zx::channel & channel)

Sets the channel CodecAdmissionControl should check for ZX_CHANNEL_PEER_CLOSED - if that's

received, the CodecAdmission is assumed to be closing soon.

Defined at line 131 of file ../../src/media/lib/codec_impl/codec_admission_control.cc

void ~CodecAdmission ()

Defined at line 116 of file ../../src/media/lib/codec_impl/codec_admission_control.cc

Friends

class CodecAdmissionControl