Home
last modified time | relevance | path

Searched refs:ix (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/media/java/android/media/
DUtils.java60 int ix = 0; in intersectSortedDistinctRanges() local
63 while (ix < one.length && in intersectSortedDistinctRanges()
64 one[ix].getUpper().compareTo(range.getLower()) < 0) { in intersectSortedDistinctRanges()
65 ++ix; in intersectSortedDistinctRanges()
67 while (ix < one.length && in intersectSortedDistinctRanges()
68 one[ix].getUpper().compareTo(range.getUpper()) < 0) { in intersectSortedDistinctRanges()
69 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges()
70 ++ix; in intersectSortedDistinctRanges()
72 if (ix == one.length) { in intersectSortedDistinctRanges()
75 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) { in intersectSortedDistinctRanges()
[all …]
DSubtitleTrack.java169 private void removeRunsByEndTimeIndex(int ix) { in removeRunsByEndTimeIndex() argument
170 Run run = mRunsByEndTime.valueAt(ix); in removeRunsByEndTimeIndex()
185 mRunsByEndTime.removeAt(ix); in removeRunsByEndTimeIndex()
192 for(int ix = size - 1; ix >= 0; ix--) { in finalize()
193 removeRunsByEndTimeIndex(ix); in finalize()
631 int ix = runsByEndTime.indexOfKey(mStoredEndTimeMs);
632 if (ix >= 0) {
634 assert(this == runsByEndTime.valueAt(ix));
636 runsByEndTime.removeAt(ix);
638 runsByEndTime.setValueAt(ix, mNextRunAtEndTimeMs);
/frameworks/av/media/libmedia/
DMediaCodecInfo.cpp109 for (size_t ix = 0; ix < mQuirks.size(); ix++) { in hasQuirk() local
110 if (mQuirks.itemAt(ix).equalsIgnoreCase(name)) { in hasQuirk()
119 for (size_t ix = 0; ix < mCaps.size(); ix++) { in getSupportedMimes() local
120 mimes->push_back(mCaps.keyAt(ix)); in getSupportedMimes()
126 ssize_t ix = getCapabilityIndex(mime); in getCapabilitiesFor() local
127 if (ix >= 0) { in getCapabilitiesFor()
128 return mCaps.valueAt(ix); in getCapabilitiesFor()
176 for (size_t ix = 0; ix < mCaps.size(); ix++) { in getCapabilityIndex() local
177 if (mCaps.keyAt(ix).equalsIgnoreCase(mime)) { in getCapabilityIndex()
178 return ix; in getCapabilityIndex()
[all …]
/frameworks/av/media/libstagefright/foundation/
DAStringUtils.cpp32 size_t ix = 0, globIx = 0; in MatchesGlob() local
41 ix = globIx; in MatchesGlob()
55 if (ix + len > strLen) { in MatchesGlob()
62 while (ix + len <= strLen && Compare(str + ix, pattern, len, ignoreCase)) { in MatchesGlob()
63 ++ix; in MatchesGlob()
65 if (ix + len > strLen) { in MatchesGlob()
68 ix += len; in MatchesGlob()
73 return ix == strLen; in MatchesGlob()
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dgmed_n.cpp188 Word16 i, j, ix = 0; in gmed_n() local
207 ix = j; in gmed_n()
210 *(tmp2 + ix) = -32768; in gmed_n()
211 *(tmp + i) = ix; in gmed_n()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dc2t64fx.c56 Word32 i, j, k, i0, i1, ix, iy, pos, pos2; in ACELP_2t64_fx() local
229 ix = 0; in ACELP_2t64_fx()
253 ix = i0; in ACELP_2t64_fx()
266 i0 = (ix >> 1); /* pos of pulse 1 (0..31) */ in ACELP_2t64_fx()
268 if (sign[ix] > 0) in ACELP_2t64_fx()
270 code[ix] = 512; /* codeword in Q9 format */ in ACELP_2t64_fx()
271 p0 = h - ix; in ACELP_2t64_fx()
274 code[ix] = -512; in ACELP_2t64_fx()
276 p0 = h_inv - ix; in ACELP_2t64_fx()
Dc4t64fx.c108 Word16 * ix, /* (o) position of pulse 1 */
136 Word16 st, ix, iy, pos, index, track, nb_pulse, nbiter, j_temp; in ACELP_4t64_fx() local
568 ix = ind[0] = pos_max[ipos[0]]; in ACELP_4t64_fx()
570 ps = dn[ix] + dn[iy]; in ACELP_4t64_fx()
571 i = ix >> 2; /* ix / STEP */ in ACELP_4t64_fx()
578 if (sign[ix] < 0) in ACELP_4t64_fx()
579 p0 = h_inv - ix; in ACELP_4t64_fx()
581 p0 = h - ix; in ACELP_4t64_fx()
602 ix = ind[0] = pos_max[ipos[0]]; in ACELP_4t64_fx()
606 ps = add1(add1(add1(dn[ix], dn[iy]), dn[i]), dn[j]); in ACELP_4t64_fx()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dc4_17pf.cpp399 Word16 ix = 0; /* initialization only needed to keep gcc silent */ in search_4i40() local
466 ix = ipos[1]; in search_4i40()
507 ix = i1; in search_4i40()
510 i1 = ix; in search_4i40()
524 ix = ipos[2]; in search_4i40()
565 ix = i2; in search_4i40()
568 i2 = ix; in search_4i40()
580 ix = ipos[3]; in search_4i40()
620 ix = i3; in search_4i40()
644 *(p_codvec) = ix; in search_4i40()
Dc3_14pf.cpp385 Word16 ix = 0; /* initialization only needed to keep gcc silent */ in search_3i40() local
454 ix = ipos[1]; in search_3i40()
497 ix = i1; in search_3i40()
500 i1 = ix; in search_3i40()
514 ix = ipos[2]; in search_3i40()
555 ix = i2; in search_3i40()
558 i2 = ix; in search_3i40()
Dc2_11pf.cpp413 Word16 ix = 0; /* initialization only needed to keep gcc silent */ in search_2i40() local
471 ix = ipos[1]; in search_2i40()
511 ix = i1; in search_2i40()
531 *(p_codvec) = ix; in search_2i40()
Dc2_9pf.cpp597 Word16 ix = 0; /* initialization only needed to keep gcc silent */ in search_2i40() local
656 ix = *(ipos + 1); in search_2i40()
702 ix = i1; in search_2i40()
720 *(p_codvec) = ix; in search_2i40()
/frameworks/av/media/libstagefright/
DMediaCodecList.cpp258 for (size_t ix = 0; ix < colorFormats.size(); ix++) { in parseTopLevelXMLFile() local
259 if (ix > 0) { in parseTopLevelXMLFile()
262 nice.append(colorFormats.itemAt(ix)); in parseTopLevelXMLFile()
270 for (size_t ix = 0; ix < profileLevels.size(); ix++) { in parseTopLevelXMLFile() local
271 if (ix > 0) { in parseTopLevelXMLFile()
275 profileLevels.itemAt(ix); in parseTopLevelXMLFile()
284 for (size_t ix = 0; ix < info.mQuirks.size(); ix++) { in parseTopLevelXMLFile() local
285 if (ix > 0) { in parseTopLevelXMLFile()
288 quirks.append(info.mQuirks[ix]); in parseTopLevelXMLFile()
870 for (size_t ix = 0; ix < ARRAY_SIZE(advancedFeatures); ix++) { in findCodecByType() local
[all …]
DClockEstimator.cpp147 size_t ix = (mSampleIx + headIx) % mHistoryLength; in estimate() local
148 mHead.add(mXHistory[ix], mYHistory[ix], w); in estimate()
DMediaSync.cpp741 ssize_t ix = mBuffersSentToOutput.indexOfKey(buffer->getId()); in onBufferReleasedByOutput() local
742 if (ix < 0) { in onBufferReleasedByOutput()
746 mBuffersSentToOutput.removeItemsAt(ix); in onBufferReleasedByOutput()
753 ssize_t ix = mBuffersFromInput.indexOfKey(buffer->getId()); in returnBufferToInput_l() local
754 if (ix < 0) { in returnBufferToInput_l()
761 sp<GraphicBuffer> oldBuffer = mBuffersFromInput.valueAt(ix); in returnBufferToInput_l()
762 mBuffersFromInput.removeItemsAt(ix); in returnBufferToInput_l()
/frameworks/base/core/java/android/text/style/
DDrawableMarginSpan.java46 int ix = (int)x; in drawLeadingMargin() local
53 mDrawable.setBounds(ix, itop, ix+dw, itop+dh); in drawLeadingMargin()
/frameworks/base/core/java/android/text/method/
DMultiTapKeyListener.java140 int ix = val.indexOf(ch); in onKeyDown() local
142 if (ix >= 0) { in onKeyDown()
143 ix = (ix + 1) % (val.length()); in onKeyDown()
145 content.replace(selStart, selEnd, val, ix, ix + 1); in onKeyDown()
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.cpp131 const Point& Quad::point(int ix) const { in point()
132 ALOG_ASSERT(ix < static_cast<int>(points_.size()), "Access out of bounds"); in point()
133 return points_[ix]; in point()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DSweepGradient_Delegate.java167 for (int ix = 0 ; ix < w ; ix++) { in getRaster()
169 pt1[0] = x + ix; in getRaster()
DBitmapShader_Delegate.java176 for (int ix = 0 ; ix < w ; ix++) { in getRaster()
178 pt1[0] = x + ix; in getRaster()
DRadialGradient_Delegate.java177 for (int ix = 0 ; ix < w ; ix++) { in getRaster()
179 pt1[0] = x + ix; in getRaster()
DLinearGradient_Delegate.java187 for (int ix = 0 ; ix < w ; ix++) { in getRaster()
189 pt1[0] = x + ix; in getRaster()
/frameworks/av/services/audioflinger/
DAudioResamplerFirGen.h429 for (int j=0, ix=i ; j<halfNumCoef ; ++j, ix+=L) {
430 accum += cos(ix*w)*static_cast<double>(*coef++);
686 for (int j=0, ix=i ; j<halfNumCoef ; ++j, ix+=L) {
688 if (CC_LIKELY(ix)) {
689 double x = static_cast<double>(ix);
/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.cpp130 const Point& Quad::point(int ix) const { in point()
131 ALOG_ASSERT(ix < static_cast<int>(points_.size()), "Access out of bounds"); in point()
132 return points_[ix]; in point()
/frameworks/av/tools/resampler_tools/
Dfir.cpp258 int ix = j*M + i; in main() local
259 double x = (2.0 * M_PI * ix * Fcr) / M; in main()
260 double y = kaiser(ix+N, 2*N, beta) * sinc(x) * 2.0 * Fcr; in main()
/frameworks/av/media/libstagefright/codecs/g711/dec/
DSoftG711.cpp268 int32_t ix = x ^ 0x55; in DecodeALaw() local
269 ix &= 0x7f; in DecodeALaw()
271 int32_t iexp = ix >> 4; in DecodeALaw()
272 int32_t mant = ix & 0x0f; in DecodeALaw()

12