Home | History | Annotate | Download | only in libstagefright

Lines Matching refs: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);
282 struct ACodec::OutputPortSettingsChangedState : public ACodec::BaseState {
283 OutputPortSettingsChangedState(ACodec *codec);
298 struct ACodec::ExecutingToIdleState : public ACodec::BaseState {
299 ExecutingToIdleState(ACodec *codec);
320 struct ACodec::IdleToLoadedState : public ACodec::BaseState {
321 IdleToLoadedState(ACodec *codec);
335 struct ACodec::FlushingState : public ACodec::BaseState {
336 FlushingState(ACodec *codec);
357 ACodec::ACodec()
386 ACodec::~ACodec() {
389 void ACodec::setNotificationMessage(const sp<AMessage> &msg) {
393 void ACodec::initiateSetup(const sp<AMessage> &msg) {
399 void ACodec::signalSetParameters(const sp<AMessage> &params) {
405 void ACodec::initiateAllocateComponent(const sp<AMessage> &msg) {
411 void ACodec::initiateConfigureComponent(const sp<AMessage> &msg) {
417 void ACodec::initiateCreateInputSurface() {
421 void ACodec::signalEndOfInputStream() {
425 void ACodec::initiateStart() {
429 void ACodec::signalFlush() {
434 void ACodec::signalResume() {
438 void ACodec::initiateShutdown(bool keepComponentAllocated) {
444 void ACodec::signalRequestIDRFrame() {
448 status_t ACodec::allocateBuffersOnPort(OMX_U32 portIndex) {
472 mDealer[portIndex] = new MemoryDealer(totalSize, "ACodec");
516 notify->setInt32("what", ACodec::kWhatBuffersAllocated);
534 status_t ACodec::allocateOutputBuffersFromNativeWindow() {
693 status_t ACodec::cancelBufferToNativeWindow(BufferInfo *info) {
709 ACodec::BufferInfo *ACodec::dequeueBufferFromNativeWindow() {
736 status_t ACodec::freeBuffersOnPort(OMX_U32 portIndex) {
746 status_t ACodec::freeOutputBuffersNotOwnedByComponent() {
762 status_t ACodec::freeBuffer(OMX_U32 portIndex, size_t i) {
782 ACodec::BufferInfo *ACodec::findBufferByID(
801 status_t ACodec::setComponentRole(
886 status_t ACodec::configureCodec(
1073 status_t ACodec::setMinBufferSize(OMX_U32 portIndex, size_t size) {
1110 status_t ACodec::selectAudioPortFormat(
1136 status_t ACodec::setupAACCodec(
1284 status_t ACodec::setupAMRCodec(bool encoder, bool isWAMR, int32_t bitrate) {
1312 status_t ACodec::setupG711Codec(bool encoder, int32_t numChannels) {
1319 status_t ACodec::setupFlacCodec(
1347 status_t ACodec::setupRawAudioFormat(
1395 status_t ACodec::setVideoPortFormatType(
1454 status_t ACodec::setSupportedOutputFormat() {
1514 status_t ACodec::setupVideoDecoder(
1553 status_t ACodec::setupVideoEncoder(const char *mime, const sp<AMessage> &msg) {
1704 status_t ACodec::setCyclicIntraMacroblockRefresh(const sp<AMessage> &msg, int32_t mode) {
1761 status_t ACodec::setupMPEG4EncoderParameters(const sp<AMessage> &msg) {
1842 status_t ACodec::setupH263EncoderParameters(const sp<AMessage> &msg) {
1918 status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) {
2026 status_t ACodec::verifySupportForProfileAndLevel(
2052 status_t ACodec::configureBitrate(
2074 status_t ACodec::setupErrorCorrectionParameters() {
2098 status_t ACodec::setVideoFormatOnPort(
2136 status_t ACodec::initNativeWindow() {
2145 size_t ACodec::countBuffersOwnedByComponent(OMX_U32 portIndex) const {
2159 size_t ACodec::countBuffersOwnedByNativeWindow() const {
2173 void ACodec::waitUntilAllPossibleNativeWindowBuffersAreReturnedToUs() {
2195 bool ACodec::allYourBuffersAreBelongToUs(
2212 bool ACodec::allYourBuffersAreBelongToUs() {
2217 void ACodec::deferMessage(const sp<AMessage> &msg) {
2222 void ACodec::processDeferredMessages() {
2232 void ACodec::sendFormatChange(const sp<AMessage> &reply) {
2425 void ACodec::signalError(OMX_ERRORTYPE error, status_t internalError) {
2427 notify->setInt32("what", ACodec::kWhatError);
2433 status_t ACodec::pushBlankBuffersToNativeWindow() {
2572 ACodec::PortDescription::PortDescription() {
2575 status_t ACodec::requestIDRFrame() {
2593 void ACodec::PortDescription::addBuffer(
2599 size_t ACodec::PortDescription::countBuffers() {
2603 IOMX::buffer_id ACodec::PortDescription::bufferIDAt(size_t index) const {
2607 sp<ABuffer> ACodec::PortDescription::bufferAt(size_t index) const {
2613 ACodec::BaseState::BaseState(ACodec *codec, const sp<AState> &parentState)
2618 ACodec::BaseState::PortMode ACodec::BaseState::getPortMode(OMX_U32 portIndex) {
2622 bool ACodec::BaseState::onMessageReceived(const sp<AMessage> &msg) {
2636 case ACodec::kWhatOMXMessage:
2641 case ACodec::kWhatCreateInputSurface:
2642 case ACodec::kWhatSignalEndOfInputStream:
2649 case ACodec::kWhatOMXDied:
2663 bool ACodec::BaseState::onOMXMessage(const sp<AMessage> &msg) {
2736 bool ACodec::BaseState::onOMXEvent(
2752 bool ACodec::BaseState::onOMXEmptyBufferDone(IOMX::buffer_id bufferID) {
2801 void ACodec::BaseState::postFillThisBuffer(BufferInfo *info) {
2809 notify->setInt32("what", ACodec::kWhatFillThisBuffer);
2825 void ACodec::BaseState::onInputBufferFilled(const sp<AMessage> &msg) {
2913 ACodec::BufferStats stats;
2975 void ACodec::BaseState::getMoreInputDataIfPossible() {
3004 bool ACodec::BaseState::onOMXFillBufferDone(
3019 ACodec::BufferStats *stats = &mCodec->mBufferStats.editValueAt(index);
3080 notify->setInt32("what", ACodec::kWhatDrainThisBuffer);
3097 notify->setInt32("what", ACodec::kWhatEOS);
3119 void ACodec::BaseState::onOutputBufferDrained(const sp<AMessage> &msg) {
3206 ACodec::UninitializedState::UninitializedState(ACodec *codec)
3210 void ACodec::UninitializedState::stateEntered() {
3226 bool ACodec::UninitializedState::onMessageReceived(const sp<AMessage> &msg) {
3230 case ACodec::kWhatSetup:
3238 case ACodec::kWhatAllocateComponent:
3245 case ACodec::kWhatShutdown:
3253 notify->setInt32("what", ACodec::kWhatShutdownCompleted);
3260 case ACodec::kWhatFlush:
3263 notify->setInt32("what", ACodec::kWhatFlushCompleted);
3277 void ACodec::UninitializedState::onSetup(
3285 bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) {
3384 notify->setInt32("what", ACodec::kWhatComponentAllocated);
3396 ACodec::LoadedState::LoadedState(ACodec *codec)
3400 void ACodec::LoadedState::stateEntered() {
3418 void ACodec::LoadedState::onShutdown(bool keepComponentAllocated) {
3426 notify->setInt32("what", ACodec::kWhatShutdownCompleted);
3430 bool ACodec::LoadedState::onMessageReceived(const sp<AMessage> &msg) {
3434 case ACodec::kWhatConfigureComponent:
3441 case ACodec::kWhatCreateInputSurface:
3448 case ACodec::kWhatStart:
3455 case ACodec::kWhatShutdown:
3467 case ACodec::kWhatFlush:
3470 notify->setInt32("what", ACodec::kWhatFlushCompleted);
3484 bool ACodec::LoadedState::onConfigureComponent(
3519 notify->setInt32("what", ACodec::kWhatComponentConfigured);
3526 void ACodec::LoadedState::onCreateInputSurface(
3531 notify->setInt32("what", ACodec::kWhatInputSurfaceCreated);
3552 void ACodec::LoadedState::onStart() {
3564 ACodec::LoadedToIdleState::LoadedToIdleState(ACodec *codec)
3568 void ACodec::LoadedToIdleState::stateEntered() {
3583 status_t ACodec::LoadedToIdleState::allocateBuffers() {
3593 bool ACodec::LoadedToIdleState::onMessageReceived(const sp<AMessage> &msg) {
3617 notify->setInt32("what", ACodec::kWhatFlushCompleted);
3627 bool ACodec::LoadedToIdleState::onOMXEvent(
3651 ACodec::IdleToExecutingState::IdleToExecutingState(ACodec *codec)
3655 void ACodec::IdleToExecutingState::stateEntered() {
3659 bool ACodec::IdleToExecutingState::onMessageReceived(const sp<AMessage> &msg) {
3677 notify->setInt32("what", ACodec::kWhatFlushCompleted);
3694 bool ACodec::IdleToExecutingState::onOMXEvent(
3715 ACodec::ExecutingState::ExecutingState(ACodec *codec)
3720 ACodec::BaseState::PortMode ACodec::ExecutingState::getPortMode(
3725 void ACodec::ExecutingState::submitOutputBuffers() {
3750 void ACodec::ExecutingState::resume() {
3769 void ACodec::ExecutingState::stateEntered() {
3775 bool ACodec::ExecutingState::onMessageReceived(const sp<AMessage> &msg) {
3857 case ACodec::kWhatSignalEndOfInputStream:
3872 status_t ACodec::setParameters(const sp<AMessage> &params) {
3897 void ACodec::onSignalEndOfInputStream() {
3899 notify->setInt32("what", ACodec::kWhatSignaledInputEOS);
3908 bool ACodec::ExecutingState::onOMXEvent(
3946 ACodec::OutputPortSettingsChangedState::OutputPortSettingsChangedState(
3947 ACodec *codec)
3951 ACodec::BaseState::PortMode ACodec::OutputPortSettingsChangedState::getPortMode(
3962 bool ACodec::OutputPortSettingsChangedState::onMessageReceived(
3988 void ACodec::OutputPortSettingsChangedState::stateEntered() {
3993 bool ACodec::OutputPortSettingsChangedState::onOMXEvent(
4058 ACodec::ExecutingToIdleState::ExecutingToIdleState(ACodec *codec)
4063 bool ACodec::ExecutingToIdleState::onMessageReceived(const sp<AMessage> &msg) {
4091 void ACodec::ExecutingToIdleState::stateEntered() {
4098 bool ACodec::ExecutingToIdleState::onOMXEvent(
4125 void ACodec::ExecutingToIdleState::changeStateIfWeOwnAllBuffers() {
4146 void ACodec::ExecutingToIdleState::onInputBufferFilled(
4153 void ACodec::ExecutingToIdleState::onOutputBufferDrained(
4162 ACodec::IdleToLoadedState::IdleToLoadedState(ACodec *codec)
4166 bool ACodec::IdleToLoadedState::onMessageReceived(const sp<AMessage> &msg) {
4194 void ACodec::IdleToLoadedState::stateEntered() {
4198 bool ACodec::IdleToLoadedState::onOMXEvent(
4218 ACodec::FlushingState::FlushingState(ACodec *codec)
4222 void ACodec::FlushingState::stateEntered() {
4228 bool ACodec::FlushingState::onMessageReceived(const sp<AMessage> &msg) {
4253 bool ACodec::FlushingState::onOMXEvent(
4306 void ACodec::FlushingState::onOutputBufferDrained(const sp<AMessage> &msg) {
4312 void ACodec::FlushingState::onInputBufferFilled(const sp<AMessage> &msg) {
4318 void ACodec::FlushingState::changeStateIfWeOwnAllBuffers() {
4327 notify->setInt32("what", ACodec::kWhatFlushCompleted);