/frameworks/av/media/img_utils/include/img_utils/ |
H A D | EndianUtils.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 44 T convertToBigEndian(T in); 50 T convertToLittleEndian(T in); 58 * Wrap the given Output. Calling write methods will result in 96 * Count elements in the buffer will be written with the endianness set for this 98 * be skipped in the buffer before writing. 167 inline uint8_t convertToBigEndian(uint8_t in) { argument 168 return in; 172 inline int8_t convertToBigEndian(int8_t in) { argument 177 convertToBigEndian(uint16_t in) argument 182 convertToBigEndian(int16_t in) argument 187 convertToBigEndian(uint32_t in) argument 192 convertToBigEndian(int32_t in) argument 197 convertToBigEndian(uint64_t in) argument 202 convertToBigEndian(int64_t in) argument 207 convertToLittleEndian(uint8_t in) argument 212 convertToLittleEndian(int8_t in) argument 217 convertToLittleEndian(uint16_t in) argument 222 convertToLittleEndian(int16_t in) argument 227 convertToLittleEndian(uint32_t in) argument 232 convertToLittleEndian(int32_t in) argument 237 convertToLittleEndian(uint64_t in) argument 242 convertToLittleEndian(int64_t in) argument [all...] |
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
H A D | EffectBundle.cpp | 6 * you may not use this file except in compliance with the License. 11 * Unless required by applicable law or agreed to in writing, software 39 "null pointer returned by %s in %s\n\n\n\n", callingFunc, calledFunc);\ 43 "bad alignment returned by %s in %s\n\n\n\n", callingFunc, calledFunc);\ 47 "bad number of samples returned by %s in %s\n\n\n\n", callingFunc, calledFunc);\ 51 "out of range returned by %s in %s\n", callingFunc, calledFunc);\ 208 // If this is the first create in this session 210 ALOGV("\tEffectCreate - This is the first effect in current sessionId %d sessionNo %d", 255 /* Saved strength is used to return the exact strength that was used in the set to the get 396 // Disable effect, in thi 2879 LVM_INT16 *in = (LVM_INT16 *)inBuffer->raw; local [all...] |
/frameworks/av/media/libeffects/testlibs/ |
H A D | AudioBiquadFilter.cpp | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 65 void AudioBiquadFilter::process(const audio_sample_t in[], audio_sample_t out[], argument 67 (this->*mCurProcessFunc)(in, out, frameCount); 139 void AudioBiquadFilter::process_bypass(const audio_sample_t * in, argument 142 // The common case is in-place processing, because this is what the EQ does. 143 if (CC_UNLIKELY(in != out)) { 144 memcpy(out, in, frameCount * mNumChannels * sizeof(audio_sample_t)); 148 void AudioBiquadFilter::process_normal_mono(const audio_sample_t * in, argument 162 audio_sample_t x0 = *(in 182 process_transition_normal_mono(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument 191 process_transition_bypass_mono(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument 200 process_normal_multi(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument 240 process_transition_normal_multi(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument 249 process_transition_bypass_multi(const audio_sample_t * in, audio_sample_t * out, int frameCount) argument [all...] |
H A D | AudioPeakingFilter.h | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 29 // in the output, even when changing parameters abruptly. 43 // sampleRate The input/output sample rate, in Hz. 49 // sampleRate The input/output sample rate, in Hz. 63 // This value will be remembered even if the filter is in disabled() state. 64 // millibel Gain value in millibel (1/100 of decibel). 67 // Gets the gain, in millibel, as set. 71 // This value will be remembered even if the filter is in disabled() state. 72 // cents Bandwidth value in cent 104 process(const audio_sample_t in[], audio_sample_t out[], int frameCount) argument [all...] |
H A D | AudioShelvingFilter.h | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 29 // in the output, even when changing parameters abruptly. 50 // sampleRate The input/output sample rate, in Hz. 56 // sampleRate The input/output sample rate, in Hz. 69 // This value will be remembered even if the filter is in disabled() state. 70 // millibel Gain value in millibel (1/100 of decibel). 73 // Gets the gain, in millibel, as set. 78 // This value will be remembered even if the filter is in disabled() state. 79 // millihertz Frequency value in mH 98 process(const audio_sample_t in[], audio_sample_t out[], int frameCount) argument [all...] |
H A D | EffectsMath.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 24 // for integers in the range 0 to 63 (i = ai5*2^5 + ai4*2^4 + ai3*2^3 + ai2*2^2 + ai1*2^1 + ai0*2^0) 111 int32_t Effects_Sqrt(int32_t in) argument 119 if (in == 0) return 0; 121 if (in >= 0x10000000) 124 in -= 0x10000000; 127 j = 32 - __builtin_clz(in); 134 if (in >= tmp) 137 in [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | TestPlayerStub.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 24 class MediaPlayerBase; // in media/MediaPlayerInterface.h 36 // TestPlayerStub::setDataSource loads the library in the test url. 2 46 // typical usage in a java test: 98 virtual status_t invoke(const android::Parcel& in, android::Parcel *out) { argument 99 return mPlayer->invoke(in, out);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayer.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 148 // Use this if there's no state necessary to save in order to execute 264 // The correct flags will be updated in Source::kWhatFlagsChanged 642 msg->post(1000000ll); // poll again in a second. 659 // be in preparing state and it could take long time. 678 // If the video decoder is not set (perhaps audio only in this case) 1409 // Audio decoder is no longer needed if it's in shut/shutting down status. 1447 // decoder flush completes only occur in a flushing state. 1448 LOG_ALWAYS_FATAL_IF(isDecoder, "decoder flush in invali 1749 notifyListener(int msg, int ext1, int ext2, const Parcel *in) argument 2357 Parcel in; local 2372 Parcel in; local [all...] |
H A D | NuPlayerDriver.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 711 int msg, int ext1, int ext2, const Parcel *in) { 713 notifyListener_l(msg, ext1, ext2, in); 717 int msg, int ext1, int ext2, const Parcel *in) { 737 // The renderer has stopped the sink at the end in order to play out 762 sendEvent(msg, ext1, ext2, in); 793 // in response, NuPlayerDriver has the right state 710 notifyListener( int msg, int ext1, int ext2, const Parcel *in) argument 716 notifyListener_l( int msg, int ext1, int ext2, const Parcel *in) argument
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | block_switch.c | 5 ** you may not use this file except in compliance with the License. 10 ** Unless required by applicable law or agreed to in writing, software 34 SrchMaxWithIndex(const Word32 *in, Word16 *index, Word16 n); 89 /* Attack in Window 0 */ {1, 3, 3, 1}, 90 /* Attack in Window 1 */ {1, 1, 3, 3}, 91 /* Attack in Window 2 */ {2, 1, 3, 2}, 92 /* Attack in Window 3 */ {3, 1, 3, 1}, 93 /* Attack in Window 4 */ {3, 1, 1, 3}, 94 /* Attack in Window 5 */ {3, 2, 1, 2}, 95 /* Attack in Windo 246 SrchMaxWithIndex(const Word32 in[], Word16 *index, Word16 n) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | vad1.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 50 round function in C standard library. 104 in -- array of type Word16 -- input signal 167 Word16 in[], /* i : input signal */ 189 temp1 = shr(in[4*i+0], 2, pOverflow); 196 temp2 = shr(in[4*i+1], 2, pOverflow); 207 temp2 = shr(in[4*i+2], 2, pOverflow); 214 temp2 = shr(in[4*i+3], 2, pOverflow); 465 Purpose : Calculate signal level in 166 first_filter_stage( Word16 in[], Word16 out[], Word16 data[], Flag *pOverflow ) argument 613 filter_bank( vadState1 *st, Word16 in[], Word16 level[], Flag *pOverflow ) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | agc.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 91 in = input signal (Word16) 126 Word16 in[], // i : input signal (length l_trm) 133 temp = shr (in[0], 2); 138 temp = shr (in[i], 2); 169 Word16 in[], /* i : input signal (length l_trm) */ 181 temp = in[i] >> 2; 196 in = input signal (Word16) 229 CALL energy_old ( in 168 energy_old( Word16 in[], Word16 l_trm, Flag *pOverflow ) argument 258 energy_old_Wrapper(Word16 in[], Word16 l_trm, Flag *pOverflow) argument 370 energy_new( Word16 in[], Word16 l_trm, Flag *pOverflow ) argument 478 energy_new_Wrapper(Word16 in[], Word16 l_trm, Flag *pOverflow) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | wb_vad.c | 5 ** you may not use this file except in compliance with the License. 10 ** Unless required by applicable law or agreed to in writing, software 37 * ilog2(Word32 in) = -1024*log10(in * 2^-31)/log10(2), where in = [1, 2^31-1] 43 * When input is in the range of [1,2^16], max error is 0.0380%. 128 * Purpose : Calculate signal level in a sub-band. Level is calculated 174 * the signal in each band 180 Word16 in[], /* i : input frame */ 190 tmp_buf[i] = in[ 178 filter_bank( VadVars * st, Word16 in[], Word16 level[] ) argument [all...] |
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | motion_comp.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 268 void eHorzInterp1MC(uint8 *in, int inpitch, uint8 *out, int outpitch, argument 281 p_ref = in; 286 dx = ((dx >> 1) ? -3 : -4); /* use in 3/4 pel */ 558 void eHorzInterp2MC(int *in, int inpitch, uint8 *out, int outpitch, argument 569 p_ref = in; 574 dx = ((dx >> 1) ? -3 : -4); /* use in 3/4 pel */ 717 void eHorzInterp3MC(uint8 *in, int inpitch, int *out, int outpitch, argument 727 p_ref = in; 781 eVertInterp1MC(uint8 *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight, int dy) argument 1083 eVertInterp2MC(uint8 *in, int inpitch, int *out, int outpitch, int blkwidth, int blkheight) argument 1148 eVertInterp3MC(int *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight, int dy) argument 1649 eFullPelMC(uint8 *in, int inpitch, uint8 *out, int outpitch, int blkwidth, int blkheight) argument [all...] |
/frameworks/av/media/libstagefright/codecs/g711/dec/ |
H A D | SoftG711.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 285 int16_t *out, const uint8_t *in, size_t inSize) { 288 int32_t x = *in++; 312 int16_t *out, const uint8_t *in, size_t inSize) { 315 int32_t x = *in++; 284 DecodeALaw( int16_t *out, const uint8_t *in, size_t inSize) argument 311 DecodeMLaw( int16_t *out, const uint8_t *in, size_t inSize) argument
|
/frameworks/av/media/libstagefright/codecs/gsm/dec/ |
H A D | SoftGSM.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 266 int16_t *out, uint8_t *in, size_t inSize) { 270 gsm_decode(handle, in, out); 271 in += 33; 275 gsm_decode(handle, in, out); 276 in += 32; 265 DecodeGSM(gsm handle, int16_t *out, uint8_t *in, size_t inSize) argument
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
H A D | pvmp3_imdct_synth.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 38 int32 in[], Pointer to spec values of current channel 46 int32 in[], 204 ; Declare functions defined elsewhere and referenced in this module 209 ; Declare variables used in this module but defined elsewhere 216 void pvmp3_imdct_synth(int32 in[SUBBANDS_NUMBER*FILTERBANK_BANDS], argument 234 * in case of mx_poly_band> 0, do 243 int32 * out = in + (band * FILTERBANK_BANDS); 334 int32 * out = in [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.cpp | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 153 ALOGE_IF(rc, "%s couldn't open audio hw device in %s.%s (%s)", __func__, 202 // in bad state, reset the state upon service start. 502 // If pid is already in the mClients wp<> map, then use that entry 803 // Set master volume in the HALs which support it. 815 // Now set the master volume in each playback thread. Playback threads 925 // Set master mute in the HALs which support it. 937 // Now set the master mute in each playback thread. Playback threads 1151 // hold a strong ref on thread in cas 2291 AudioStreamIn *in = thread->clearInput(); local [all...] |
H A D | AudioFlinger.h | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 100 // IAudioFlinger interface, in binder opcode order 332 // call in any IAudioFlinger method that accesses mPrimaryHardwareDev 348 // Returns true if channel mask is permitted for the PCM sink in the MixerThread 377 // Set kEnableExtendedPrecision to true to use extended precision in MixerThread 380 // Returns true if format is permitted for the PCM sink in the MixerThread 498 virtual void signal(); // signal playback thread for a change in control block 589 // effect chain and same instances in the effect library. 590 // return ALREADY_EXISTS if a chain with the same session already exists in 615 AudioStreamIn(AudioHwDevice *dev, audio_stream_in_t *in) argument [all...] |
H A D | AudioMixer.cpp | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 83 // Set to default copy buffer size in frames for input processing. 99 // The value of 1 << x is undefined in C when x >= 32. 212 t->in = NULL; 487 * even if there is a nonzero floating point increment (in that case, the volume 493 * @param newVolume set volume target in floating point [0.0, 1.0]. 915 "in process__validate() but nothing's invalid"); 1081 // ramp gain - resample to temp buffer and scale/mix in 2nd step 1190 const int16_t *in local 1282 const int16_t *in = static_cast<int16_t const *>(t->in); local 1609 const int16_t *in = b.i16; local 1692 volumeRampMulti(uint32_t channels, TO* out, size_t frameCount, const TI* in, TA* aux, TV *vol, const TV *volinc, TAV *vola, TAV volainc) argument 1736 volumeMulti(uint32_t channels, TO* out, size_t frameCount, const TI* in, TA* aux, const TV *vol, TAV vola) argument 1776 volumeMix(TO *out, size_t outFrames, const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t) argument 1831 const TI *in = reinterpret_cast<TI*>(b.raw); local 1906 const TI *in = static_cast<const TI *>(t->in); local 1921 convertMixerFormat(void *out, audio_format_t mixerOutFormat, void *in, audio_format_t mixerInFormat, size_t sampleCount) argument [all...] |
H A D | AudioMixer.h | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 35 // FIXME This is actually unity gain, which might not be max in future, expressed in U.12 90 // parameter 'value' is the new sample rate in Hz. 209 const void* in; // current location in buffer member in struct:android::AudioMixer::track_t 341 * in AudioMixerOps.h). The template parameters are as follows: 353 const TI *in, TA *aux, bool ramp, AudioMixer::track_t *t); 368 void *in, audio_format_ [all...] |
H A D | AudioMixerOps.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 44 * There are 27 variants, of which 14 are actually defined in an 137 * are not needed in execution and should be removed from the final build by 221 /* MIXTYPE is used to determine how the samples in the input frame 276 const TI* in, TA* aux, TV *vol, const TV *volinc, TAV *vola, TAV volainc) 287 *out++ += MixMulAux<TO, TI, TV, TA>(*in++, vol[i], &auxaccum); 293 *out++ += MixMulAux<TO, TI, TV, TA>(*in, vol[i], &auxaccum); 296 in++; 300 *out++ = MixMulAux<TO, TI, TV, TA>(*in 275 volumeRampMulti(TO* out, size_t frameCount, const TI* in, TA* aux, TV *vol, const TV *volinc, TAV *vola, TAV volainc) argument 368 volumeMulti(TO* out, size_t frameCount, const TI* in, TA* aux, const TV *vol, TAV vola) argument [all...] |
H A D | AudioResampler.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 48 // number of bits used in interpolation multiply - 15 bits avoids overflow 60 void AsmMono16Loop(int16_t *in, int32_t* maxOutPt, int32_t maxInIdx, 63 void AsmStereo16Loop(int16_t *in, int32_t* maxOutPt, int32_t maxInIdx, 370 int16_t *in = mBuffer.i16; 375 out[outputIndex++] += vl * Interp(mX0L, in[0], phaseFraction); 376 out[outputIndex++] += vr * Interp(mX0R, in[1], phaseFraction); 393 AsmStereo16Loop(in, maxOutPt, maxInIdx, outputIndex, out, inputIndex, vl, vr, 399 out[outputIndex++] += vl * Interp(in[inputInde 465 int16_t *in = mBuffer.i16; member in namespace:android [all...] |
H A D | AudioResamplerCubic.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 75 int16_t *in = mBuffer.i16; local 84 // out[outputIndex++] += vr * in[inputIndex*2]; 103 in = mBuffer.i16; 108 advance(&left, in[inputIndex*2]); 109 advance(&right, in[inputIndex*2+1]); 142 int16_t *in = mBuffer.i16; local 172 in = mBuffer.i16; 176 advance(&left, in[inputInde [all...] |
H A D | AudioResamplerCubic.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 37 // number of bits used in interpolation multiply - 14 bits avoids overflow 53 static inline void advance(state* p, int16_t in) { argument 57 p->y3 = in;
|