Lines Matching defs:ACodec

18 #define LOG_TAG "ACodec"
20 #include <media/stagefright/ACodec.h>
126 struct ACodec::BaseState : public AState {
127 BaseState(ACodec *codec, const sp<AState> &parentState = NULL);
136 ACodec *mCodec;
169 struct ACodec::DeathNotifier : public IBinder::DeathRecipient {
187 struct ACodec::UninitializedState : public ACodec::BaseState {
188 UninitializedState(ACodec *codec);
205 struct ACodec::LoadedState : public ACodec::BaseState {
206 LoadedState(ACodec *codec);
213 friend struct ACodec::UninitializedState;
225 struct ACodec::LoadedToIdleState : public ACodec::BaseState {
226 LoadedToIdleState(ACodec *codec);
241 struct ACodec::IdleToExecutingState : public ACodec::BaseState {
242 IdleToExecutingState(ACodec *codec);
255 struct ACodec::ExecutingState : public ACodec::BaseState {
256 ExecutingState(ACodec *codec);
284 struct ACodec::OutputPortSettingsChangedState : public ACodec::BaseState {
285 OutputPortSettingsChangedState(ACodec *codec);
300 struct ACodec::ExecutingToIdleState : public ACodec::BaseState {
301 ExecutingToIdleState(ACodec *codec);
322 struct ACodec::IdleToLoadedState : public ACodec::BaseState {
323 IdleToLoadedState(ACodec *codec);
337 struct ACodec::FlushingState : public ACodec::BaseState {
338 FlushingState(ACodec *codec);
359 ACodec::ACodec()
393 ACodec::~ACodec() {
396 void ACodec::setNotificationMessage(const sp<AMessage> &msg) {
400 void ACodec::initiateSetup(const sp<AMessage> &msg) {
406 void ACodec::signalSetParameters(const sp<AMessage> &params) {
412 void ACodec::initiateAllocateComponent(const sp<AMessage> &msg) {
418 void ACodec::initiateConfigureComponent(const sp<AMessage> &msg) {
424 void ACodec::initiateCreateInputSurface() {
428 void ACodec::signalEndOfInputStream() {
432 void ACodec::initiateStart() {
436 void ACodec::signalFlush() {
441 void ACodec::signalResume() {
445 void ACodec::initiateShutdown(bool keepComponentAllocated) {
451 void ACodec::signalRequestIDRFrame() {
460 void ACodec::signalSubmitOutputMetaDataBufferIfEOS_workaround() {
467 status_t ACodec::allocateBuffersOnPort(OMX_U32 portIndex) {
495 mDealer[portIndex] = new MemoryDealer(totalSize, "ACodec");
543 notify->setInt32("what", ACodec::kWhatBuffersAllocated);
561 status_t ACodec::configureOutputBuffersFromNativeWindow(
669 status_t ACodec::allocateOutputBuffersFromNativeWindow() {
734 status_t ACodec::allocateOutputMetaDataBuffers() {
745 mDealer[kPortIndexOutput] = new MemoryDealer(totalSize, "ACodec");
773 status_t ACodec::submitOutputMetaDataBuffer() {
793 status_t ACodec::cancelBufferToNativeWindow(BufferInfo *info) {
809 ACodec::BufferInfo *ACodec::dequeueBufferFromNativeWindow() {
872 status_t ACodec::freeBuffersOnPort(OMX_U32 portIndex) {
882 status_t ACodec::freeOutputBuffersNotOwnedByComponent() {
898 status_t ACodec::freeBuffer(OMX_U32 portIndex, size_t i) {
918 ACodec::BufferInfo *ACodec::findBufferByID(
937 status_t ACodec::setComponentRole(
1024 status_t ACodec::configureCodec(
1301 status_t ACodec::setMinBufferSize(OMX_U32 portIndex, size_t size) {
1338 status_t ACodec::selectAudioPortFormat(
1364 status_t ACodec::setupAACCodec(
1512 status_t ACodec::setupAMRCodec(bool encoder, bool isWAMR, int32_t bitrate) {
1540 status_t ACodec::setupG711Codec(bool encoder, int32_t numChannels) {
1547 status_t ACodec::setupFlacCodec(
1575 status_t ACodec::setupRawAudioFormat(
1623 status_t ACodec::setVideoPortFormatType(
1682 status_t ACodec::setSupportedOutputFormat() {
1743 status_t ACodec::setupVideoDecoder(
1782 status_t ACodec::setupVideoEncoder(const char *mime, const sp<AMessage> &msg) {
1938 status_t ACodec::setCyclicIntraMacroblockRefresh(const sp<AMessage> &msg, int32_t mode) {
1995 status_t ACodec::setupMPEG4EncoderParameters(const sp<AMessage> &msg) {
2076 status_t ACodec::setupH263EncoderParameters(const sp<AMessage> &msg) {
2152 status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) {
2260 status_t ACodec::setupVPXEncoderParameters(const sp<AMessage> &msg) {
2271 status_t ACodec::verifySupportForProfileAndLevel(
2297 status_t ACodec::configureBitrate(
2319 status_t ACodec::setupErrorCorrectionParameters() {
2343 status_t ACodec::setVideoFormatOnPort(
2381 status_t ACodec::initNativeWindow() {
2390 size_t ACodec::countBuffersOwnedByComponent(OMX_U32 portIndex) const {
2404 size_t ACodec::countBuffersOwnedByNativeWindow() const {
2418 void ACodec::waitUntilAllPossibleNativeWindowBuffersAreReturnedToUs() {
2444 bool ACodec::allYourBuffersAreBelongToUs(
2461 bool ACodec::allYourBuffersAreBelongToUs() {
2466 void ACodec::deferMessage(const sp<AMessage> &msg) {
2471 void ACodec::processDeferredMessages() {
2481 void ACodec::sendFormatChange(const sp<AMessage> &reply) {
2682 void ACodec::signalError(OMX_ERRORTYPE error, status_t internalError) {
2684 notify->setInt32("what", ACodec::kWhatError);
2690 status_t ACodec::pushBlankBuffersToNativeWindow() {
2837 ACodec::PortDescription::PortDescription() {
2840 status_t ACodec::requestIDRFrame() {
2858 void ACodec::PortDescription::addBuffer(
2864 size_t ACodec::PortDescription::countBuffers() {
2868 IOMX::buffer_id ACodec::PortDescription::bufferIDAt(size_t index) const {
2872 sp<ABuffer> ACodec::PortDescription::bufferAt(size_t index) const {
2878 ACodec::BaseState::BaseState(ACodec *codec, const sp<AState> &parentState)
2883 ACodec::BaseState::PortMode ACodec::BaseState::getPortMode(OMX_U32 portIndex) {
2887 bool ACodec::BaseState::onMessageReceived(const sp<AMessage> &msg) {
2901 case ACodec::kWhatOMXMessage:
2906 case ACodec::kWhatCreateInputSurface:
2907 case ACodec::kWhatSignalEndOfInputStream:
2914 case ACodec::kWhatOMXDied:
2928 bool ACodec::BaseState::onOMXMessage(const sp<AMessage> &msg) {
3001 bool ACodec::BaseState::onOMXEvent(
3017 bool ACodec::BaseState::onOMXEmptyBufferDone(IOMX::buffer_id bufferID) {
3066 void ACodec::BaseState::postFillThisBuffer(BufferInfo *info) {
3074 notify->setInt32("what", ACodec::kWhatFillThisBuffer);
3090 void ACodec::BaseState::onInputBufferFilled(const sp<AMessage> &msg) {
3182 ACodec::BufferStats stats;
3258 void ACodec::BaseState::getMoreInputDataIfPossible() {
3287 bool ACodec::BaseState::onOMXFillBufferDone(
3302 ACodec::BufferStats *stats = &mCodec->mBufferStats.editValueAt(index);
3372 notify->setInt32("what", ACodec::kWhatDrainThisBuffer);
3389 notify->setInt32("what", ACodec::kWhatEOS);
3411 void ACodec::BaseState::onOutputBufferDrained(const sp<AMessage> &msg) {
3498 ACodec::UninitializedState::UninitializedState(ACodec *codec)
3502 void ACodec::UninitializedState::stateEntered() {
3519 bool ACodec::UninitializedState::onMessageReceived(const sp<AMessage> &msg) {
3523 case ACodec::kWhatSetup:
3531 case ACodec::kWhatAllocateComponent:
3538 case ACodec::kWhatShutdown:
3546 notify->setInt32("what", ACodec::kWhatShutdownCompleted);
3553 case ACodec::kWhatFlush:
3556 notify->setInt32("what", ACodec::kWhatFlushCompleted);
3570 void ACodec::UninitializedState::onSetup(
3578 bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) {
3678 notify->setInt32("what", ACodec::kWhatComponentAllocated);
3690 ACodec::LoadedState::LoadedState(ACodec *codec)
3694 void ACodec::LoadedState::stateEntered() {
3716 void ACodec::LoadedState::onShutdown(bool keepComponentAllocated) {
3724 notify->setInt32("what", ACodec::kWhatShutdownCompleted);
3728 bool ACodec::LoadedState::onMessageReceived(const sp<AMessage> &msg) {
3732 case ACodec::kWhatConfigureComponent:
3739 case ACodec::kWhatCreateInputSurface:
3746 case ACodec::kWhatStart:
3753 case ACodec::kWhatShutdown:
3765 case ACodec::kWhatFlush:
3768 notify->setInt32("what", ACodec::kWhatFlushCompleted);
3782 bool ACodec::LoadedState::onConfigureComponent(
3817 notify->setInt32("what", ACodec::kWhatComponentConfigured);
3824 void ACodec::LoadedState::onCreateInputSurface(
3829 notify->setInt32("what", ACodec::kWhatInputSurfaceCreated);
3867 void ACodec::LoadedState::onStart() {
3879 ACodec::LoadedToIdleState::LoadedToIdleState(ACodec *codec)
3883 void ACodec::LoadedToIdleState::stateEntered() {
3898 status_t ACodec::LoadedToIdleState::allocateBuffers() {
3908 bool ACodec::LoadedToIdleState::onMessageReceived(const sp<AMessage> &msg) {
3932 notify->setInt32("what", ACodec::kWhatFlushCompleted);
3942 bool ACodec::LoadedToIdleState::onOMXEvent(
3966 ACodec::IdleToExecutingState::IdleToExecutingState(ACodec *codec)
3970 void ACodec::IdleToExecutingState::stateEntered() {
3974 bool ACodec::IdleToExecutingState::onMessageReceived(const sp<AMessage> &msg) {
3992 notify->setInt32("what", ACodec::kWhatFlushCompleted);
4009 bool ACodec::IdleToExecutingState::onOMXEvent(
4030 ACodec::ExecutingState::ExecutingState(ACodec *codec)
4035 ACodec::BaseState::PortMode ACodec::ExecutingState::getPortMode(
4040 void ACodec::ExecutingState::submitOutputMetaBuffers() {
4056 void ACodec::ExecutingState::submitRegularOutputBuffers() {
4081 void ACodec::ExecutingState::submitOutputBuffers() {
4088 void ACodec::ExecutingState::resume() {
4107 void ACodec::ExecutingState::stateEntered() {
4113 bool ACodec::ExecutingState::onMessageReceived(const sp<AMessage> &msg) {
4195 case ACodec::kWhatSignalEndOfInputStream:
4223 status_t ACodec::setParameters(const sp<AMessage> &params) {
4276 void ACodec::onSignalEndOfInputStream() {
4278 notify->setInt32("what", ACodec::kWhatSignaledInputEOS);
4287 bool ACodec::ExecutingState::onOMXEvent(
4326 ACodec::OutputPortSettingsChangedState::OutputPortSettingsChangedState(
4327 ACodec *codec)
4331 ACodec::BaseState::PortMode ACodec::OutputPortSettingsChangedState::getPortMode(
4342 bool ACodec::OutputPortSettingsChangedState::onMessageReceived(
4368 void ACodec::OutputPortSettingsChangedState::stateEntered() {
4373 bool ACodec::OutputPortSettingsChangedState::onOMXEvent(
4438 ACodec::ExecutingToIdleState::ExecutingToIdleState(ACodec *codec)
4443 bool ACodec::ExecutingToIdleState::onMessageReceived(const sp<AMessage> &msg) {
4471 void ACodec::ExecutingToIdleState::stateEntered() {
4478 bool ACodec::ExecutingToIdleState::onOMXEvent(
4505 void ACodec::ExecutingToIdleState::changeStateIfWeOwnAllBuffers() {
4527 void ACodec::ExecutingToIdleState::onInputBufferFilled(
4534 void ACodec::ExecutingToIdleState::onOutputBufferDrained(
4543 ACodec::IdleToLoadedState::IdleToLoadedState(ACodec *codec)
4547 bool ACodec::IdleToLoadedState::onMessageReceived(const sp<AMessage> &msg) {
4575 void ACodec::IdleToLoadedState::stateEntered() {
4579 bool ACodec::IdleToLoadedState::onOMXEvent(
4599 ACodec::FlushingState::FlushingState(ACodec *codec)
4603 void ACodec::FlushingState::stateEntered() {
4609 bool ACodec::FlushingState::onMessageReceived(const sp<AMessage> &msg) {
4634 bool ACodec::FlushingState::onOMXEvent(
4687 void ACodec::FlushingState::onOutputBufferDrained(const sp<AMessage> &msg) {
4693 void ACodec::FlushingState::onInputBufferFilled(const sp<AMessage> &msg) {
4699 void ACodec::FlushingState::changeStateIfWeOwnAllBuffers() {
4708 notify->setInt32("what", ACodec::kWhatFlushCompleted);