/frameworks/av/include/media/stagefright/foundation/ |
H A D | AUtils.h | 60 inline static const T &max(const T &a, const T &b) { function
|
/frameworks/av/media/libaudioclient/ |
H A D | AudioTrack.cpp | 49 static inline const T &max(const T &x, const T &y) { function in namespace:android 88 return kFixPitch ? speed / max(pitch, AUDIO_TIMESTRETCH_PITCH_MIN_DELTA) : speed; 452 mMaxRequiredSpeed = min(max(maxRequiredSpeed, 1.0f), AUDIO_TIMESTRETCH_SPEED_MAX); 488 max((uint32_t) -notificationFrames, minNotificationsPerBuffer)); 925 ALOGV("setPlaybackRate(%f, %f) failed. Resample rate exceeds max accepted value", 1405 max(mMaxRequiredSpeed, mPlaybackRate.mSpeed); 2096 ns = max((nsecs_t)0, ns - (timeNow - timeAfterCallbacks)); 2153 ns = max((nsecs_t)0, ns - (timeNow - timeAfterCallbacks));
|
H A D | PlayerBase.cpp | 20 #define max(a, b) ((a) > (b) ? (a) : (b)) macro 139 pan = min(max(-1.0f, pan), 1.0f);
|
/frameworks/av/media/libaudioprocessing/ |
H A D | AudioMixer.cpp | 69 T max(const T& x, const T& y) { function 558 const float maxv = max(newVolume, *pPrevVolume); // could be inf, cannot be nan, subnormal
|
H A D | AudioResamplerDyn.cpp | 218 template<typename T> T max(T a, T b) {return a > b ? a : b;} function in namespace:android 233 fcr = max(0.5*tbwCheat - tbw/2, tbw/2); 235 fcr = max(0.5*tbwCheat*outSampleRate/inSampleRate - tbw/2, tbw/2);
|
H A D | RecordBufferConverter.cpp | 33 static inline T max(const T& a, const T& b) function 189 mBufFrameSize = max(mSrcChannelCount, (uint32_t)FCC_2)
|
/frameworks/av/media/libmedia/ |
H A D | IMediaRecorder.cpp | 256 status_t getMaxAmplitude(int* max) argument 262 *max = reply.readInt32(); 408 int max = 0; local 409 status_t ret = getMaxAmplitude(&max); 410 reply->writeInt32(max);
|
H A D | mediarecorder.cpp | 449 // of the only currently supported parameters, "max-duration" and 450 // "max-filesize" are _not_ fatal. 495 status_t MediaRecorder::getMaxAmplitude(int* max) argument 507 status_t ret = mMediaRecorder->getMaxAmplitude(max);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaRecorderClient.cpp | 230 status_t MediaRecorderClient::getMaxAmplitude(int* max) argument 238 return mRecorder->getMaxAmplitude(max);
|
H A D | StagefrightRecorder.cpp | 743 if (key == "max-duration") { 748 } else if (key == "max-filesize") { 1112 format->setInt32("max-input-size", maxInputSize); 1309 "enc.vid.fps.max", mVideoEncoder); 1326 "enc.vid.bps.max", mVideoEncoder); 1343 "enc.vid.width.max", mVideoEncoder); 1472 "enc.aud.bps.max", mAudioEncoder); 1494 "enc.aud.hz.max", mAudioEncoder); 1516 "enc.aud.ch.max", mAudioEncoder); 1529 "enc.vid.height.max", mVideoEncode 2083 getMaxAmplitude(int *max) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MediaCodecList.cpp | 946 || !strcmp(attrs[i], "max") 976 AString min, max; local 977 if (msg->findString("min", &min) && msg->findString("max", &max)) { 979 min.append(max); 981 return limitError(name, "has 'min' and 'max' as well as 'range' or " 985 } else if (msg->contains("min") || msg->contains("max")) { 986 return limitError(name, "has only 'min' or 'max' attribute"); 987 } else if (msg->findString("value", &max)) { 988 min = max; 1034 AString max, value, ranges; local [all...] |
H A D | MediaCodecListOverrides.cpp | 239 (caps->getDetails()->contains("max-supported-instances") || 240 caps->getDetails()->contains("max-concurrent-instances"))) { 244 size_t max = doProfileCodecs(info->isEncoder(), name, mimes[i], caps); local 245 if (max > 0) { 248 sprintf(maxStr, "%zu", max); 249 settings.add("max-supported-instances", maxStr); 262 if (max <= 1) { 300 // of setting in this case, which is "max-supported-instances".
|
/frameworks/av/media/libstagefright/codecs/aacdec/ |
H A D | SoftAAC2.cpp | 388 int max; local 389 if (aacPresParams->nMaxOutputChannels >= 8) { max = 8; } 390 else if (aacPresParams->nMaxOutputChannels >= 6) { max = 6; } 391 else if (aacPresParams->nMaxOutputChannels >= 2) { max = 2; } 394 max = aacPresParams->nMaxOutputChannels; 396 ALOGV("set nMaxOutputChannels=%d", max); 397 aacDecoder_SetParam(mAACDecoder, AAC_PCM_MAX_OUTPUT_CHANNELS, max);
|
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/ |
H A D | typedefs.h | 95 #ifndef max 96 #define max(a,b) ( (a) > (b) ? (a) : (b)) macro
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
H A D | block_switch.c | 176 enMax = max(enMax, enM1); 243 * returns: the max value 248 Word32 max; local 252 max = 0; 257 if (in[i+1] > max) { 258 max = in[i+1]; 264 return(max);
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
H A D | gmed_n.cpp | 131 Word16 max; 143 max = -32767; 146 if (sub (tmp2[j], max) >= 0) 148 max = tmp2[j]; 189 Word16 max; local 201 max = -32767; 204 if (*(tmp2 + j) >= max) 206 max = *(tmp2 + j);
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | cor_h_x.cpp | 189 Word32 s, y32[L_CODE], max, tot; 197 max = 0; 207 if (L_sub (s, max) > (Word32) 0L) 208 max = s; 210 tot = L_add (tot, L_shr (max, 1)); 258 Word32 max; local 269 max = 0; 296 if (s > max) 298 max = s; 302 tot += (max >> [all...] |
H A D | cor_h_x2.cpp | 173 Word32 s, y32[L_CODE], max, tot; 181 max = 0; 191 if (L_sub (s, max) > (Word32) 0L) 192 max = s; 194 tot = L_add (tot, L_shr (max, 1)); 244 Word32 max; local 252 max = 0; 266 if (s > max) 268 max = s; 271 tot = (tot + (max >> [all...] |
H A D | hp_max.cpp | 88 cor_hp_max = pointer to max high-pass filtered norm. correlation (Word16) 92 cor_hp_max contains max high-pass filtered norm. correlation (Word16) 134 Word16 *cor_hp_max) // o : max high-pass filtered norm. correlation 138 Word32 max, t0, t1; 142 max = MIN_32; 154 if (L_sub (t0, max) >= 0) 156 max = t0; 181 // max/t0 182 shift1 = sub(norm_l(max), 1); 183 max16 = extract_h(L_shl(max, shift 249 Word32 max, t0, t1; local [all...] |
H A D | p_ol_wgh.cpp | 422 rmax = pointer to max(<s[i]*s[j]>), (Word32) 430 rmax contains the newly calculated max(<s[i]*s[j]>) 435 p_max = lag of the max correlation found (Word16) 482 Word32 max, t0; 491 max = MIN_32; 509 if (L_sub (t0, max) >= 0) 511 max = t0; 530 vadSt->L_Rmax = L_add(vadSt->L_Rmax, t0); // Save max correlation 531 vadSt->L_R0 = L_add(vadSt->L_R0, t1); // Save max energy 590 Word32 max; local [all...] |
H A D | pitch_fr.cpp | 504 Word16 max; 510 max = Interpol_3or6 (&corr[*lag], *frac, flag3); // function result 514 if (sub (corr_int, max) > 0) { 515 max = corr_int; 577 Word16 max; local 583 max = Interpol_3or6(&corr[*lag], *frac, flag3, pOverflow); 589 if (corr_int > max) 591 max = corr_int; 1127 Word16 max, lag, frac; 1223 max 1384 Word16 max; local [all...] |
H A D | pitch_ol.cpp | 100 rmax = pointer to max(<s[i]*s[j]>), (Word32) 107 rmax contains the newly calculated max(<s[i]*s[j]>) 111 p_max = lag of the max correlation found (Word16) 142 p_max = lag of the max correlation found (Word16) 184 Word32 *rmax, // o : max(<s[i]*s[j]>) 205 Word32 max, t0; 209 max = MIN_32; 214 if (L_sub (corr[-i], max) >= 0) 216 max = corr[-i]; 234 *rmax = max; 325 Word32 max; local [all...] |
H A D | set_sign.cpp | 58 of the max correlation. Updated copyright year. 368 Word16 val, cor, k_cn, k_dn, max, max_of_all; 418 max = -1; 423 val = sub (cor, max); 427 max = cor; 433 val = sub (max, max_of_all); 437 max_of_all = max; 502 Word16 max; local 567 max = -1; 572 if (cor > max) [all...] |
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | pvamrwbdecoder.cpp | 328 int32 max; local 944 max = 1; 955 max |= tmp ^(tmp >> 15); /* |= tmp ^sign(tmp) */ 959 /* tmp = scaling possible according to max value of excitation */ 960 tmp = add_int16(norm_s(max), Q_new) - 1;
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | p_med_ol.c | 42 Word32 i, j, max, R0, R1, R2; local 55 max = MIN_32; 85 if(R0 >= max) 87 max = R0;
|