/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 315 CodecState *state = local 319 state->mNumFramesWritten = 0; 320 state->mCodec = MediaCodec::CreateByType( 323 CHECK(state->mCodec != NULL); 325 err = state->mCodec->configure( 336 state->mCSD.push_back(buffer); 343 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 345 status_t err = state->mCodec->start(); 348 err = state->mCodec->getInputBuffers(&state 404 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 423 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 478 CodecState *state = &mStateByTrackIndex.editValueFor(trackIndex); local 519 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 571 onOutputFormatChanged( size_t trackIndex, CodecState *state) argument 602 renderAudio( CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) argument [all...] |
H A D | codec.cpp | 113 CodecState *state = local 116 state->mNumBytesDecoded = 0; 117 state->mNumBuffersDecoded = 0; 118 state->mIsAudio = isAudio; 120 state->mCodec = MediaCodec::CreateByType( 123 CHECK(state->mCodec != NULL); 125 err = state->mCodec->configure( 132 state->mSignalledInputEOS = false; 133 state->mSawOutputEOS = false; 141 CodecState *state local 165 CodecState *state = &stateByTrack.editValueFor(trackIndex); local 200 CodecState *state = &stateByTrack.editValueAt(i); local 229 CodecState *state = &stateByTrack.editValueAt(i); local 241 CodecState *state = &stateByTrack.editValueAt(i); local 291 CodecState *state = &stateByTrack.editValueAt(i); local [all...] |
/frameworks/av/include/media/ |
H A D | SoundPool.h | 63 int state() { return mState; } function in class:android::Sample 123 enum state { IDLE, RESUMING, STOPPING, PAUSED, PLAYING }; enum in class:android::SoundChannel 139 int state() { return mState; } function in class:android::SoundChannel
|
/frameworks/av/media/common_time/ |
H A D | ICommonClock.cpp | 180 virtual status_t getState(State* state) { argument 187 *state = static_cast<State>(reply.readInt32()); 347 State state; local 348 status_t status = getState(&state); 351 reply->writeInt32(static_cast<int32_t>(state));
|
/frameworks/av/media/libeffects/downmix/ |
H A D | EffectDownmix.h | 39 downmix_state_t state; member in struct:__anon96
|
/frameworks/av/media/libeffects/preprocessing/ |
H A D | PreProcessing.cpp | 50 // Session state 56 // Effect/Preprocessor state 88 uint32_t state; // current state (enum preproc_effect_state) member in struct:preproc_effect_s 101 uint32_t state; // current state (enum preproc_session_state) member in struct:preproc_session_s 636 LOG_ALWAYS_FATAL("Bad state transition from %d to %d", from, to); 638 int Effect_SetState(preproc_effect_t *effect, uint32_t state) argument 641 ALOGV("Effect_SetState proc %d, new %d old %d", effect->procId, state, effect->state); [all...] |
/frameworks/av/media/libeffects/testlibs/ |
H A D | AudioBiquadFilter.cpp | 88 void AudioBiquadFilter::setState(state_t state) { argument 89 switch (state) { 117 mState = state;
|
H A D | EffectEqualizer.cpp | 111 uint32_t state; member in struct:android::__anon234::EqualizerContext 147 pContext->state = EQUALIZER_STATE_UNINITIALIZED; 157 pContext->state = EQUALIZER_STATE_INITIALIZED; 174 pContext->state = EQUALIZER_STATE_UNINITIALIZED; 614 if (pContext->state == EQUALIZER_STATE_UNINITIALIZED) { 617 if (pContext->state == EQUALIZER_STATE_INITIALIZED) { 632 if (pContext == NULL || pContext->state == EQUALIZER_STATE_UNINITIALIZED) { 697 if (pContext->state != EQUALIZER_STATE_INITIALIZED) { 700 pContext->state = EQUALIZER_STATE_ACTIVE; 708 if (pContext->state ! [all...] |
/frameworks/av/media/libmedia/ |
H A D | AudioSystem.cpp | 98 status_t AudioSystem::muteMicrophone(bool state) argument 102 return af->setMicMute(state); 105 status_t AudioSystem::isMicrophoneMuted(bool* state) argument 109 *state = af->getMicMute(); 592 audio_policy_dev_state_t state, 604 return aps->setDeviceConnectionState(device, state, address); 616 status_t AudioSystem::setPhoneState(audio_mode_t state) argument 618 if (uint32_t(state) >= AUDIO_MODE_CNT) return BAD_VALUE; 622 return aps->setPhoneState(state); 807 status_t AudioSystem::isStreamActive(audio_stream_type_t stream, bool* state, uint32_ argument 591 setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) argument 816 isStreamActiveRemotely(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument 826 isSourceActive(audio_source_t stream, bool* state) argument [all...] |
H A D | AudioTrackShared.cpp | 198 // FIXME we do not retry if requested < 10ms? needs documentation on this state machine 435 // FIXME we do not retry if requested < 10ms? needs documentation on this state machine 768 StaticAudioTrackState state; local 769 if (mObserver.poll(state)) { 771 size_t loopStart = state.mLoopStart; 772 size_t loopEnd = state.mLoopEnd; 773 if (state.mLoopCount == 0) { 782 } else if (state.mLoopCount >= -1) { 790 if (state.mLoopCount == -1) { 797 mFramesReady = int64_t(state [all...] |
H A D | IAudioFlinger.cpp | 381 virtual status_t setMicMute(bool state) argument 385 data.writeInt32(state); 1049 int state = data.readInt32(); local 1050 reply->writeInt32( setMicMute(state) );
|
H A D | IAudioPolicyService.cpp | 88 audio_policy_dev_state_t state, 94 data.writeInt32(static_cast <uint32_t>(state)); 112 virtual status_t setPhoneState(audio_mode_t state) argument 116 data.writeInt32(state); 728 audio_policy_dev_state_t state = local 732 state, 86 setDeviceConnectionState( audio_devices_t device, audio_policy_dev_state_t state, const char *device_address) argument
|
H A D | IMediaPlayer.cpp | 158 status_t isPlaying(bool* state) argument 163 *state = reply.readInt32(); 423 bool state; local 424 status_t ret = isPlaying(&state); 425 reply->writeInt32(state);
|
H A D | IOMX.cpp | 208 node_id node, OMX_STATETYPE* state) { 214 *state = static_cast<OMX_STATETYPE>(reply.readInt32()); 668 OMX_STATETYPE state = OMX_StateInvalid; local 670 status_t err = getState(node, &state); 671 reply->writeInt32(state); 207 getState( node_id node, OMX_STATETYPE* state) argument
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 286 // in bad state, reset the state upon service start. 968 status_t MediaPlayerService::Client::isPlaying(bool* state) argument 970 *state = false; 973 *state = p->isPlaying(); 974 ALOGV("[%d] isPlaying: %d", mConnId, *state);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayer.cpp | 145 // Use this if there's no state necessary to save in order to execute 1116 // before entering either the FLUSHED or the SHUTTING_DOWN_DECODER state. 1123 FlushStatus *state = audio ? &mFlushingAudio : &mFlushingVideo; local 1124 switch (*state) { 1127 *state = FLUSHED; 1133 *state = SHUTTING_DOWN_DECODER; 1147 // decoder flush completes only occur in a flushing state. 1148 LOG_ALWAYS_FATAL_IF(isDecoder, "decoder flush in invalid state %d", *state); 1396 "audio flushDecoder() is called in state [all...] |
/frameworks/av/media/libstagefright/ |
H A D | OMXClient.cpp | 72 node_id node, OMX_STATETYPE* state); 282 node_id node, OMX_STATETYPE* state) { 283 return getOMX(node)->getState(node, state); 281 getState( node_id node, OMX_STATETYPE* state) argument
|
H A D | OMXCodec.cpp | 1600 bool OMXCodec::isIntermediateState(State state) { argument 1601 return state == LOADED_TO_IDLE 1602 || state == IDLE_TO_EXECUTING 1603 || state == EXECUTING_TO_IDLE 1604 || state == IDLE_TO_LOADED 1605 || state == RECONFIGURING; 2212 ALOGW("Dropping OMX EVENT message - we're in ERROR state."); 2791 // releases the lock and ::init can notice the state change and 3359 // unblock the reader if we enter ERROR state. 3745 CODEC_LOGE("called start in the unexpected state 3841 OMX_STATETYPE state = OMX_StateInvalid; local [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | gc_pred.cpp | 98 state = pointer to a structure of type gc_predState 101 past_qua_en field in the structure pointed to by state is initialized 103 past_qua_en_MR122 field in the structure pointed to by state is 118 This function initializes the state memory used by gc_pred to zero. 133 int gc_pred_reset (gc_predState *state) 137 if (state == (gc_predState *) NULL){ 144 state->past_qua_en[i] = MIN_ENERGY; 145 state->past_qua_en_MR122[i] = MIN_ENERGY_MR122; 173 Word16 gc_pred_reset(gc_predState *state) argument 177 if (state [all...] |
H A D | q_plsf.cpp | 74 * Purpose : Allocates memory and initializes state variables 78 Word16 Q_plsf_init(Q_plsfState **state) argument 82 if (state == (Q_plsfState **) NULL) 87 *state = NULL; 92 /* fprintf(stderr, "Q_plsf_init: can not malloc state structure\n"); */ 97 *state = s; 106 * Purpose : Resets state memory 110 Word16 Q_plsf_reset(Q_plsfState *state) argument 114 if (state == (Q_plsfState *) NULL) 121 state 134 Q_plsf_exit(Q_plsfState **state) argument [all...] |
H A D | vad1.cpp | 1254 vadState1 *st, /* i/o : VAD state struct */ 1263 /* adapt speed on own state */ 1267 { /* low state */ 1271 { /* high state */ 1372 vadState1 *st, /* i/o : VAD state struct */ 1578 state -- double pointer to type vadState1 -- pointer to memory to 1582 state -- points to initalized area in memory. 1596 Allocates state memory and initializes state memory 1635 Word16 vad1_init(vadState1 **state) argument 1721 vad1_reset(vadState1 *state) argument 1846 vad1_exit(vadState1 **state) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | agc.cpp | 508 state = pointer to a structure of type agcState 511 Structure pointed to by state is initialized to zeros 526 Reset of agc (i.e. set state memory to 1.0). 541 int agc_reset (agcState *state) 543 if (state == (agcState *) NULL) 549 state->past_gain = 4096; // initial value of past_gain = 1.0 577 Word16 agc_reset(agcState *state) argument 579 if (state == (agcState *) NULL) 585 state->past_gain = 4096; /* initial value of past_gain = 1.0 */ 599 st = pointer to agc state [all...] |
H A D | bgnscd.cpp | 91 state = points to memory of type Bgn_scdState. 94 The memory of type Bgn_scdState pointed to by state is set to all 110 Resets state memory. 125 Word16 Bgn_scd_reset (Bgn_scdState *state) 127 if (state == (Bgn_scdState *) NULL){ 133 Set_zero (state->frameEnergyHist, L_ENERGYHIST); 136 state->bgHangover = 0; 164 Word16 Bgn_scd_reset(Bgn_scdState *state) argument 166 if (state == (Bgn_scdState *) NULL) 173 memset(state [all...] |
H A D | c_g_aver.cpp | 121 state = pointer to a structure of type Cb_gain_averageState 124 Structure pointed to by state is initialized to zeros 139 Resets state memory 154 Word16 Cb_gain_average_reset (Cb_gain_averageState *state) 156 if (state == (Cb_gain_averageState *) NULL){ 162 Set_zero (state->cbGainHistory, L_CBGAINHIST); 165 state->hangVar = 0; 166 state->hangCount= 0; 194 Word16 Cb_gain_average_reset(Cb_gain_averageState *state) argument 196 if (state [all...] |
H A D | d_plsf.cpp | 114 state = pointer to structure of type D_plsf_reset 117 fields of the structure pointed to by state is initialized to zero 131 Resets state memory 146 int D_plsf_reset (D_plsfState *state) 150 if (state == (D_plsfState *) NULL){ 156 state->past_r_q[i] = 0; // Past quantized prediction error 160 Copy(mean_lsf, &state->past_lsf_q[0], M); 187 Word16 D_plsf_reset(D_plsfState *state) argument 191 if (state == (D_plsfState *) NULL) 199 state [all...] |