Lines Matching refs:ret

152     MPP_RET ret = MPP_NOK;  in mpp_ctx_init()  local
187 ret = mpp->mKmpp->mApi->init(mpp->mKmpp, type, coding); in mpp_ctx_init()
188 if (ret) { in mpp_ctx_init()
189 mpp_err("failed to init kmpp ret %d\n", ret); in mpp_ctx_init()
190 return ret; in mpp_ctx_init()
193 return ret; in mpp_ctx_init()
234 ret = mpp_dec_init(&mpp->mDec, &cfg); in mpp_ctx_init()
235 if (ret) in mpp_ctx_init()
237 ret = mpp_dec_start(mpp->mDec); in mpp_ctx_init()
238 if (ret) in mpp_ctx_init()
278 ret = mpp_enc_init_v2(&mpp->mEnc, &cfg); in mpp_ctx_init()
279 if (ret) in mpp_ctx_init()
284 ret = mpp_enc_start_async(mpp->mEnc); in mpp_ctx_init()
286 ret = mpp_enc_start_v2(mpp->mEnc); in mpp_ctx_init()
289 if (ret) in mpp_ctx_init()
303 return ret; in mpp_ctx_init()
448 MPP_RET ret = MPP_NOK; in mpp_put_packet() local
455 return ret; in mpp_put_packet()
469 ret = mpp_poll(mpp, MPP_PORT_INPUT, MPP_POLL_BLOCK); in mpp_put_packet()
470 if (ret < 0) in mpp_put_packet()
476 ret = MPP_NOK; in mpp_put_packet()
495 ret = mpp_poll(mpp, MPP_PORT_INPUT, timeout); in mpp_put_packet()
496 if (ret < 0) { in mpp_put_packet()
497 ret = MPP_ERR_BUFFER_FULL; in mpp_put_packet()
504 mpp_err_f("fail to get task on poll ret %d\n", ret); in mpp_put_packet()
505 ret = MPP_NOK; in mpp_put_packet()
518 ret = MPP_OK; in mpp_put_packet()
522 ret = MPP_OK; in mpp_put_packet()
526 ret = mpp_task_meta_set_packet(task_dequeue, KEY_INPUT_PACKET, packet); in mpp_put_packet()
527 if (ret) { in mpp_put_packet()
528 mpp_err_f("set input frame to task ret %d\n", ret); in mpp_put_packet()
537 ret = mpp_enqueue(mpp, MPP_PORT_INPUT, task_dequeue); in mpp_put_packet()
538 if (ret) { in mpp_put_packet()
539 mpp_err_f("enqueue ret %d\n", ret); in mpp_put_packet()
559 return ret; in mpp_put_packet()
582 RK_S32 ret = mpp_list_wait_timed(mpp->mFrmOut, mpp->mOutputTimeout); in mpp_get_frame() local
583 if (ret) { in mpp_get_frame()
584 if (ret == ETIMEDOUT) { in mpp_get_frame()
656 MPP_RET ret = MPP_OK; in mpp_decode() local
691 ret = mpp_dec_decode(mpp->mDec, packet); in mpp_decode()
712 if (ret < 0) in mpp_decode()
717 mpp_assert(ret > 0); in mpp_decode()
718 ret = MPP_OK; in mpp_decode()
724 ret = MPP_OK; in mpp_decode()
731 return ret; in mpp_decode()
754 MPP_RET ret = MPP_NOK; in mpp_put_frame() local
768 ret = mpp_poll(mpp, MPP_PORT_INPUT, mpp->mInputTimeout); in mpp_put_frame()
769 if (ret < 0) { in mpp_put_frame()
771 mpp_log_f("poll on set timeout %d ret %d\n", mpp->mInputTimeout, ret); in mpp_put_frame()
777 ret = mpp_dequeue(mpp, MPP_PORT_INPUT, &mpp->mInputTask); in mpp_put_frame()
778 if (ret || NULL == mpp->mInputTask) { in mpp_put_frame()
779 mpp_log_f("dequeue on set ret %d task %p\n", ret, mpp->mInputTask); in mpp_put_frame()
787 ret = mpp_task_meta_set_frame(mpp->mInputTask, KEY_INPUT_FRAME, frame); in mpp_put_frame()
788 if (ret) { in mpp_put_frame()
789 mpp_log_f("set input frame to task ret %d\n", ret); in mpp_put_frame()
800 ret = mpp_task_meta_set_packet(mpp->mInputTask, KEY_OUTPUT_PACKET, packet); in mpp_put_frame()
801 if (ret) { in mpp_put_frame()
802 mpp_log_f("set output packet to task ret %d\n", ret); in mpp_put_frame()
809 ret = mpp_task_meta_set_buffer(mpp->mInputTask, KEY_MOTION_INFO, md_info_buf); in mpp_put_frame()
810 if (ret) { in mpp_put_frame()
811 mpp_log_f("set output motion dection info ret %d\n", ret); in mpp_put_frame()
822 ret = mpp_enqueue(mpp, MPP_PORT_INPUT, mpp->mInputTask); in mpp_put_frame()
823 if (ret) { in mpp_put_frame()
824 mpp_log_f("enqueue ret %d\n", ret); in mpp_put_frame()
831 ret = mpp_poll(mpp, MPP_PORT_INPUT, mpp->mInputTimeout); in mpp_put_frame()
832 if (ret < 0) { in mpp_put_frame()
834 mpp_log_f("poll on get timeout %d ret %d\n", mpp->mInputTimeout, ret); in mpp_put_frame()
840 ret = mpp_dequeue(mpp, MPP_PORT_INPUT, &mpp->mInputTask); in mpp_put_frame()
841 if (ret) { in mpp_put_frame()
842 mpp_log_f("dequeue on get ret %d\n", ret); in mpp_put_frame()
857 return ret; in mpp_put_frame()
880 MPP_RET ret = MPP_OK; in mpp_get_packet() local
883 ret = mpp_poll(mpp, MPP_PORT_OUTPUT, mpp->mOutputTimeout); in mpp_get_packet()
884 if (ret < 0) { in mpp_get_packet()
886 ret = MPP_OK; in mpp_get_packet()
891 ret = mpp_dequeue(mpp, MPP_PORT_OUTPUT, &task); in mpp_get_packet()
892 if (ret || NULL == task) { in mpp_get_packet()
893 mpp_log_f("dequeue on get ret %d task %p\n", ret, task); in mpp_get_packet()
899 ret = mpp_task_meta_get_packet(task, KEY_OUTPUT_PACKET, packet); in mpp_get_packet()
900 if (ret) { in mpp_get_packet()
901 mpp_log_f("get output packet from task ret %d\n", ret); in mpp_get_packet()
924 ret = mpp_enqueue(mpp, MPP_PORT_OUTPUT, task); in mpp_get_packet()
925 if (ret) in mpp_get_packet()
926 mpp_log_f("enqueue on set ret %d\n", ret); in mpp_get_packet()
929 return ret; in mpp_get_packet()
975 RK_S32 ret = mpp_list_wait_timed(mpp->mPktOut, mpp->mOutputTimeout); in mpp_get_packet_async() local
977 if (ret) { in mpp_get_packet_async()
978 if (ret == ETIMEDOUT) { in mpp_get_packet_async()
1026 MPP_RET ret = MPP_NOK; in mpp_poll() local
1050 ret = mpp_port_poll(port, timeout); in mpp_poll()
1052 return ret; in mpp_poll()
1059 MPP_RET ret = MPP_NOK; in mpp_dequeue() local
1085 ret = mpp_port_dequeue(port, task); in mpp_dequeue()
1086 if (MPP_OK == ret) in mpp_dequeue()
1090 return ret; in mpp_dequeue()
1097 MPP_RET ret = MPP_NOK; in mpp_enqueue() local
1123 ret = mpp_port_enqueue(port, task); in mpp_enqueue()
1125 if (MPP_OK == ret) in mpp_enqueue()
1129 return ret; in mpp_enqueue()
1158 MPP_RET ret = MPP_NOK; in mpp_control() local
1172 ret = mpp_control_osal(mpp, cmd, param); in mpp_control()
1178 ret = mpp_control_mpp(mpp, cmd, param); in mpp_control()
1187 ret = mpp_control_dec(mpp, cmd, param); in mpp_control()
1194 ret = mpp_control_enc(mpp, cmd, param); in mpp_control()
1198 ret = mpp_control_isp(mpp, cmd, param); in mpp_control()
1204 ret = mpp_control_codec(mpp, cmd, param); in mpp_control()
1212 if (ret) in mpp_control()
1213 mpp_err("command %x param %p ret %d\n", cmd, param, ret); in mpp_control()
1215 return ret; in mpp_control()
1278 MPP_RET ret = MPP_OK; in mpp_control_mpp() local
1295 ret = MPP_ERR_VALUE; in mpp_control_mpp()
1317 ret = MPP_ERR_VALUE; in mpp_control_mpp()
1350 ret = MPP_NOK; in mpp_control_mpp()
1353 return ret; in mpp_control_mpp()
1358 MPP_RET ret = MPP_NOK; in mpp_control_osal() local
1370 return ret; in mpp_control_osal()
1375 MPP_RET ret = MPP_NOK; in mpp_control_codec() local
1384 return ret; in mpp_control_codec()
1389 MPP_RET ret = MPP_NOK; in mpp_control_dec() local
1399 ret = mpp_dec_control(mpp->mDec, cmd, param); in mpp_control_dec()
1414 ret = MPP_OK; in mpp_control_dec()
1461 ret = mpp_dec_control(mpp->mDec, cmd, param); in mpp_control_dec()
1480 ret = mpp_dec_control(mpp->mDec, cmd, param); in mpp_control_dec()
1481 return ret; in mpp_control_dec()
1484 ret = mpp_dec_set_cfg_by_cmd(mpp->mDecCfg, cmd, param); in mpp_control_dec()
1489 ret = MPP_OK; in mpp_control_dec()
1496 ret = mpp_dec_control(mpp->mDec, cmd, param); in mpp_control_dec()
1500 ret = mpp_dec_control(mpp->mDec, cmd, param); in mpp_control_dec()
1502 ret = (MPP_RET)kmpp_obj_update(mpp->mDecCfg, param); in mpp_control_dec()
1507 ret = mpp_dec_control(mpp->mDec, cmd, param); in mpp_control_dec()
1509 ret = (MPP_RET)kmpp_obj_copy_entry(param, mpp->mDecCfg); in mpp_control_dec()
1515 return ret; in mpp_control_dec()
1531 MPP_RET ret = MPP_NOK; in mpp_control_isp() local
1543 return ret; in mpp_control_isp()
1569 MPP_RET ret = MPP_NOK; in mpp_notify_group() local
1579 ret = mpp_notify_flag(mpp, MPP_DEC_NOTIFY_BUFFER_VALID | MPP_DEC_NOTIFY_BUFFER_MATCH); in mpp_notify_group()
1585 return ret; in mpp_notify_group()