Lines Matching refs:task
100 static MPP_RET hal_jpege_vepu1_get_task(void *hal, HalEncTask *task) in hal_jpege_vepu1_get_task() argument
103 JpegeSyntax *syntax = (JpegeSyntax *)task->syntax.data; in hal_jpege_vepu1_get_task()
108 ctx->hal_start_pos = mpp_packet_get_length(task->packet); in hal_jpege_vepu1_get_task()
117 task->part_first = 1; in hal_jpege_vepu1_get_task()
118 task->part_last = 0; in hal_jpege_vepu1_get_task()
125 task->rc_task->frm.is_intra = 1; in hal_jpege_vepu1_get_task()
172 static MPP_RET hal_jpege_vepu1_gen_regs(void *hal, HalEncTask *task) in hal_jpege_vepu1_gen_regs() argument
175 MppBuffer input = task->input; in hal_jpege_vepu1_gen_regs()
176 MppBuffer output = task->output; in hal_jpege_vepu1_gen_regs()
186 size_t length = mpp_packet_get_length(task->packet); in hal_jpege_vepu1_gen_regs()
233 syntax->q_factor = 100 - task->rc_task->info.quality_target; in hal_jpege_vepu1_gen_regs()
381 static MPP_RET hal_jpege_vepu1_start(void *hal, HalEncTask *task) in hal_jpege_vepu1_start() argument
423 (void)task; in hal_jpege_vepu1_start()
427 static MPP_RET hal_jpege_vepu1_wait(void *hal, HalEncTask *task) in hal_jpege_vepu1_wait() argument
456 task->length = feedback->stream_length; in hal_jpege_vepu1_wait()
457 task->hw_length = task->length - ctx->hal_start_pos; in hal_jpege_vepu1_wait()
459 sw_bit, hw_bit, feedback->stream_length, task->hw_length); in hal_jpege_vepu1_wait()
465 static MPP_RET hal_jpege_vepu1_part_start(void *hal, HalEncTask *task) in hal_jpege_vepu1_part_start() argument
469 JpegeSyntax *syntax = (JpegeSyntax *)task->syntax.data; in hal_jpege_vepu1_part_start()
483 task->part_first = !mcu_y; in hal_jpege_vepu1_part_start()
489 task->part_last = 0; in hal_jpege_vepu1_part_start()
495 task->part_last = 1; in hal_jpege_vepu1_part_start()
498 hal_jpege_dbg_detail("part first %d last %d\n", task->part_first, task->part_last); in hal_jpege_vepu1_part_start()
508 regs[5] = mpp_buffer_get_fd(task->output); in hal_jpege_vepu1_part_start()
558 (void)task; in hal_jpege_vepu1_part_start()
562 static MPP_RET hal_jpege_vepu1_part_wait(void *hal, HalEncTask *task) in hal_jpege_vepu1_part_wait() argument
587 task->length = ctx->part_bytepos; in hal_jpege_vepu1_part_wait()
588 task->hw_length = task->length - ctx->hal_start_pos; in hal_jpege_vepu1_part_wait()
594 ctx->sw_bit, hw_bit, feedback->stream_length, task->hw_length); in hal_jpege_vepu1_part_wait()
600 static MPP_RET hal_jpege_vepu1_ret_task(void *hal, HalEncTask *task) in hal_jpege_vepu1_ret_task() argument
604 task->rc_task->info.bit_real = ctx->feedback.stream_length * 8; in hal_jpege_vepu1_ret_task()
605 task->hal_ret.data = &ctx->feedback; in hal_jpege_vepu1_ret_task()
606 task->hal_ret.number = 1; in hal_jpege_vepu1_ret_task()
607 task->rc_task->info.quality_real = task->rc_task->info.quality_target; in hal_jpege_vepu1_ret_task()