Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 229) sorted by relevance

12345678910

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dvlc_encode_inline.h25 Int idx, run, level, j; in zero_run_search() local
28 idx = 0; in zero_run_search()
53 RLB->level[idx] = -level; in zero_run_search()
54 RLB->s[idx] = 1; in zero_run_search()
55 RLB->run[idx] = run; in zero_run_search()
57 idx++; in zero_run_search()
61 RLB->level[idx] = level; in zero_run_search()
62 RLB->s[idx] = 0; in zero_run_search()
63 RLB->run[idx] = run; in zero_run_search()
65 idx++; in zero_run_search()
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dms_stereo.c64 Word32 idx, shift; in MsStereoProcessing() local
66 idx = sfb + sfboffs; in MsStereoProcessing()
68 thrL = sfbThresholdLeft[idx]; in MsStereoProcessing()
69 thrR = sfbThresholdRight[idx]; in MsStereoProcessing()
70 nrgL = sfbEnergyLeft[idx]; in MsStereoProcessing()
71 nrgR = sfbEnergyRight[idx]; in MsStereoProcessing()
84 nrgL = sfbEnergyMid[idx]; in MsStereoProcessing()
85 nrgR = sfbEnergySide[idx]; in MsStereoProcessing()
100 msMask[idx] = 1; in MsStereoProcessing()
103 for (j=sfbOffset[idx]; j<sfbOffset[idx+1]; j++) { in MsStereoProcessing()
[all …]
/frameworks/rs/
DrsGrallocConsumer.cpp87 media_status_t GrallocConsumer::lockNextBuffer(uint32_t idx) { in lockNextBuffer() argument
90 if (idx >= mNumAlloc) { in lockNextBuffer()
91 ALOGE("Invalid buffer index: %d", idx); in lockNextBuffer()
95 if (mAcquiredBuffer[idx].mImg != nullptr) { in lockNextBuffer()
96 ret = unlockBuffer(idx); in lockNextBuffer()
102 ret = AImageReader_acquireNextImage(mImgReader, &(mAcquiredBuffer[idx].mImg)); in lockNextBuffer()
103 if (ret != AMEDIA_OK || mAcquiredBuffer[idx].mImg == nullptr) { in lockNextBuffer()
105 __FUNCTION__, mImgReader, ret, mAcquiredBuffer[idx].mImg); in lockNextBuffer()
109 AImage *img = mAcquiredBuffer[idx].mImg; in lockNextBuffer()
156 mAcquiredBuffer[idx].mBufferPointer = data; in lockNextBuffer()
[all …]
DrsDevice.cpp35 for (size_t idx=0; idx < mContexts.size(); idx++) { in removeContext() local
36 if (mContexts[idx] == rsc) { in removeContext()
37 mContexts.erase(mContexts.begin() + idx); in removeContext()
/frameworks/base/core/java/android/content/res/
DXmlBlock.java226 int idx = nativeGetAttributeIndex(mParseState, namespace, name); in getAttributeValue() local
227 if (idx >= 0) { in getAttributeValue()
229 + namespace + ":" + name + " index = " + idx); in getAttributeValue()
231 "Namespace=" + getAttributeNamespace(idx) in getAttributeValue()
232 + "Name=" + getAttributeName(idx) in getAttributeValue()
233 + ", Value=" + getAttributeValue(idx)); in getAttributeValue()
234 return getAttributeValue(idx); in getAttributeValue()
318 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute); in getAttributeListValue() local
319 if (idx >= 0) { in getAttributeListValue()
320 return getAttributeListValue(idx, options, defaultValue); in getAttributeListValue()
[all …]
/frameworks/av/media/libmedia/
DStringArray.cpp74 void StringArray::erase(int idx) { in erase() argument
75 if (idx < 0 || idx >= mCurrent) in erase()
77 delete[] mArray[idx]; in erase()
78 if (idx < mCurrent-1) { in erase()
79 memmove(&mArray[idx], &mArray[idx+1], in erase()
80 (mCurrent-1 - idx) * sizeof(char*)); in erase()
103 void StringArray::setEntry(int idx, const char* str) { in setEntry() argument
104 if (idx < 0 || idx >= mCurrent) in setEntry()
106 delete[] mArray[idx]; in setEntry()
108 mArray[idx] = new char[len+1]; in setEntry()
[all …]
/frameworks/base/tools/aapt/
DAaptXml.cpp81 ssize_t idx = tree.indexOfAttribute(ns, attr); in getAttribute() local
82 if (idx < 0) { in getAttribute()
85 return getStringAttributeAtIndex(tree, idx, outError); in getAttribute()
89 ssize_t idx = indexOfAttribute(tree, attrRes); in getAttribute() local
90 if (idx < 0) { in getAttribute()
93 return getStringAttributeAtIndex(tree, idx, outError); in getAttribute()
98 ssize_t idx = indexOfAttribute(tree, attrRes); in getResolvedAttribute() local
99 if (idx < 0) { in getResolvedAttribute()
104 if (tree.getAttributeValue(idx, &value) == BAD_TYPE) { in getResolvedAttribute()
114 const char16_t* str = tree.getAttributeStringValue(idx, &len); in getResolvedAttribute()
[all …]
DAaptUtil.h45 ssize_t idx = keyedVector.indexOfKey(key); in appendValue() local
46 if (idx < 0) { in appendValue()
47 idx = keyedVector.add(key, android::Vector<VALUE>()); in appendValue()
49 keyedVector.editValueAt(idx).add(value); in appendValue()
55 ssize_t idx = keyedVector.indexOfKey(key); in appendValue() local
56 if (idx < 0) { in appendValue()
57 idx = keyedVector.add(key, android::SortedVector<VALUE>()); in appendValue()
59 keyedVector.editValueAt(idx).add(value); in appendValue()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dsmall_struct.rs57 for (int idx = 0; idx < ARRAY_LEN; idx ++) {
58 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx);
59 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx);
83 for (int idx = 0; idx < ARRAY_LEN; idx ++) {
84 output.arr[idx].i = gIntStart + y * gDimX + x + idx;
85 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
Dsmall_struct_2.rs57 for (int idx = 0; idx < ARRAY_LEN; idx ++) {
58 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx);
59 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx);
83 for (int idx = 0; idx < ARRAY_LEN; idx ++) {
84 output.arr[idx].i = gIntStart + y * gDimX + x + idx;
85 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dsmall_struct_2.rs55 for (int idx = 0; idx < ARRAY_LEN; idx ++) {
56 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx);
57 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx);
81 for (int idx = 0; idx < ARRAY_LEN; idx ++) {
82 output.arr[idx].i = gIntStart + y * gDimX + x + idx;
83 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
Dsmall_struct.rs55 for (int idx = 0; idx < ARRAY_LEN; idx ++) {
56 _RS_ASSERT_EQU((*v).arr[idx].i, gIntStart + y * gDimX + x + idx);
57 _RS_ASSERT_EQU((*v).arr[idx].l, gLongStart + y * gDimX + x + idx);
81 for (int idx = 0; idx < ARRAY_LEN; idx ++) {
82 output.arr[idx].i = gIntStart + y * gDimX + x + idx;
83 output.arr[idx].l = gLongStart + y * gDimX + x + idx;
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dpvdec_api.cpp82 int idx; in PVInitVideoDecoder() local
88 for (idx = 0; idx < nLayers; idx++) in PVInitVideoDecoder()
90 decCtrl->volbuf[idx] = volbuf[idx]; in PVInitVideoDecoder()
91 decCtrl->volbuf_size[idx] = volbuf_size[idx]; in PVInitVideoDecoder()
165 for (idx = 0; idx < nLayers; idx++) in PVInitVideoDecoder()
169 video->vopHeader[idx] = IMEM_vopHeader[idx]; in PVInitVideoDecoder()
171 video->vopHeader[idx] = (Vop *) oscl_malloc(sizeof(Vop)); in PVInitVideoDecoder()
173 if (video->vopHeader[idx] == NULL) in PVInitVideoDecoder()
180 oscl_memset(video->vopHeader[idx], 0, sizeof(Vop)); in PVInitVideoDecoder()
181 video->vopHeader[idx]->timeStamp = 0; in PVInitVideoDecoder()
[all …]
/frameworks/compile/mclinker/lib/LD/
DELFReader.cpp87 for (size_t idx = 1; idx < entsize; ++idx) { in readSymbols() local
88 st_info = symtab[idx].st_info; in readSymbols()
89 st_other = symtab[idx].st_other; in readSymbols()
92 st_name = symtab[idx].st_name; in readSymbols()
93 st_value = symtab[idx].st_value; in readSymbols()
94 st_size = symtab[idx].st_size; in readSymbols()
95 st_shndx = symtab[idx].st_shndx; in readSymbols()
97 st_name = mcld::bswap32(symtab[idx].st_name); in readSymbols()
98 st_value = mcld::bswap32(symtab[idx].st_value); in readSymbols()
99 st_size = mcld::bswap32(symtab[idx].st_size); in readSymbols()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgramFragment.java67 int idx = 0; in create() local
70 tmp[idx++] = ProgramParam.INPUT.mID; in create()
71 tmp[idx++] = mInputs[i].getID(mRS); in create()
74 tmp[idx++] = ProgramParam.OUTPUT.mID; in create()
75 tmp[idx++] = mOutputs[i].getID(mRS); in create()
78 tmp[idx++] = ProgramParam.CONSTANT.mID; in create()
79 tmp[idx++] = mConstants[i].getID(mRS); in create()
82 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID; in create()
83 tmp[idx++] = mTextureTypes[i].mID; in create()
DProgramVertex.java127 int idx = 0; in create() local
130 tmp[idx++] = ProgramParam.INPUT.mID; in create()
131 tmp[idx++] = mInputs[i].getID(mRS); in create()
134 tmp[idx++] = ProgramParam.OUTPUT.mID; in create()
135 tmp[idx++] = mOutputs[i].getID(mRS); in create()
138 tmp[idx++] = ProgramParam.CONSTANT.mID; in create()
139 tmp[idx++] = mConstants[i].getID(mRS); in create()
142 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID; in create()
143 tmp[idx++] = mTextureTypes[i].mID; in create()
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp186 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeNamespace() argument
194 return static_cast<jint>(st->getAttributeNamespaceID(idx)); in android_content_XmlBlock_nativeGetAttributeNamespace()
198 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeName() argument
206 return static_cast<jint>(st->getAttributeNameID(idx)); in android_content_XmlBlock_nativeGetAttributeName()
210 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeResource() argument
218 return static_cast<jint>(st->getAttributeNameResID(idx)); in android_content_XmlBlock_nativeGetAttributeResource()
222 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeDataType() argument
230 return static_cast<jint>(st->getAttributeDataType(idx)); in android_content_XmlBlock_nativeGetAttributeDataType()
234 jlong token, jint idx) in android_content_XmlBlock_nativeGetAttributeData() argument
242 return static_cast<jint>(st->getAttributeData(idx)); in android_content_XmlBlock_nativeGetAttributeData()
[all …]
/frameworks/rs/driver/
DrsdVertexArray.cpp65 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const { in logAttrib() argument
66 if (idx == 0) { in logAttrib()
70 idx, slot, in logAttrib()
71 mAttribs[idx].name.c_str(), in logAttrib()
72 mAttribs[idx].buffer, in logAttrib()
73 mAttribs[idx].ptr, in logAttrib()
74 mAttribs[idx].size, in logAttrib()
75 mAttribs[idx].type, in logAttrib()
76 mAttribs[idx].stride, in logAttrib()
77 mAttribs[idx].normalized, in logAttrib()
[all …]
/frameworks/base/core/java/android/os/
DPooledStringReader.java44 int idx = mIn.readInt(); in readString() local
45 if (idx >= 0) { in readString()
46 return mPool[idx]; in readString()
48 idx = (-idx) - 1; in readString()
50 mPool[idx] = str; in readString()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dframetovalues.cpp43 for(int idx = 0; idx < numPixels; idx++, disp+=4) { in Java_androidx_media_filterpacks_image_ToGrayValuesFilter_toGrayValues() local
48 *(grayPtr+idx) = static_cast<unsigned char>(gray); in Java_androidx_media_filterpacks_image_ToGrayValuesFilter_toGrayValues()
69 for(int idx = 0; idx < numPixels; idx++, pixelDisp += 4, rgbDisp += 3) { in Java_androidx_media_filterpacks_image_ToRgbValuesFilter_toRgbValues() local
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerSettings.java98 final int idx = select(packageName, userId); in remove() local
99 if (idx < 0) { in remove()
103 mItems.remove(idx); in remove()
109 final int idx = select(packageName, userId); in getOverlayInfo() local
110 if (idx < 0) { in getOverlayInfo()
113 return mItems.get(idx).getOverlayInfo(); in getOverlayInfo()
121 final int idx = select(packageName, userId); in setBaseCodePath() local
122 if (idx < 0) { in setBaseCodePath()
125 return mItems.get(idx).setBaseCodePath(path); in setBaseCodePath()
129 final int idx = select(packageName, userId); in getEnabled() local
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Ddec_alg_codebook.cpp195 int32 mask, idx; in dec_3p_3N1() local
204 idx = index & mask; in dec_3p_3N1()
213 dec_2p_2N1(idx, (int16)(N - 1), j, pos); in dec_3p_3N1()
217 idx = (index >> tmp) & mask; in dec_3p_3N1()
219 dec_1p_N1(idx, N, offset, pos + 2); in dec_3p_3N1()
232 int32 mask, idx; in dec_4p_4N1() local
239 idx = index & mask; in dec_4p_4N1()
248 dec_2p_2N1(idx, (int16)(N - 1), j, pos); in dec_4p_4N1()
253 idx = (index >> (N << 1)) & mask; /* idx = (index >> (2*N)) & mask; */ in dec_4p_4N1()
254 dec_2p_2N1(idx, N, offset, pos + 2); /* dec_2p_2N1(idx, N, offset, pos+2); */ in dec_4p_4N1()
[all …]
/frameworks/av/include/media/
DStringArray.h44 void erase(int idx);
65 const char* getEntry(int idx) const { in getEntry() argument
66 return (unsigned(idx) >= unsigned(mCurrent)) ? NULL : mArray[idx]; in getEntry()
73 void setEntry(int idx, const char* str);
/frameworks/av/media/libmedia/include/media/
DStringArray.h44 void erase(int idx);
65 const char* getEntry(int idx) const { in getEntry() argument
66 return (unsigned(idx) >= unsigned(mCurrent)) ? NULL : mArray[idx]; in getEntry()
73 void setEntry(int idx, const char* str);
/frameworks/av/media/ndk/
DNdkMediaCodec.cpp274 size_t idx; in AMediaCodec_dequeueInputBuffer() local
275 status_t ret = mData->mCodec->dequeueInputBuffer(&idx, timeoutUs); in AMediaCodec_dequeueInputBuffer()
278 return idx; in AMediaCodec_dequeueInputBuffer()
284 uint8_t* AMediaCodec_getInputBuffer(AMediaCodec *mData, size_t idx, size_t *out_size) { in AMediaCodec_getInputBuffer() argument
288 if (idx >= n) { in AMediaCodec_getInputBuffer()
289 ALOGE("buffer index %zu out of range", idx); in AMediaCodec_getInputBuffer()
292 if (abufs[idx] == NULL) { in AMediaCodec_getInputBuffer()
293 ALOGE("buffer index %zu is NULL", idx); in AMediaCodec_getInputBuffer()
297 *out_size = abufs[idx]->capacity(); in AMediaCodec_getInputBuffer()
299 return abufs[idx]->data(); in AMediaCodec_getInputBuffer()
[all …]

12345678910