MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / addStream

Method addStream

framework/WebAssemblyPlayer/bitStreamDecoder.cpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 void bitStreamDecoder::addStream(const Stream_meta &meta, int i)
66 {
67 mDecoders[i] = unique_ptr<avcodecDecoder>(new avcodecDecoder());
68 mDecoders[i]->open(&meta, nullptr, 0);
69 mPacketQues[i];
70 mStatisInfo[i];
71 mDemuxer.OpenStream(i);
72 mListener.onStreamMeta(&meta);
73 }
74
75 int bitStreamDecoder::decode(unique_ptr<IAFPacket> &pkt, int index, bool flush)
76 {

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
OpenStreamMethod · 0.45
onStreamMetaMethod · 0.45

Tested by

no test coverage detected