Home
last modified time | relevance | path

Searched refs:SIZE_MAX (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/av/media/libmedia/
DMediaUtils.cpp37 size_t maxMem = SIZE_MAX; in limitProcessMemory()
40 if (size_t(numPages) < SIZE_MAX / size_t(pageSize)) { in limitProcessMemory()
58 if (propVal > 0 && uint64_t(propVal) <= SIZE_MAX) { in limitProcessMemory()
63 if (maxMem != SIZE_MAX && &__scudo_set_rss_limit != 0) { in limitProcessMemory()
/frameworks/av/media/libstagefright/
DDataConverter.cpp65 if (numSamples > SIZE_MAX / mSourceSampleSize) { in sourceSize()
68 return SIZE_MAX; in sourceSize()
76 if (numSamples > SIZE_MAX / mTargetSampleSize) { in targetSize()
79 return SIZE_MAX; in targetSize()
DNuMediaExtractor.cpp609 if (SIZE_MAX - size < sizeof(int32_t)) { in appendVorbisNumPageSamples()
/frameworks/av/services/mediaextractor/
Dmain_extractorservice.cpp47 SIZE_MAX, /* upper limit in bytes */ in main()
/frameworks/av/media/libstagefright/id3/
DID3.cpp300 if (extendedHeaderSize > SIZE_MAX - 4) { in parseV2()
324 if (paddingSize > SIZE_MAX - mFirstFrameOffset) { in parseV2()
774 if (SIZE_MAX - mOffset <= mFrameSize) { in findFrame()
822 if (SIZE_MAX - 10 <= baseSize) { in findFrame()
829 if (SIZE_MAX - mOffset <= mFrameSize) { in findFrame()
/frameworks/native/libs/binder/
DBufferedTextOutput.cpp52 if (len > SIZE_MAX - bufferPos) return NO_MEMORY; // overflow in append()
54 if ((len + bufferPos) > SIZE_MAX / 3) return NO_MEMORY; // overflow in append()
DParcel.cpp437 if ((size_t) numObjects > SIZE_MAX - mObjectsSize) return NO_MEMORY; // overflow in appendFrom()
438 if (mObjectsSize + numObjects > SIZE_MAX / 3) return NO_MEMORY; // overflow in appendFrom()
440 if (newSize > SIZE_MAX / sizeof(binder_size_t)) return NO_MEMORY; // overflow in appendFrom()
1390 if (mObjectsSize > SIZE_MAX - 2) return NO_MEMORY; // overflow in writeObject()
1391 if ((mObjectsSize + 2) > SIZE_MAX / 3) return NO_MEMORY; // overflow in writeObject()
1393 if (newSize > SIZE_MAX / sizeof(binder_size_t)) return NO_MEMORY; // overflow in writeObject()
2625 if (len > SIZE_MAX - mDataSize) return NO_MEMORY; // overflow in growData()
2626 if (mDataSize + len > SIZE_MAX / 3) return NO_MEMORY; // overflow in growData()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dpvdec_api.cpp28 #ifndef SIZE_MAX
29 #define SIZE_MAX ((size_t) -1) macro
108 if ((size_t)nLayers > SIZE_MAX / sizeof(Vol *)) { in PVInitVideoDecoder()
148 if ((size_t)nLayers > SIZE_MAX / sizeof(Vop *)) { in PVInitVideoDecoder()
451 if ((size_t)nTotalMB > SIZE_MAX / sizeof(typeDCStore)) { in PVAllocVideoData()
460 || (size_t)(nMBPerRow + 1) > SIZE_MAX / sizeof(typeDCACStore)) { in PVAllocVideoData()
482 if ((size_t)nTotalMB > SIZE_MAX / sizeof(int16)) { in PVAllocVideoData()
503 if ((size_t)nTotalMB > SIZE_MAX / (sizeof(MOT) * 4)) { in PVAllocVideoData()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamLegacy.cpp85 const size_t SIZE_STOP_CALLBACKS = SIZE_MAX; in processCallbackCommon()
/frameworks/av/media/codec2/vndk/util/
DC2InterfaceHelper.cpp510 return it == _mDependencyIndex.end() ? SIZE_MAX : it->second; in getDependencyIndex()
620 size_t paramDepIx = SIZE_MAX; in config()
638 if (paramDepIx == SIZE_MAX) { in config()
652 if (paramDepIx == SIZE_MAX) { in config()
/frameworks/av/drm/libmediadrm/
DICrypto.cpp398 if (sumSubsampleSizes <= SIZE_MAX - ss.mNumBytesOfEncryptedData) { in onTransact()
403 if (sumSubsampleSizes <= SIZE_MAX - ss.mNumBytesOfClearData) { in onTransact()
DCryptoHal.cpp327 SIZE_MAX - memory->offset() < memory->size()) { in toSharedBuffer()
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp791 if (SIZE_MAX - len < trackInfo->mHeaderLen) { in readBlock()
1556 if (len1 > (SIZE_MAX - 0xff)) { in addVorbisCodecInfo()
1565 if (len1 > (SIZE_MAX - codecPrivate[offset])) { in addVorbisCodecInfo()
1572 if (len2 > (SIZE_MAX - 0xff)) { in addVorbisCodecInfo()
1581 if (len2 > (SIZE_MAX - codecPrivate[offset])) { in addVorbisCodecInfo()
1586 if (len1 > SIZE_MAX - len2 || offset > SIZE_MAX - (len1 + len2) || in addVorbisCodecInfo()
/frameworks/av/media/libstagefright/foundation/
DMediaBufferGroup.cpp193 requestedSize < SIZE_MAX / 3 * 2 /* NB: ordering */ ? in acquire_buffer()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dmp4enc_api.cpp28 #ifndef SIZE_MAX
29 #define SIZE_MAX ((size_t) -1) macro
668 if ((size_t)nTotalMB > SIZE_MAX / sizeof(MOT *)) { in PVInitVideoEncoder()
693 if ((size_t)nTotalMB > SIZE_MAX / sizeof(typeDCStore)) { in PVInitVideoEncoder()
701 if ((size_t)((max_width >> 4) + 1) > SIZE_MAX / sizeof(typeDCACStore)) { in PVInitVideoEncoder()
711 if ((size_t)nTotalMB > SIZE_MAX / sizeof(Int)) { in PVInitVideoEncoder()
773 || (size_t)(size + (size >> 1)) > SIZE_MAX / sizeof(PIXEL)) { in PVInitVideoEncoder()
874 if ((size_t)nLayers > SIZE_MAX / sizeof(Vol *)) { in PVInitVideoEncoder()
/frameworks/av/services/audioflinger/
DTrackBase.h214 virtual size_t framesReady() const { return SIZE_MAX; } in framesReady()
DPlaybackTracks.h80 size_t frameCountToBeReady = SIZE_MAX);
/frameworks/av/media/libstagefright/flac/dec/
DFLACDecoder.cpp420 if (inBufferLen > SIZE_MAX - (mBufferDataSize - mBufferPos)) { in addDataToBuffer()
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp33 return sizeof(T) > sizeof(size_t) && x > (T) SIZE_MAX ? SIZE_MAX : x < 0 ? 0 : (size_t) x; in clampToSize()
1149 buffer->mNonContig = mFramesReady == INT64_MAX ? SIZE_MAX : clampToSize(mFramesReady - avail); in obtainBuffer()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp1978 if (max_size > SIZE_MAX - 10 * 2) { in parseChunk()
2695 if (chunk_data_size < 0 || static_cast<uint64_t>(chunk_data_size) >= SIZE_MAX - 1) { in parseChunk()
3650 if (size < 4 || size == SIZE_MAX) { in parseITunesMetaData()
3853 if (size < 4 || size == SIZE_MAX || mLastTrack == NULL) { in parseColorInfo()
3906 if (size < 4 || size == SIZE_MAX) { in parse3GPPMetaData()
6000 if (dstOffset > SIZE_MAX - 4 || in read()
6001 dstOffset + 4 > SIZE_MAX - nalLength || in read()
6330 if (dstOffset > SIZE_MAX - 4 || in fragmentedRead()
6331 dstOffset + 4 > SIZE_MAX - nalLength || in fragmentedRead()
DSampleTable.cpp463 if (((SIZE_MAX / 8) - 1 < numEntries) || (data_size != (numEntries + 1) * 8)) { in setCompositionTimeToSampleParams()
/frameworks/av/media/ndk/
DNdkMediaExtractor.cpp49 if (numSubSamples > SIZE_MAX / sizeof(size_t)) { in U32ArrayToSizeBuf()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerCCDecoder.cpp273 if (payload_size > SIZE_MAX / 8 in parseSEINalUnit()
/frameworks/base/core/jni/
Dandroid_os_HwBlob.cpp107 mSize = SIZE_MAX; // XXX in setTo()
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp241 if (tmpSize > SIZE_MAX) { in produceFrame()

12