Lines Matching defs:ACodec

18 #define LOG_TAG "ACodec"
20 #include <media/stagefright/ACodec.h>
125 struct ACodec::BaseState : public AState {
126 BaseState(ACodec *codec, const sp<AState> &parentState = NULL);
135 ACodec *mCodec;
168 struct ACodec::UninitializedState : public ACodec::BaseState {
169 UninitializedState(ACodec *codec);
184 struct ACodec::LoadedState : public ACodec::BaseState {
185 LoadedState(ACodec *codec);
192 friend struct ACodec::UninitializedState;
203 struct ACodec::LoadedToIdleState : public ACodec::BaseState {
204 LoadedToIdleState(ACodec *codec);
219 struct ACodec::IdleToExecutingState : public ACodec::BaseState {
220 IdleToExecutingState(ACodec *codec);
233 struct ACodec::ExecutingState : public ACodec::BaseState {
234 ExecutingState(ACodec *codec);
260 struct ACodec::OutputPortSettingsChangedState : public ACodec::BaseState {
261 OutputPortSettingsChangedState(ACodec *codec);
276 struct ACodec::ExecutingToIdleState : public ACodec::BaseState {
277 ExecutingToIdleState(ACodec *codec);
298 struct ACodec::IdleToLoadedState : public ACodec::BaseState {
299 IdleToLoadedState(ACodec *codec);
313 struct ACodec::FlushingState : public ACodec::BaseState {
314 FlushingState(ACodec *codec);
335 ACodec::ACodec()
364 ACodec::~ACodec() {
367 void ACodec::setNotificationMessage(const sp<AMessage> &msg) {
371 void ACodec::initiateSetup(const sp<AMessage> &msg) {
377 void ACodec::initiateAllocateComponent(const sp<AMessage> &msg) {
383 void ACodec::initiateConfigureComponent(const sp<AMessage> &msg) {
389 void ACodec::initiateStart() {
393 void ACodec::signalFlush() {
398 void ACodec::signalResume() {
402 void ACodec::initiateShutdown(bool keepComponentAllocated) {
408 void ACodec::signalRequestIDRFrame() {
412 status_t ACodec::allocateBuffersOnPort(OMX_U32 portIndex) {
436 mDealer[portIndex] = new MemoryDealer(totalSize, "ACodec");
480 notify->setInt32("what", ACodec::kWhatBuffersAllocated);
498 status_t ACodec::allocateOutputBuffersFromNativeWindow() {
657 status_t ACodec::cancelBufferToNativeWindow(BufferInfo *info) {
673 ACodec::BufferInfo *ACodec::dequeueBufferFromNativeWindow() {
700 status_t ACodec::freeBuffersOnPort(OMX_U32 portIndex) {
710 status_t ACodec::freeOutputBuffersNotOwnedByComponent() {
728 status_t ACodec::freeBuffer(OMX_U32 portIndex, size_t i) {
748 ACodec::BufferInfo *ACodec::findBufferByID(
767 status_t ACodec::setComponentRole(
850 status_t ACodec::configureCodec(
1013 status_t ACodec::setMinBufferSize(OMX_U32 portIndex, size_t size) {
1050 status_t ACodec::selectAudioPortFormat(
1076 status_t ACodec::setupAACCodec(
1224 status_t ACodec::setupAMRCodec(bool encoder, bool isWAMR, int32_t bitrate) {
1252 status_t ACodec::setupG711Codec(bool encoder, int32_t numChannels) {
1259 status_t ACodec::setupFlacCodec(
1287 status_t ACodec::setupRawAudioFormat(
1335 status_t ACodec::setVideoPortFormatType(
1394 status_t ACodec::setSupportedOutputFormat() {
1438 status_t ACodec::setupVideoDecoder(
1477 status_t ACodec::setupVideoEncoder(const char *mime, const sp<AMessage> &msg) {
1648 status_t ACodec::setupMPEG4EncoderParameters(const sp<AMessage> &msg) {
1729 status_t ACodec::setupH263EncoderParameters(const sp<AMessage> &msg) {
1805 status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) {
1902 status_t ACodec::verifySupportForProfileAndLevel(
1928 status_t ACodec::configureBitrate(
1950 status_t ACodec::setupErrorCorrectionParameters() {
1974 status_t ACodec::setVideoFormatOnPort(
2012 status_t ACodec::initNativeWindow() {
2021 size_t ACodec::countBuffersOwnedByComponent(OMX_U32 portIndex) const {
2035 bool ACodec::allYourBuffersAreBelongToUs(
2052 bool ACodec::allYourBuffersAreBelongToUs() {
2057 void ACodec::deferMessage(const sp<AMessage> &msg) {
2062 void ACodec::processDeferredMessages() {
2072 void ACodec::sendFormatChange() {
2188 void ACodec::signalError(OMX_ERRORTYPE error, status_t internalError) {
2190 notify->setInt32("what", ACodec::kWhatError);
2196 status_t ACodec::pushBlankBuffersToNativeWindow() {
2335 ACodec::PortDescription::PortDescription() {
2338 status_t ACodec::requestIDRFrame() {
2356 void ACodec::PortDescription::addBuffer(
2362 size_t ACodec::PortDescription::countBuffers() {
2366 IOMX::buffer_id ACodec::PortDescription::bufferIDAt(size_t index) const {
2370 sp<ABuffer> ACodec::PortDescription::bufferAt(size_t index) const {
2376 ACodec::BaseState::BaseState(ACodec *codec, const sp<AState> &parentState)
2381 ACodec::BaseState::PortMode ACodec::BaseState::getPortMode(OMX_U32 portIndex) {
2385 bool ACodec::BaseState::onMessageReceived(const sp<AMessage> &msg) {
2399 case ACodec::kWhatOMXMessage:
2411 bool ACodec::BaseState::onOMXMessage(const sp<AMessage> &msg) {
2484 bool ACodec::BaseState::onOMXEvent(
2500 bool ACodec::BaseState::onOMXEmptyBufferDone(IOMX::buffer_id bufferID) {
2549 void ACodec::BaseState::postFillThisBuffer(BufferInfo *info) {
2557 notify->setInt32("what", ACodec::kWhatFillThisBuffer);
2573 void ACodec::BaseState::onInputBufferFilled(const sp<AMessage> &msg) {
2661 ACodec::BufferStats stats;
2723 void ACodec::BaseState::getMoreInputDataIfPossible() {
2752 bool ACodec::BaseState::onOMXFillBufferDone(
2767 ACodec::BufferStats *stats = &mCodec->mBufferStats.editValueAt(index);
2826 notify->setInt32("what", ACodec::kWhatDrainThisBuffer);
2846 notify->setInt32("what", ACodec::kWhatEOS);
2868 void ACodec::BaseState::onOutputBufferDrained(const sp<AMessage> &msg) {
2947 ACodec::UninitializedState::UninitializedState(ACodec *codec)
2951 void ACodec::UninitializedState::stateEntered() {
2955 bool ACodec::UninitializedState::onMessageReceived(const sp<AMessage> &msg) {
2959 case ACodec::kWhatSetup:
2967 case ACodec::kWhatAllocateComponent:
2974 case ACodec::kWhatShutdown:
2982 notify->setInt32("what", ACodec::kWhatShutdownCompleted);
2989 case ACodec::kWhatFlush:
2992 notify->setInt32("what", ACodec::kWhatFlushCompleted);
3006 void ACodec::UninitializedState::onSetup(
3014 bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) {
3109 notify->setInt32("what", ACodec::kWhatComponentAllocated);
3121 ACodec::LoadedState::LoadedState(ACodec *codec)
3125 void ACodec::LoadedState::stateEntered() {
3138 void ACodec::LoadedState::onShutdown(bool keepComponentAllocated) {
3153 notify->setInt32("what", ACodec::kWhatShutdownCompleted);
3157 bool ACodec::LoadedState::onMessageReceived(const sp<AMessage> &msg) {
3161 case ACodec::kWhatConfigureComponent:
3168 case ACodec::kWhatStart:
3175 case ACodec::kWhatShutdown:
3187 case ACodec::kWhatFlush:
3190 notify->setInt32("what", ACodec::kWhatFlushCompleted);
3204 bool ACodec::LoadedState::onConfigureComponent(
3239 notify->setInt32("what", ACodec::kWhatComponentConfigured);
3246 void ACodec::LoadedState::onStart() {
3258 ACodec::LoadedToIdleState::LoadedToIdleState(ACodec *codec)
3262 void ACodec::LoadedToIdleState::stateEntered() {
3277 status_t ACodec::LoadedToIdleState::allocateBuffers() {
3287 bool ACodec::LoadedToIdleState::onMessageReceived(const sp<AMessage> &msg) {
3300 bool ACodec::LoadedToIdleState::onOMXEvent(
3324 ACodec::IdleToExecutingState::IdleToExecutingState(ACodec *codec)
3328 void ACodec::IdleToExecutingState::stateEntered() {
3332 bool ACodec::IdleToExecutingState::onMessageReceived(const sp<AMessage> &msg) {
3345 bool ACodec::IdleToExecutingState::onOMXEvent(
3366 ACodec::ExecutingState::ExecutingState(ACodec *codec)
3371 ACodec::BaseState::PortMode ACodec::ExecutingState::getPortMode(
3376 void ACodec::ExecutingState::submitOutputBuffers() {
3401 void ACodec::ExecutingState::resume() {
3420 void ACodec::ExecutingState::stateEntered() {
3426 bool ACodec::ExecutingState::onMessageReceived(const sp<AMessage> &msg) {
3500 bool ACodec::ExecutingState::onOMXEvent(
3538 ACodec::OutputPortSettingsChangedState::OutputPortSettingsChangedState(
3539 ACodec *codec)
3543 ACodec::BaseState::PortMode ACodec::OutputPortSettingsChangedState::getPortMode(
3554 bool ACodec::OutputPortSettingsChangedState::onMessageReceived(
3580 void ACodec::OutputPortSettingsChangedState::stateEntered() {
3585 bool ACodec::OutputPortSettingsChangedState::onOMXEvent(
3650 ACodec::ExecutingToIdleState::ExecutingToIdleState(ACodec *codec)
3655 bool ACodec::ExecutingToIdleState::onMessageReceived(const sp<AMessage> &msg) {
3683 void ACodec::ExecutingToIdleState::stateEntered() {
3690 bool ACodec::ExecutingToIdleState::onOMXEvent(
3717 void ACodec::ExecutingToIdleState::changeStateIfWeOwnAllBuffers() {
3738 void ACodec::ExecutingToIdleState::onInputBufferFilled(
3745 void ACodec::ExecutingToIdleState::onOutputBufferDrained(
3754 ACodec::IdleToLoadedState::IdleToLoadedState(ACodec *codec)
3758 bool ACodec::IdleToLoadedState::onMessageReceived(const sp<AMessage> &msg) {
3786 void ACodec::IdleToLoadedState::stateEntered() {
3790 bool ACodec::IdleToLoadedState::onOMXEvent(
3810 ACodec::FlushingState::FlushingState(ACodec *codec)
3814 void ACodec::FlushingState::stateEntered() {
3820 bool ACodec::FlushingState::onMessageReceived(const sp<AMessage> &msg) {
3845 bool ACodec::FlushingState::onOMXEvent(
3898 void ACodec::FlushingState::onOutputBufferDrained(const sp<AMessage> &msg) {
3904 void ACodec::FlushingState::onInputBufferFilled(const sp<AMessage> &msg) {
3910 void ACodec::FlushingState::changeStateIfWeOwnAllBuffers() {
3915 notify->setInt32("what", ACodec::kWhatFlushCompleted);