/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 312 CodecState *state = local 316 state->mNumFramesWritten = 0; 317 state->mCodec = MediaCodec::CreateByType( 320 CHECK(state->mCodec != NULL); 322 err = state->mCodec->configure( 333 state->mCSD.push_back(buffer); 340 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 342 status_t err = state->mCodec->start(); 345 err = state->mCodec->getInputBuffers(&state 401 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 420 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 475 CodecState *state = &mStateByTrackIndex.editValueFor(trackIndex); local 516 CodecState *state = &mStateByTrackIndex.editValueAt(i); local 568 onOutputFormatChanged( size_t trackIndex __unused, CodecState *state) argument 599 renderAudio( CodecState *state, BufferInfo *info, const sp<ABuffer> &buffer) argument [all...] |
H A D | codec.cpp | 116 CodecState *state = local 119 state->mNumBytesDecoded = 0; 120 state->mNumBuffersDecoded = 0; 121 state->mIsAudio = isAudio; 123 state->mCodec = MediaCodec::CreateByType( 126 CHECK(state->mCodec != NULL); 128 err = state->mCodec->configure( 135 state->mSignalledInputEOS = false; 136 state->mSawOutputEOS = false; 145 CodecState *state local 169 CodecState *state = &stateByTrack.editValueFor(trackIndex); local 204 CodecState *state = &stateByTrack.editValueAt(i); local 233 CodecState *state = &stateByTrack.editValueAt(i); local 245 CodecState *state = &stateByTrack.editValueAt(i); local 311 CodecState *state = &stateByTrack.editValueAt(i); local [all...] |
H A D | mediafilter.cpp | 348 CodecState *state = local 351 vidState = state; 353 state->mNumBuffersDecoded = 0; 355 state->mCodec = MediaCodec::CreateByType( 358 CHECK(state->mCodec != NULL); 360 err = state->mCodec->configure( 365 state->mSignalledInputEOS = false; 366 state->mSawOutputEOS = false; 472 CodecState *state = &stateByTrack.editValueAt(i); local 474 sp<MediaCodec> codec = state 527 CodecState *state = &stateByTrack.editValueFor(trackIndex); local 559 CodecState *state = &stateByTrack.editValueAt(i); local 585 CodecState *state = &stateByTrack.editValueAt(i); local 647 CodecState *state = &stateByTrack.editValueAt(i); local [all...] |
/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:__anon110
|
/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 102 uint32_t state; // current state (enum preproc_session_state) member in struct:preproc_session_s 688 LOG_ALWAYS_FATAL("Bad state transition from %d to %d", from, to); 690 int Effect_SetState(preproc_effect_t *effect, uint32_t state) argument 693 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::__anon248::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 | 109 status_t AudioSystem::muteMicrophone(bool state) argument 113 return af->setMicMute(state); 116 status_t AudioSystem::isMicrophoneMuted(bool* state) argument 120 *state = af->getMicMute(); 726 audio_policy_dev_state_t state, 742 return aps->setDeviceConnectionState(device, state, address, name); 754 status_t AudioSystem::setPhoneState(audio_mode_t state) argument 756 if (uint32_t(state) >= AUDIO_MODE_CNT) return BAD_VALUE; 760 return aps->setPhoneState(state); 952 status_t AudioSystem::isStreamActive(audio_stream_type_t stream, bool* state, uint32_ argument 725 setDeviceConnectionState(audio_devices_t device, audio_policy_dev_state_t state, const char *device_address, const char *device_name) argument 961 isStreamActiveRemotely(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument 971 isSourceActive(audio_source_t stream, bool* state) argument 1255 onDynamicPolicyMixStateUpdate( String8 regId, int32_t state) argument [all...] |
H A D | AudioTrackShared.cpp | 251 // FIXME we do not retry if requested < 10ms? needs documentation on this state machine 473 // FIXME we do not retry if requested < 10ms? needs documentation on this state machine 936 StaticAudioTrackState state; local 937 if (mObserver.poll(state)) { 940 const int32_t diffSeq = (int32_t) state.mLoopSequence - (int32_t) state.mPositionSequence; 943 result = updateStateWithLoop(&trystate, state) == OK && 944 updateStateWithPosition(&trystate, state) == OK; 946 result = updateStateWithPosition(&trystate, state) == OK && 947 updateStateWithLoop(&trystate, state) [all...] |
H A D | IAudioFlinger.cpp | 395 virtual status_t setMicMute(bool state) argument 399 data.writeInt32(state); 1091 int state = data.readInt32(); local 1092 reply->writeInt32( setMicMute(state) );
|
H A D | IAudioPolicyService.cpp | 93 audio_policy_dev_state_t state, 100 data.writeInt32(static_cast <uint32_t>(state)); 119 virtual status_t setPhoneState(audio_mode_t state) argument 123 data.writeInt32(state); 820 audio_policy_dev_state_t state = local 825 state, 91 setDeviceConnectionState( audio_devices_t device, audio_policy_dev_state_t state, const char *device_address, const char *device_name) argument
|
H A D | IAudioPolicyServiceClient.cpp | 74 void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state) argument 79 data.writeInt32(state); 119 int32_t state = data.readInt32(); local 120 onDynamicPolicyMixStateUpdate(regId, state);
|
H A D | IMediaPlayer.cpp | 175 status_t isPlaying(bool* state) argument 180 *state = reply.readInt32(); 516 bool state; local 517 status_t ret = isPlaying(&state); 518 reply->writeInt32(state);
|
H A D | IOMX.cpp | 220 node_id node, OMX_STATETYPE* state) { 226 *state = static_cast<OMX_STATETYPE>(reply.readInt32()); 830 OMX_STATETYPE state = OMX_StateInvalid; local 832 status_t err = getState(node, &state); 833 reply->writeInt32(state); 219 getState( node_id node, OMX_STATETYPE* state) argument
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 287 // in bad state, reset the state upon service start. 998 status_t MediaPlayerService::Client::isPlaying(bool* state) argument 1000 *state = false; 1003 *state = p->isPlaying(); 1004 ALOGV("[%d] isPlaying: %d", mConnId, *state); 1526 } else if (res == WOULD_BLOCK) { // case 2: transitory state on start of a new track
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayer.cpp | 148 // Use this if there's no state necessary to save in order to execute 659 // be in preparing state and it could take long time. 1415 // before entering either the FLUSHED or the SHUTTING_DOWN_DECODER state. 1422 FlushStatus *state = audio ? &mFlushingAudio : &mFlushingVideo; local 1423 switch (*state) { 1426 *state = FLUSHED; 1432 *state = SHUTTING_DOWN_DECODER; 1447 // decoder flush completes only occur in a flushing state. 1448 LOG_ALWAYS_FATAL_IF(isDecoder, "decoder flush in invalid state %d", *state); [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MidiExtractor.cpp | 227 EAS_STATE state; local 228 EAS_State(mEasData, mEasHandle, &state); 229 if ((state == EAS_STATE_STOPPED) || (state == EAS_STATE_ERROR)) {
|
H A D | OMXClient.cpp | 83 node_id node, OMX_STATETYPE* state); 347 node_id node, OMX_STATETYPE* state) { 348 return getOMX(node)->getState(node, state); 346 getState( node_id node, OMX_STATETYPE* state) argument
|
H A D | ProcessInfo.cpp | 36 int32_t state; local 40 status_t err = service->getProcessStatesAndOomScoresFromPids(length, &pid, &state, &score); 45 ALOGV("pid %d state %d score %d", pid, state, score);
|
/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...] |