硬解碼
IJKVideoToolBoxSync.h
- videotoolbox_sync_decode_frame // 不斷循環(huán)取AVPacket
- decode_video->decode_video_internal //取到AVPacket后執(zhí)行硬解碼
- VTDecoderCallback
- SortQueuePush ->Ijk_VideoToolBox_Opaque->m_sort_queue(sort_queue)//用于每次獲取大pts的幀
- QueuePicture->queue_picture->frame_queue_peek_writable(&is->pictq)->frame_queue_push(&is->pictq); //加入渲染queue
image.png
static int queue_picture(FFPlayer *ffp, AVFrame *src_frame, double pts, double duration, int64_t pos, int serial)