MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / frame_thread_init_score

Function frame_thread_init_score

libavcodec/vvc/thread.c:717–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715}
716
717static void frame_thread_init_score(VVCFrameContext *fc)
718{
719 const VVCFrameThread *ft = fc->ft;
720 VVCTask task;
721
722 task_init(&task, VVC_TASK_STAGE_PARSE, fc, 0, 0);
723
724 for (int i = VVC_TASK_STAGE_PARSE; i < VVC_TASK_STAGE_LAST; i++) {
725 task.stage = i;
726
727 for (task.rx = -1; task.rx <= ft->ctu_width; task.rx++) {
728 task.ry = -1; //top
729 task_stage_done(&task, NULL);
730 task.ry = ft->ctu_height; //bottom
731 task_stage_done(&task, NULL);
732 }
733
734 for (task.ry = 0; task.ry < ft->ctu_height; task.ry++) {
735 task.rx = -1; //left
736 task_stage_done(&task, NULL);
737 task.rx = ft->ctu_width; //right
738 task_stage_done(&task, NULL);
739 }
740 }
741}
742
743int ff_vvc_frame_thread_init(VVCFrameContext *fc)
744{

Callers 1

ff_vvc_frame_thread_initFunction · 0.85

Calls 2

task_stage_doneFunction · 0.85
task_initFunction · 0.70

Tested by

no test coverage detected