/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | vlc_encode_inline.h | 25 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 …]
|
D | mp4enc_api.cpp | 197 Int nLayers, idx, i, j; in PVInitVideoEncoder() local 610 for (idx = 0; idx < nLayers; idx++) in PVInitVideoEncoder() 612 temp_w = video->encParams->LayerWidth[idx]; in PVInitVideoEncoder() 613 temp_h = video->encParams->LayerHeight[idx]; in PVInitVideoEncoder() 628 mbsPerSec = (Int)(nTotalMB * video->encParams->LayerFrameRate[idx]); in PVInitVideoEncoder() 629 if (mbsPerSec > video->encParams->LayerMaxMbsPerSec[idx]) status = PV_FALSE; in PVInitVideoEncoder() 674 for (idx = 0; idx < nTotalMB; idx++) in PVInitVideoEncoder() 676 video->mot[idx] = (MOT *)M4VENC_MALLOC(sizeof(MOT) * 8); in PVInitVideoEncoder() 677 if (video->mot[idx] == NULL) in PVInitVideoEncoder() 846 for (idx = 0; idx < nLayers; idx++) in PVInitVideoEncoder() [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | ms_stereo.c | 65 Word32 idx, shift; in MsStereoProcessing() local 67 idx = sfb + sfboffs; in MsStereoProcessing() 69 thrL = sfbThresholdLeft[idx]; in MsStereoProcessing() 70 thrR = sfbThresholdRight[idx]; in MsStereoProcessing() 71 nrgL = sfbEnergyLeft[idx]; in MsStereoProcessing() 72 nrgR = sfbEnergyRight[idx]; in MsStereoProcessing() 85 nrgL = sfbEnergyMid[idx]; in MsStereoProcessing() 86 nrgR = sfbEnergySide[idx]; in MsStereoProcessing() 103 msMask[idx] = 1; in MsStereoProcessing() 106 for (j=sfbOffset[idx]; j<sfbOffset[idx+1]; j++) { in MsStereoProcessing() [all …]
|
/frameworks/av/media/libmedia/ |
D | StringArray.cpp | 74 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/core/java/android/content/res/ |
D | XmlBlock.java | 224 int idx = nativeGetAttributeIndex(mParseState, namespace, name); in getAttributeValue() local 225 if (idx >= 0) { in getAttributeValue() 227 + namespace + ":" + name + " index = " + idx); in getAttributeValue() 229 "Namespace=" + getAttributeNamespace(idx) in getAttributeValue() 230 + "Name=" + getAttributeName(idx) in getAttributeValue() 231 + ", Value=" + getAttributeValue(idx)); in getAttributeValue() 232 return getAttributeValue(idx); in getAttributeValue() 316 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute); in getAttributeListValue() local 317 if (idx >= 0) { in getAttributeListValue() 318 return getAttributeListValue(idx, options, defaultValue); in getAttributeListValue() [all …]
|
/frameworks/base/tools/aapt/ |
D | AaptXml.cpp | 81 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() 103 if (tree.getAttributeValue(idx, &value) != NO_ERROR) { in getResolvedAttribute() 106 const char16_t* str = tree.getAttributeStringValue(idx, &len); in getResolvedAttribute() [all …]
|
D | AaptUtil.h | 45 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/base/media/jni/ |
D | android_media_ImageReader.cpp | 338 static void Image_getLockedBufferInfo(JNIEnv* env, CpuConsumer::LockedBuffer* buffer, int idx, in Image_getLockedBufferInfo() argument 344 ALOG_ASSERT((idx < IMAGE_READER_MAX_NUM_PLANES) && (idx >= 0)); in Image_getLockedBufferInfo() 361 (idx == 0) ? in Image_getLockedBufferInfo() 363 (idx == 1) ? in Image_getLockedBufferInfo() 367 if (idx == 0) { in Image_getLockedBufferInfo() 383 (idx == 0) ? in Image_getLockedBufferInfo() 385 (idx == 1) ? in Image_getLockedBufferInfo() 389 dataSize = (idx == 0) ? ySize : cSize; in Image_getLockedBufferInfo() 403 (idx == 0) ? in Image_getLockedBufferInfo() 405 (idx == 1) ? in Image_getLockedBufferInfo() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | pvdec_api.cpp | 80 int idx; in PVInitVideoDecoder() local 86 for (idx = 0; idx < nLayers; idx++) in PVInitVideoDecoder() 88 decCtrl->volbuf[idx] = volbuf[idx]; in PVInitVideoDecoder() 89 decCtrl->volbuf_size[idx] = volbuf_size[idx]; in PVInitVideoDecoder() 163 for (idx = 0; idx < nLayers; idx++) in PVInitVideoDecoder() 167 video->vopHeader[idx] = IMEM_vopHeader[idx]; in PVInitVideoDecoder() 169 video->vopHeader[idx] = (Vop *) oscl_malloc(sizeof(Vop)); in PVInitVideoDecoder() 171 if (video->vopHeader[idx] == NULL) in PVInitVideoDecoder() 178 oscl_memset(video->vopHeader[idx], 0, sizeof(Vop)); in PVInitVideoDecoder() 179 video->vopHeader[idx]->timeStamp = 0; in PVInitVideoDecoder() [all …]
|
/frameworks/compile/mclinker/lib/LD/ |
D | ELFReader.cpp | 91 for (size_t idx = 1; idx < entsize; ++idx) { in readSymbols() local 92 st_info = symtab[idx].st_info; in readSymbols() 93 st_other = symtab[idx].st_other; in readSymbols() 96 st_name = symtab[idx].st_name; in readSymbols() 97 st_value = symtab[idx].st_value; in readSymbols() 98 st_size = symtab[idx].st_size; in readSymbols() 99 st_shndx = symtab[idx].st_shndx; in readSymbols() 102 st_name = mcld::bswap32(symtab[idx].st_name); in readSymbols() 103 st_value = mcld::bswap32(symtab[idx].st_value); in readSymbols() 104 st_size = mcld::bswap32(symtab[idx].st_size); in readSymbols() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | ProgramFragment.java | 67 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()
|
D | ProgramVertex.java | 127 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()
|
D | ProgramFragmentFixedFunction.java | 54 int idx = 0; in create() local 57 tmp[idx++] = ProgramParam.INPUT.mID; in create() 58 tmp[idx++] = mInputs[i].getID(mRS); in create() 61 tmp[idx++] = ProgramParam.OUTPUT.mID; in create() 62 tmp[idx++] = mOutputs[i].getID(mRS); in create() 65 tmp[idx++] = ProgramParam.CONSTANT.mID; in create() 66 tmp[idx++] = mConstants[i].getID(mRS); in create() 69 tmp[idx++] = ProgramParam.TEXTURE_TYPE.mID; in create() 70 tmp[idx++] = mTextureTypes[i].mID; in create()
|
/frameworks/base/core/jni/ |
D | android_util_XmlBlock.cpp | 186 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/cpu_ref/linkloader/include/impl/ |
D | ELFSymbol.hxx | 126 size_t idx = (size_t)getSectionIndex(); in getAddress() local 132 switch (idx) { in getAddress() 138 unsigned section_type = (*header)[idx]->getType(); in getAddress() 159 ELFSectionTy const *sec = owner->getSectionByIndex(idx); in getAddress() 215 switch (idx) { in getAddress() 221 rsl_assert((*header)[idx]->getType() == SHT_PROGBITS && in getAddress() 224 ELFSectionTy const *sec = owner->getSectionByIndex(idx); in getAddress() 244 switch (idx) { in getAddress() 250 rsl_assert(((*header)[idx]->getType() == SHT_PROGBITS || in getAddress() 251 (*header)[idx]->getType() == SHT_NOBITS) && in getAddress() [all …]
|
/frameworks/rs/driver/ |
D | rsdVertexArray.cpp | 66 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const { in logAttrib() argument 67 if (idx == 0) { in logAttrib() 71 idx, slot, in logAttrib() 72 mAttribs[idx].name.string(), in logAttrib() 73 mAttribs[idx].buffer, in logAttrib() 74 mAttribs[idx].ptr, in logAttrib() 75 mAttribs[idx].size, in logAttrib() 76 mAttribs[idx].type, in logAttrib() 77 mAttribs[idx].stride, in logAttrib() 78 mAttribs[idx].normalized, in logAttrib() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
D | frametovalues.cpp | 43 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/av/media/ndk/ |
D | NdkMediaCodec.cpp | 247 size_t idx; in AMediaCodec_dequeueInputBuffer() local 248 status_t ret = mData->mCodec->dequeueInputBuffer(&idx, timeoutUs); in AMediaCodec_dequeueInputBuffer() 251 return idx; in AMediaCodec_dequeueInputBuffer() 257 uint8_t* AMediaCodec_getInputBuffer(AMediaCodec *mData, size_t idx, size_t *out_size) { in AMediaCodec_getInputBuffer() argument 261 if (idx >= n) { in AMediaCodec_getInputBuffer() 262 ALOGE("buffer index %zu out of range", idx); in AMediaCodec_getInputBuffer() 266 *out_size = abufs[idx]->capacity(); in AMediaCodec_getInputBuffer() 268 return abufs[idx]->data(); in AMediaCodec_getInputBuffer() 275 uint8_t* AMediaCodec_getOutputBuffer(AMediaCodec *mData, size_t idx, size_t *out_size) { in AMediaCodec_getOutputBuffer() argument 279 if (idx >= n) { in AMediaCodec_getOutputBuffer() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | dec_alg_codebook.cpp | 195 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/ |
D | StringArray.h | 44 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/native/services/surfaceflinger/ |
D | FrameTracker.cpp | 156 size_t idx = (mOffset+NUM_FRAME_RECORDS-i) % NUM_FRAME_RECORDS; in processFencesLocked() local 159 const sp<Fence>& rfence = records[idx].frameReadyFence; in processFencesLocked() 161 records[idx].frameReadyTime = rfence->getSignalTime(); in processFencesLocked() 162 if (records[idx].frameReadyTime < INT64_MAX) { in processFencesLocked() 163 records[idx].frameReadyFence = NULL; in processFencesLocked() 169 const sp<Fence>& pfence = records[idx].actualPresentFence; in processFencesLocked() 171 records[idx].actualPresentTime = pfence->getSignalTime(); in processFencesLocked() 172 if (records[idx].actualPresentTime < INT64_MAX) { in processFencesLocked() 173 records[idx].actualPresentFence = NULL; in processFencesLocked() 180 updateStatsLocked(idx); in processFencesLocked() [all …]
|
/frameworks/rs/ |
D | rsDevice.cpp | 35 for (size_t idx=0; idx < mContexts.size(); idx++) { in removeContext() local 36 if (mContexts[idx] == rsc) { in removeContext() 37 mContexts.removeAt(idx); in removeContext()
|
/frameworks/native/opengl/tools/glgen/src/ |
D | JniCodeEmitter.java | 495 int idx = nonPrimitiveArgs.get(i).intValue(); in hasNonConstArg() local 496 int cIndex = jfunc.getArgCIndex(idx); in hasNonConstArg() 497 if (jfunc.getArgType(idx).isArray()) { in hasNonConstArg() 501 } else if (jfunc.getArgType(idx).isBuffer()) { in hasNonConstArg() 857 int idx = nonPrimitiveArgs.get(i).intValue(); in emitJniCode() local 858 JType argType = jfunc.getArgType(idx); in emitJniCode() 983 int idx = nonPrimitiveArgs.get(i).intValue(); in emitJniCode() local 984 int cIndex = jfunc.getArgCIndex(idx); in emitJniCode() 987 if (jfunc.getArgType(idx).isBuffer() in emitJniCode() 988 || jfunc.getArgType(idx).isArray() in emitJniCode() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | ol_ltp.cpp | 210 Word16 idx, /* i : index */ in ol_ltp() argument 223 *T_op = Pitch_ol(vadSt, mode, wsp, PIT_MIN, PIT_MAX, L_FRAME, idx, dtx, in ol_ltp() 231 idx, dtx, pOverflow); in ol_ltp() 236 old_lags, ol_gain_flg, idx, dtx, pOverflow); in ol_ltp() 241 L_FRAME_BY2, idx, dtx, pOverflow); in ol_ltp()
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
D | balls.rs | 64 bg->idx = -1; 75 balls[ct].next = bg->idx; 76 bg->idx = ct; 86 int idx = bg->idx; 87 while (idx >= 0) { 88 const Ball_t * bPtr = &balls[idx]; 90 idx = bPtr->next;
|