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

Method open

framework/codec/ActiveDecoder.cpp:28–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28int ActiveDecoder::open(const Stream_meta *meta, void *voutObsr, uint64_t flags , const Cicada::DrmInfo *drmInfo)
29{
30 int ret = init_decoder(meta, voutObsr, flags , drmInfo);
31
32 if (ret < 0) {
33 close();
34 return ret;
35 }
36
37 mRunning = true;
38 mCodecId = meta->codec;
39#if AF_HAVE_PTHREAD
40 auto func = [this]() -> int { return this->decode_func(); };
41 mDecodeThread = new afThread(func, LOG_TAG);
42 mDecodeThread->start();
43#endif
44 return 0;
45}
46
47void ActiveDecoder::close()
48{

Callers 8

demuxer_threadFunction · 0.45
addStreamMethod · 0.45
muxThreadRunMethod · 0.45
initDrmHandlerMethod · 0.45
test_renderFunction · 0.45
test_codecFunction · 0.45
testDemuxerFunction · 0.45
testDemuxerFunction · 0.45

Calls 2

decode_funcMethod · 0.95
startMethod · 0.65

Tested by 5

demuxer_threadFunction · 0.36
test_renderFunction · 0.36
test_codecFunction · 0.36
testDemuxerFunction · 0.36
testDemuxerFunction · 0.36