• Home
  • Raw
  • Download

Lines Matching refs:EncoderState

394     ALOG_ASSERT(mEncoderState == EncoderState::UNINITIALIZED);  in startTask()
415 setEncoderState(EncoderState::UNINITIALIZED); in stopTask()
422 ALOG_ASSERT(mEncoderState != EncoderState::UNINITIALIZED); in queueTask()
425 if (mEncoderState == EncoderState::ERROR) { in queueTask()
436 if (mEncoderState == EncoderState::WAITING_FOR_INPUT) { in queueTask()
437 setEncoderState(EncoderState::ENCODING); in queueTask()
462 setEncoderState(EncoderState::DRAINING); in drainTask()
482 ALOG_ASSERT(mEncoderState == EncoderState::DRAINING || mEncoderState == EncoderState::ERROR); in onDrainDone()
484 if (mEncoderState == EncoderState::ERROR) { in onDrainDone()
519 setEncoderState(EncoderState::ENCODING); in onDrainDone()
524 setEncoderState(EncoderState::WAITING_FOR_INPUT); in onDrainDone()
559 ALOG_ASSERT(mEncoderState == EncoderState::UNINITIALIZED); in initializeEncoder()
627 setEncoderState(EncoderState::WAITING_FOR_INPUT); in initializeEncoder()
631 setEncoderState(EncoderState::ENCODING); in initializeEncoder()
641 ALOG_ASSERT(mEncoderState == EncoderState::UNINITIALIZED); in configureInputFormat()
755 ALOG_ASSERT(mEncoderState == EncoderState::UNINITIALIZED); in configureOutputFormat()
932 ALOG_ASSERT(mEncoderState == EncoderState::ENCODING || mEncoderState == EncoderState::ERROR); in scheduleNextEncodeTask()
935 if (mEncoderState == EncoderState::ERROR) { in scheduleNextEncodeTask()
964 setEncoderState(EncoderState::WAITING_FOR_INPUT_BUFFERS); in scheduleNextEncodeTask()
994 if (mEncoderState == EncoderState::DRAINING) { in scheduleNextEncodeTask()
997 setEncoderState(EncoderState::WAITING_FOR_INPUT); in scheduleNextEncodeTask()
1009 ALOG_ASSERT(mEncoderState == EncoderState::ENCODING); in encode()
1092 if (mEncoderState == EncoderState::DRAINING || mEncoderState == EncoderState::ERROR) { in drain()
1110 setEncoderState(EncoderState::DRAINING); in drain()
1184 ALOG_ASSERT(mEncoderState != EncoderState::UNINITIALIZED); in onInputBufferDone()
1216 if (mEncoderState == EncoderState::DRAINING && mOutputWorkQueue.empty()) { in onInputBufferDone()
1218 mEncoderState = EncoderState::WAITING_FOR_INPUT_BUFFERS; in onInputBufferDone()
1222 if ((mEncoderState == EncoderState::WAITING_FOR_INPUT_BUFFERS) && !mInputWorkQueue.empty()) { in onInputBufferDone()
1223 setEncoderState(EncoderState::ENCODING); in onInputBufferDone()
1236 if (mEncoderState == EncoderState::ERROR) { in onOutputBufferDone()
1407 ALOG_ASSERT(mEncoderState != EncoderState::UNINITIALIZED); in serviceDeviceTask()
1409 if (mEncoderState == EncoderState::ERROR) { in serviceDeviceTask()
1433 ALOG_ASSERT(mEncoderState == EncoderState::ENCODING); in enqueueInputBuffer()
1519 ALOG_ASSERT(mEncoderState != EncoderState::UNINITIALIZED); in dequeueInputBuffer()
1550 ALOG_ASSERT(mEncoderState != EncoderState::UNINITIALIZED); in dequeueOutputBuffer()
1587 if ((mEncoderState == EncoderState::DRAINING) && buffer->IsLast()) { in dequeueOutputBuffer()
1682 if (mEncoderState != EncoderState::ERROR) { in reportError()
1683 setEncoderState(EncoderState::ERROR); in reportError()
1711 void V4L2EncodeComponent::setEncoderState(EncoderState state) { in setEncoderState()
1716 case EncoderState::UNINITIALIZED: in setEncoderState()
1719 case EncoderState::WAITING_FOR_INPUT: in setEncoderState()
1720 ALOG_ASSERT(mEncoderState == EncoderState::UNINITIALIZED || in setEncoderState()
1721 mEncoderState == EncoderState::ENCODING || in setEncoderState()
1722 mEncoderState == EncoderState::DRAINING); in setEncoderState()
1724 case EncoderState::WAITING_FOR_INPUT_BUFFERS: in setEncoderState()
1725 ALOG_ASSERT(mEncoderState == EncoderState::ENCODING); in setEncoderState()
1727 case EncoderState::ENCODING: in setEncoderState()
1728 ALOG_ASSERT(mEncoderState == EncoderState::WAITING_FOR_INPUT || in setEncoderState()
1729 mEncoderState == EncoderState::WAITING_FOR_INPUT_BUFFERS || in setEncoderState()
1730 mEncoderState == EncoderState::DRAINING); in setEncoderState()
1732 case EncoderState::DRAINING: in setEncoderState()
1733 ALOG_ASSERT(mEncoderState == EncoderState::ENCODING); in setEncoderState()
1735 case EncoderState::ERROR: in setEncoderState()
1757 const char* V4L2EncodeComponent::encoderStateToString(V4L2EncodeComponent::EncoderState state) { in encoderStateToString()
1759 case EncoderState::UNINITIALIZED: in encoderStateToString()
1761 case EncoderState::WAITING_FOR_INPUT: in encoderStateToString()
1763 case EncoderState::WAITING_FOR_INPUT_BUFFERS: in encoderStateToString()
1765 case EncoderState::ENCODING: in encoderStateToString()
1767 case EncoderState::DRAINING: in encoderStateToString()
1769 case EncoderState::ERROR: in encoderStateToString()