Lines Matching refs:codec_state

255 	    inst->codec_state == VENUS_DEC_STATE_INIT &&  in vdec_check_src_change()
268 if (inst->codec_state != VENUS_DEC_STATE_INIT) in vdec_check_src_change()
276 if (!(inst->codec_state == VENUS_DEC_STATE_CAPTURE_SETUP) || in vdec_check_src_change()
579 if (!ret && inst->codec_state == VENUS_DEC_STATE_DECODING) { in vdec_decoder_cmd()
580 inst->codec_state = VENUS_DEC_STATE_DRAIN; in vdec_decoder_cmd()
584 inst->codec_state == VENUS_DEC_STATE_STOPPED) { in vdec_decoder_cmd()
589 inst->codec_state = VENUS_DEC_STATE_DECODING; in vdec_decoder_cmd()
992 if (inst->codec_state == VENUS_DEC_STATE_CAPTURE_SETUP) in vdec_queue_setup()
993 inst->codec_state = VENUS_DEC_STATE_STOPPED; in vdec_queue_setup()
1042 if (inst->codec_state == VENUS_DEC_STATE_DECODING) { in vdec_start_capture()
1052 if (inst->codec_state != VENUS_DEC_STATE_STOPPED) in vdec_start_capture()
1089 inst->codec_state = VENUS_DEC_STATE_DECODING; in vdec_start_capture()
1092 inst->codec_state = VENUS_DEC_STATE_DRAIN; in vdec_start_capture()
1111 if (inst->codec_state == VENUS_DEC_STATE_SEEK) { in vdec_start_output()
1114 inst->codec_state = VENUS_DEC_STATE_DRC; in vdec_start_output()
1116 inst->codec_state = VENUS_DEC_STATE_DECODING; in vdec_start_output()
1120 if (inst->codec_state == VENUS_DEC_STATE_INIT || in vdec_start_output()
1121 inst->codec_state == VENUS_DEC_STATE_CAPTURE_SETUP) { in vdec_start_output()
1126 if (inst->codec_state != VENUS_DEC_STATE_DEINIT) in vdec_start_output()
1163 inst->codec_state = VENUS_DEC_STATE_INIT; in vdec_start_output()
1221 switch (inst->codec_state) { in vdec_stop_capture()
1226 inst->codec_state = VENUS_DEC_STATE_STOPPED; in vdec_stop_capture()
1234 inst->codec_state = VENUS_DEC_STATE_CAPTURE_SETUP; in vdec_stop_capture()
1248 switch (inst->codec_state) { in vdec_stop_output()
1254 inst->codec_state = VENUS_DEC_STATE_SEEK; in vdec_stop_output()
1305 inst->codec_state = VENUS_DEC_STATE_DEINIT; in vdec_session_release()
1370 inst->codec_state == VENUS_DEC_STATE_DRC) { in vdec_vb2_buf_queue()
1433 if (inst->codec_state == VENUS_DEC_STATE_DRAIN) { in vdec_buf_done()
1435 inst->codec_state = VENUS_DEC_STATE_STOPPED; in vdec_buf_done()
1520 switch (inst->codec_state) { in vdec_event_change()
1522 inst->codec_state = VENUS_DEC_STATE_CAPTURE_SETUP; in vdec_event_change()
1526 inst->codec_state = VENUS_DEC_STATE_DRC; in vdec_event_change()
1538 if (inst->codec_state == VENUS_DEC_STATE_DRC) { in vdec_event_change()
1685 inst->codec_state = VENUS_DEC_STATE_DEINIT; in vdec_open()