/frameworks/av/media/libstagefright/webm/ |
H A D | WebmWriter.cpp | 228 void WebmWriter::initStream(size_t idx) { argument 229 if (mStreams[idx].mThread != NULL) { 232 if (mStreams[idx].mSource == NULL) { 234 mStreams[idx].mThread = new WebmFrameEmptySourceThread( 235 mStreams[idx].mType, mStreams[idx].mSink); 237 ALOGV("adding source %p", mStreams[idx].mSource.get()); 238 mStreams[idx].mThread = new WebmFrameMediaSourceThread( 239 mStreams[idx].mSource, 240 mStreams[idx] [all...] |
/frameworks/av/media/ndk/ |
H A D | NdkMediaCodec.cpp | 274 size_t idx; local 275 status_t ret = mData->mCodec->dequeueInputBuffer(&idx, timeoutUs); 278 return idx; 284 uint8_t* AMediaCodec_getInputBuffer(AMediaCodec *mData, size_t idx, size_t *out_size) { argument 288 if (idx >= n) { 289 ALOGE("buffer index %zu out of range", idx); 292 if (abufs[idx] == NULL) { 293 ALOGE("buffer index %zu is NULL", idx); 297 *out_size = abufs[idx]->capacity(); 299 return abufs[idx] 306 AMediaCodec_getOutputBuffer(AMediaCodec *mData, size_t idx, size_t *out_size) argument 324 AMediaCodec_queueInputBuffer(AMediaCodec *mData, size_t idx, off_t offset, size_t size, uint64_t time, uint32_t flags) argument 335 size_t idx; local 370 AMediaCodec_releaseOutputBuffer(AMediaCodec *mData, size_t idx, bool render) argument 379 AMediaCodec_releaseOutputBufferAtTime( AMediaCodec *mData, size_t idx, int64_t timestampNs) argument 501 AMediaCodec_queueSecureInputBuffer( AMediaCodec* codec, size_t idx, off_t offset, AMediaCodecCryptoInfo* crypto, uint64_t time, uint32_t flags) argument [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | ZslProcessor.cpp | 499 ALOGV("%s: Found good ZSL candidate idx: %u", 814 size_t idx = 0; local 886 idx = j; 909 ALOGV("%s: Candidate timestamp %" PRId64 " (idx %zu), empty frames: %zu", 910 __FUNCTION__, minTimestamp, idx, emptyCount); 913 *metadataIdx = idx;
|
/frameworks/base/media/jni/ |
H A D | android_media_ImageWriter.cpp | 714 static void Image_getLockedImageInfo(JNIEnv* env, LockedImage* buffer, int idx, argument 718 status_t res = getLockedImageInfo(buffer, idx, writerFormat, base, size,
|
H A D | android_media_ImageReader.cpp | 693 static void Image_getLockedImageInfo(JNIEnv* env, LockedImage* buffer, int idx, argument 697 status_t res = getLockedImageInfo(buffer, idx, writerFormat, base, size,
|
H A D | android_media_Utils.cpp | 646 status_t getLockedImageInfo(LockedImage* buffer, int idx, argument 654 LOG_ALWAYS_FATAL_IF((idx >= IMAGE_MAX_NUM_PLANES) || (idx < 0), "idx (%d) is illegal", idx); 672 (idx == 0) ? 674 (idx == 1) ? 678 if (idx == 0) { 698 (idx == 0) ? 700 (idx [all...] |
/frameworks/base/tools/aapt/ |
H A D | ZipFile.cpp | 135 ZipEntry* ZipFile::getEntryByIndex(int idx) const 137 if (idx < 0 || idx >= (int) mEntries.size()) 140 return mEntries[idx]; 158 int idx; local 160 for (idx = mEntries.size()-1; idx >= 0; idx--) { 161 ZipEntry* pEntry = mEntries[idx];
|
H A D | Images.cpp | 882 int i, j, rr, gg, bb, aa, idx;; local 978 for (idx = 0; idx < numOpaqueColors; idx++) { 979 if (opaqueColors[idx] == col) { 996 *out++ = idx; 998 for (idx = 0; idx < numAlphaColors; idx++) { 999 if (alphaColors[idx] [all...] |
/frameworks/base/tools/aapt2/compile/ |
H A D | PngCrunch.cpp | 653 const int idx = color_palette[color]; local 654 CHECK(idx != -1); 655 out_row[x] = static_cast<png_byte>(idx);
|
H A D | Png.cpp | 254 int i, j, rr, gg, bb, aa, idx; local 319 for (idx = 0; idx < num_colors; idx++) { 320 if (colors[idx] == col) { 329 *out++ = idx; 401 for (int idx = 0; idx < num_colors; idx++) { 402 col = colors[idx]; [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | DispSync.cpp | 458 size_t idx = (mFirstResyncSample + mNumResyncSamples) % MAX_RESYNC_SAMPLES; local 459 mResyncSamples[idx] = timestamp; 541 size_t idx = (mFirstResyncSample + i) % MAX_RESYNC_SAMPLES; local 542 size_t prev = (idx + MAX_RESYNC_SAMPLES - 1) % MAX_RESYNC_SAMPLES; 543 nsecs_t duration = mResyncSamples[idx] - mResyncSamples[prev]; 560 size_t idx = (mFirstResyncSample + i) % MAX_RESYNC_SAMPLES; local 561 nsecs_t sample = mResyncSamples[idx] - mReferenceTime; 660 size_t idx = (mFirstResyncSample + i) % MAX_RESYNC_SAMPLES; local 661 nsecs_t sampleTime = mResyncSamples[idx]; 676 size_t idx local [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicBLAS.cpp | 192 static void walk_2d_sgemm(void *usr, uint32_t idx) { argument 203 static void walk_2d_dgemm(void *usr, uint32_t idx) { argument 214 static void walk_2d_cgemm(void *usr, uint32_t idx) { argument 225 static void walk_2d_zgemm(void *usr, uint32_t idx) { argument
|
H A D | rsCpuCore.cpp | 104 uint32_t idx = __sync_fetch_and_add(&dc->mWorkers.mLaunchCount, 1); local 106 //ALOGV("RS helperThread starting %p idx=%i", dc, idx); 108 dc->mWorkers.mLaunchSignals[idx].init(); 109 dc->mWorkers.mNativeThreadId[idx] = gettid(); 121 cpuset.bits[idx / 64] |= 1ULL << (idx % 64); 122 int ret = syscall(241, rsc->mWorkers.mNativeThreadId[idx], 128 dc->mWorkers.mLaunchSignals[idx].wait(); 130 // idx 391 walk_general_foreach(void *usr, uint32_t idx) argument 418 walk_2d_foreach(void *usr, uint32_t idx) argument 443 walk_1d_foreach(void *usr, uint32_t idx) argument 533 walk_1d_reduce(void *usr, uint32_t idx) argument 572 walk_2d_reduce(void *usr, uint32_t idx) argument 611 walk_3d_reduce(void *usr, uint32_t idx) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | mp4enc_api.cpp | 197 Int nLayers, idx, i, j; local 610 for (idx = 0; idx < nLayers; idx++) 612 temp_w = video->encParams->LayerWidth[idx]; 613 temp_h = video->encParams->LayerHeight[idx]; 628 mbsPerSec = (Int)(nTotalMB * video->encParams->LayerFrameRate[idx]); 629 if (mbsPerSec > video->encParams->LayerMaxMbsPerSec[idx]) status = PV_FALSE; 674 for (idx = 0; idx < nTotalM 1113 Int idx, i; local 2994 Int idx, temp_w, temp_h, max = 0, max_width, max_height; local [all...] |
H A D | vlc_encode.cpp | 1794 Int run, idx; local 1834 idx = intra; 1863 RLB->level[idx] = -level; 1864 RLB->s[idx] = 1; 1865 RLB->run[idx] = run; 1867 idx++; 1871 RLB->level[idx] = level; 1872 RLB->s[idx] = 0; 1873 RLB->run[idx] = run; 1875 idx [all...] |
/frameworks/av/services/camera/libcameraservice/api2/ |
H A D | CameraDeviceClient.cpp | 200 int idx = mStreamMap.indexOfKey(IInterface::asBinder(gbp)); local 203 if (idx == NAME_NOT_FOUND) { 211 const StreamSurfaceId& streamSurfaceId = mStreamMap.valueAt(idx);
|
/frameworks/av/services/camera/libcameraservice/common/ |
H A D | CameraProviderManager.cpp | 1285 int idx = 0; local 1303 tagArray.editItemAt(idx++) = section.tags[j].tagId;
|
/frameworks/base/core/java/android/content/res/ |
H A D | XmlBlock.java | 226 int idx = nativeGetAttributeIndex(mParseState, namespace, name); 227 if (idx >= 0) { 229 + namespace + ":" + name + " index = " + idx); 231 "Namespace=" + getAttributeNamespace(idx) 232 + "Name=" + getAttributeName(idx) 233 + ", Value=" + getAttributeValue(idx)); 234 return getAttributeValue(idx); 318 int idx = nativeGetAttributeIndex(mParseState, namespace, attribute); 319 if (idx >= 0) { 320 return getAttributeListValue(idx, option 366 getAttributeListValue(int idx, String[] options, int defaultValue) argument 376 getAttributeBooleanValue(int idx, boolean defaultValue) argument 387 getAttributeResourceValue(int idx, int defaultValue) argument 396 getAttributeIntValue(int idx, int defaultValue) argument 406 getAttributeUnsignedIntValue(int idx, int defaultValue) argument 416 getAttributeFloatValue(int idx, float defaultValue) argument 516 nativeGetAttributeNamespace(long state, int idx) argument 518 nativeGetAttributeName(long state, int idx) argument 520 nativeGetAttributeResource(long state, int idx) argument 522 nativeGetAttributeDataType(long state, int idx) argument 524 nativeGetAttributeData(long state, int idx) argument 526 nativeGetAttributeStringValue(long state, int idx) argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | AssetManager2.cpp | 70 uint8_t idx = package_ids_[package_id]; local 71 if (idx == 0xff) { 72 package_ids_[package_id] = idx = static_cast<uint8_t>(package_groups_.size()); 76 PackageGroup* package_group = &package_groups_[idx]; 134 const size_t idx = package_ids_[package_id]; local 135 if (idx == 0xff) { 138 return &package_groups_[idx].dynamic_ref_table; 289 const uint8_t idx = package_ids_[package_id]; local 290 if (idx == 0xff) { 300 const PackageGroup& package_group = package_groups_[idx]; [all...] |
H A D | AssetManager.cpp | 207 for (size_t idx = 0; mZipSet.getOverlay(ap.path, idx, &oap); idx++) { 1453 bool AssetManager::SharedZip::getOverlay(size_t idx, asset_path* out) const argument 1455 if (idx >= mOverlays.size()) { 1458 *out = mOverlays[idx]; 1498 void AssetManager::ZipSet::closeZip(int idx) argument 1500 mZipFile.editItemAt(idx) = NULL; 1509 int idx = getIndex(path); local 1510 sp<SharedZip> zip = mZipFile[idx]; 1520 int idx = getIndex(path); local 1532 int idx = getIndex(path); local 1540 int idx = getIndex(path); local 1552 int idx = getIndex(path); local 1582 int idx = getIndex(path); local 1587 getOverlay(const String8& path, size_t idx, asset_path* out) const argument [all...] |
/frameworks/native/libs/binder/ |
H A D | IPCThreadState.cpp | 113 size_t idx = cmd & 0xff; local 114 if (idx < sizeof(kReturnStrings) / sizeof(kReturnStrings[0])) 115 return kReturnStrings[idx];
|
/frameworks/native/vulkan/libvulkan/ |
H A D | driver.cpp | 756 int idx = Hal::Get().GetDebugReportIndex(); local 757 if (idx < 0) { 760 static_cast<uint32_t>(idx) < *pPropertyCount) { 761 pProperties[idx].specVersion = 762 std::min(pProperties[idx].specVersion,
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveSession.cpp | 970 LiveSession::StreamType LiveSession::indexToType(int idx) { argument 971 CHECK(idx >= 0 && idx < kNumSources); 972 return (StreamType)(1 << idx); 1996 for (size_t idx = 0; idx < kMaxStreams; idx++) { 1997 StreamType stream = indexToType(idx); 1998 if ((mSwapMask & stream) && (oldUri == mStreams[idx].mUri)) { 2001 if ((mNewStreamMask & stream) && mStreams[idx] 2027 ssize_t idx = typeToIndex(stream); local [all...] |
/frameworks/av/media/libstagefright/matroska/ |
H A D | MatroskaExtractor.cpp | 928 static void storeSize(uint8_t *data, size_t &idx, size_t size) { argument 930 idx += numBytes; 932 data += idx; 953 size_t idx = 0; local 954 esds[idx++] = 0x03; 955 storeSize(esds, idx, esdsSize1); 956 esds[idx++] = 0x00; // ES_ID 957 esds[idx++] = 0x00; // ES_ID 958 esds[idx++] = 0x00; // streamDependenceFlag, URL_Flag, OCRstreamFlag 959 esds[idx [all...] |
/frameworks/native/cmds/dumpstate/ |
H A D | dumpstate.cpp | 701 size_t idx = entry_name.rfind("."); local 702 if (idx != std::string::npos) { 703 std::string extension = entry_name.substr(idx);
|