收发视频流程

未结 0 235
纳入话题 标签: OpenRtcomm

发视频:

1.generateSurfaceFrame 输入


2.enc_muxer_writeSampleData 输出压缩后的数据

3.doPostEnc_mediaSdk_new 压缩后处理

4.丢到postThread.q2 队列

5.mcThreadProc_toShareVideo_post 视频压缩后的处理线程

6.qGetMsgPkg 取包

7.pProcInfo.toShareVideo_post->toShareVideo_post_qmc->丢到实时任务队列

8.处理实时任务 tmpHandler_findOrgMsgAndProc_is->tmpHandler_findOrgMsgAndProcess_mis_procTaskVideoData->pTask.photomosaic.pOutputQ2 丢到实时任务队列->由toSend去取

9.ThreadProc_mis_toSend 线程->tmpHandler_toMixer_video  混合->tmpHandler_toSend->postMsg2OutputQ_mc 丢到发送outPutQ2队列

10.mcThreadProc_mis_snd 发送


收视频:

1. mcThreadProc_mis_media 线程

2. doMediaMsg -> procMsgInput_other_req

3. qyntohRouteTalkData

4. procMsgInput_mc_media

5. tmpHandler_findOrgMsgAndProc_is

6. tmpHandler_findOrgMsgAndProcess_mis_procInputVideoData

7. q2PostMsgAndTrigger  -> qBuf2


8. startTransformThread  startTransformThread_v mcThreadProc_decVideo

v_preTransThread


9. doDecodeVideo 解码线程

10.doDecodeVideo_mediaCodec

11.initTaskAvFrom_video 解码的初始化函数-> pf_qdcInitDecompressVideo 初始化解码器 -> qdcInitDecompressVideo_mediaCodec -> decObj_mediaCodec 初始化media codec -> dec_ReadSampleData 读每一个压缩数据  -> pf_smplBitstreamReader_ReadNextFrame_func  读每一帧压缩数据 ->smplBitstreamReader_ReadNextFrame_func_v -> getNextPktInfo_toDec -> 从qbuf/q2里面读数据 -> 读出来之后 -> dec_parseEncVPkt_i_useVideoQ2 检查包的正确性 -> 

 -> qdcDecompressVideoRun_mediaCodec (等解码完毕)

12.exitTaskAvFrom_video 结束解码


回复
去登录
本周热议