Home
last modified time | relevance | path

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

12

/frameworks/av/media/libmedia/
DMediaUtils.cpp36 size_t maxMem = SIZE_MAX; in limitProcessMemory()
39 if (size_t(numPages) < SIZE_MAX / size_t(pageSize)) { in limitProcessMemory()
57 if (propVal > 0 && uint64_t(propVal) <= SIZE_MAX) { in limitProcessMemory()
DICrypto.cpp333 if (sumSubsampleSizes <= SIZE_MAX - ss.mNumBytesOfEncryptedData) { in onTransact()
338 if (sumSubsampleSizes <= SIZE_MAX - ss.mNumBytesOfClearData) { in onTransact()
DAudioTrackShared.cpp31 return sizeof(T) > sizeof(size_t) && x > (T) SIZE_MAX ? SIZE_MAX : x < 0 ? 0 : (size_t) x; in clampToSize()
1016 buffer->mNonContig = mFramesReady == INT64_MAX ? SIZE_MAX : clampToSize(mFramesReady - avail); in obtainBuffer()
DIMediaSource.cpp324 if (usedSize < SIZE_MAX / 3) { in onTransact()
DIOMX.cpp754 if (size > SIZE_MAX - (pageSize * 2)) { in onTransact()
DAudioTrack.cpp1355 if (mNotificationsPerBufferReq > SIZE_MAX / afFrameCountHAL) { in createTrack_l()
/frameworks/av/media/libstagefright/
DDataConverter.cpp64 if (numSamples > SIZE_MAX / mSourceSampleSize) { in sourceSize()
67 return SIZE_MAX; in sourceSize()
75 if (numSamples > SIZE_MAX / mTargetSampleSize) { in targetSize()
78 return SIZE_MAX; in targetSize()
DSampleTable.cpp236 if (SIZE_MAX / sizeof(SampleToChunkEntry) <= (size_t)mNumSampleToChunkOffsets) in setSampleToChunkParams()
247 if ((off64_t)(SIZE_MAX - 8 - (i * 12)) < mSampleToChunkOffset) { in setSampleToChunkParams()
411 if (((SIZE_MAX / 8) - 1 < numEntries) || (data_size != (numEntries + 1) * 8)) { in setCompositionTimeToSampleParams()
469 if (allocSize > SIZE_MAX) { in setSyncSampleParams()
DDRMExtractor.cpp203 if (dstOffset > SIZE_MAX - 4 || in read()
204 dstOffset + 4 > SIZE_MAX - nalLength || in read()
DMPEG4Extractor.cpp1544 if (max_size > SIZE_MAX - 10 * 2) { in parseChunk()
2114 if ((chunk_size > SIZE_MAX) || (SIZE_MAX - chunk_size <= size)) { in parseChunk()
2154 if (chunk_data_size < 0 || static_cast<uint64_t>(chunk_data_size) >= SIZE_MAX - 1) { in parseChunk()
2576 if (size < 4 || size == SIZE_MAX) { in parseITunesMetaData()
2775 if (size < 4 || size == SIZE_MAX || mLastTrack == NULL) { in parseColorInfo()
2818 if (size < 4 || size == SIZE_MAX) { in parse3GPPMetaData()
4355 if (mNALLengthSize > SIZE_MAX - nal_size) { in read()
4433 if (dstOffset > SIZE_MAX - 4 || in read()
4434 dstOffset + 4 > SIZE_MAX - nalLength || in read()
4653 if (mNALLengthSize > SIZE_MAX - nal_size) { in fragmentedRead()
[all …]
DNuMediaExtractor.cpp487 if (SIZE_MAX - size < sizeof(int32_t)) { in appendVorbisNumPageSamples()
/frameworks/av/media/libstagefright/id3/
DID3.cpp245 if (extendedHeaderSize > SIZE_MAX - 4) { in parseV2()
269 if (paddingSize > SIZE_MAX - mFirstFrameOffset) { in parseV2()
667 if (SIZE_MAX - mOffset <= mFrameSize) { in findFrame()
715 if (SIZE_MAX - 10 <= baseSize) { in findFrame()
722 if (SIZE_MAX - mOffset <= mFrameSize) { in findFrame()
/frameworks/av/services/mediaextractor/
Dmain_extractorservice.cpp41 SIZE_MAX, /* upper limit in bytes */ in main()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dpvdec_api.cpp26 #ifndef SIZE_MAX
27 #define SIZE_MAX ((size_t) -1) macro
106 if ((size_t)nLayers > SIZE_MAX / sizeof(Vol *)) { in PVInitVideoDecoder()
144 if ((size_t)nLayers > SIZE_MAX / sizeof(Vop *)) { in PVInitVideoDecoder()
436 if ((size_t)nTotalMB > SIZE_MAX / sizeof(typeDCStore)) { in PVAllocVideoData()
444 || (size_t)(nMBPerRow + 1) > SIZE_MAX / sizeof(typeDCACStore)) { in PVAllocVideoData()
463 if ((size_t)nTotalMB > SIZE_MAX / sizeof(int16)) { in PVAllocVideoData()
483 if ((size_t)nTotalMB > SIZE_MAX / (sizeof(MOT) * 4)) { in PVAllocVideoData()
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp976 if (len1 > (SIZE_MAX - 0xff)) { in addVorbisCodecInfo()
985 if (len1 > (SIZE_MAX - codecPrivate[offset])) { in addVorbisCodecInfo()
992 if (len2 > (SIZE_MAX - 0xff)) { in addVorbisCodecInfo()
1001 if (len2 > (SIZE_MAX - codecPrivate[offset])) { in addVorbisCodecInfo()
1006 if (len1 > SIZE_MAX - len2 || offset > SIZE_MAX - (len1 + len2) || in addVorbisCodecInfo()
/frameworks/av/media/libstagefright/foundation/
DMediaBufferGroup.cpp85 if (requestedSize < SIZE_MAX / 3) { in acquire_buffer()
/frameworks/av/services/audioflinger/
DTrackBase.h99 virtual size_t framesReady() const { return SIZE_MAX; } in framesReady()
/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/media/libstagefright/codecs/avc/enc/
DSoftAVCEncoder.cpp271 if ((size_t)nMacroBlocks > SIZE_MAX / sizeof(uint32_t)) { in initEncParams()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp216 if (tmpSize > SIZE_MAX) { in produceFrame()
/frameworks/native/cmds/installd/
Dcommands.cpp1729 if (SIZE_MAX - len_idmap_root < len_overlay_path || in flatten_path()
1730 SIZE_MAX - (len_idmap_root + len_overlay_path) < len_suffix) { in flatten_path()
/frameworks/av/media/libstagefright/codecs/avcenc/
DSoftAVCEnc.cpp698 if (mNumMemRecords > SIZE_MAX / sizeof(iv_mem_rec_t)) { in initEncoder()
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp1959 if (SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Reverb_command()
/frameworks/native/vulkan/nulldrv/
Dnull_driver.cpp737 if (SIZE_MAX - sizeof(DeviceMemory) <= alloc_info->allocationSize) in DEFINE_OBJECT_HANDLE_CONVERSION()
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp3100 if (SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Effect_command()

12