/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/metadata/id3/ |
D | Id3Decoder.java | 127 int frameHeaderSize = id3Header.majorVersion == 2 ? 6 : 10; in decode() local 135 if (!validateFrames(id3Data, id3Header.majorVersion, frameHeaderSize, false)) { in decode() 136 if (id3Header.majorVersion == 4 && validateFrames(id3Data, 4, frameHeaderSize, true)) { in decode() 144 while (id3Data.bytesLeft() >= frameHeaderSize) { in decode() 146 frameHeaderSize, framePredicate); in decode() 212 int frameHeaderSize, boolean unsignedIntFrameSizeHack) { 215 while (id3Data.bytesLeft() >= frameHeaderSize) { 279 int frameHeaderSize, in decodeFrame() argument 386 frameHeaderSize, framePredicate); in decodeFrame() 389 frameHeaderSize, framePredicate); in decodeFrame() [all …]
|
/external/zstd/tests/ |
D | fullbench.c | 538 { size_t frameHeaderSize; in benchMem() local 540 … frameHeaderSize = ZSTD_frameHeaderSize(dstBuff, ZSTD_FRAMEHEADERSIZE_PREFIX(ZSTD_f_zstd1)); in benchMem() 541 CONTROL(!ZSTD_isError(frameHeaderSize)); in benchMem() 544 … ZSTD_getcBlockSize(dstBuff+frameHeaderSize, dstBuffSize, &bp); /* Get 1st block type */ in benchMem() 549 { size_t const skippedSize = frameHeaderSize + ZSTD_blockHeaderSize; in benchMem() 564 …{ size_t const frameHeaderSize = ZSTD_frameHeaderSize(dstBuff, ZSTD_FRAMEHEADERSIZE_PREFIX(ZSTD_… in benchMem() local 565 CONTROL(!ZSTD_isError(frameHeaderSize)); in benchMem() 566 ip += frameHeaderSize; in benchMem()
|
/external/lz4/lib/ |
D | lz4frame.c | 1112 size_t frameHeaderSize; in LZ4F_decodeHeader() local 1154 frameHeaderSize = minFHSize + (contentSizeFlag?8:0) + (dictIDFlag?4:0); in LZ4F_decodeHeader() 1156 if (srcSize < frameHeaderSize) { in LZ4F_decodeHeader() 1161 dctx->tmpInTarget = frameHeaderSize; in LZ4F_decodeHeader() 1175 assert(frameHeaderSize > 5); in LZ4F_decodeHeader() 1177 { BYTE const HC = LZ4F_headerChecksum(srcPtr+4, frameHeaderSize-5); in LZ4F_decodeHeader() 1178 if (HC != srcPtr[frameHeaderSize-1]) in LZ4F_decodeHeader() 1193 dctx->frameInfo.dictID = LZ4F_readLE32(srcPtr + frameHeaderSize - 5); in LZ4F_decodeHeader() 1197 return frameHeaderSize; in LZ4F_decodeHeader()
|
/external/zstd/lib/legacy/ |
D | zstd_v04.c | 3089 size_t frameHeaderSize; in ZSTD_decompress_usingDict() local 3091 frameHeaderSize = ZSTD_decodeFrameHeader_Part1(ctx, src, ZSTD_frameHeaderSize_min); in ZSTD_decompress_usingDict() 3092 if (ZSTD_isError(frameHeaderSize)) return frameHeaderSize; in ZSTD_decompress_usingDict() 3093 if (srcSize < frameHeaderSize+ZSTD_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTD_decompress_usingDict() 3094 ip += frameHeaderSize; remainingSize -= frameHeaderSize; in ZSTD_decompress_usingDict() 3095 frameHeaderSize = ZSTD_decodeFrameHeader_Part2(ctx, src, frameHeaderSize); in ZSTD_decompress_usingDict() 3096 if (ZSTD_isError(frameHeaderSize)) return frameHeaderSize; in ZSTD_decompress_usingDict()
|
D | zstd_v06.c | 3574 { size_t const frameHeaderSize = ZSTDv06_frameHeaderSize(src, ZSTDv06_frameHeaderSize_min); in ZSTDv06_decompressFrame() local 3575 if (ZSTDv06_isError(frameHeaderSize)) return frameHeaderSize; in ZSTDv06_decompressFrame() 3576 if (srcSize < frameHeaderSize+ZSTDv06_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv06_decompressFrame() 3577 … if (ZSTDv06_decodeFrameHeader(dctx, src, frameHeaderSize)) return ERROR(corruption_detected); in ZSTDv06_decompressFrame() 3578 ip += frameHeaderSize; remainingSize -= frameHeaderSize; in ZSTDv06_decompressFrame() 3679 { size_t const frameHeaderSize = ZSTDv06_frameHeaderSize(src, srcSize); in ZSTDv06_findFrameSizeInfoLegacy() local 3680 if (ZSTDv06_isError(frameHeaderSize)) { in ZSTDv06_findFrameSizeInfoLegacy() 3681 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, frameHeaderSize); in ZSTDv06_findFrameSizeInfoLegacy() 3688 if (srcSize < frameHeaderSize+ZSTDv06_blockHeaderSize) { in ZSTDv06_findFrameSizeInfoLegacy() 3692 ip += frameHeaderSize; remainingSize -= frameHeaderSize; in ZSTDv06_findFrameSizeInfoLegacy()
|
D | zstd_v07.c | 3811 { size_t const frameHeaderSize = ZSTDv07_frameHeaderSize(src, ZSTDv07_frameHeaderSize_min); in ZSTDv07_decompressFrame() local 3812 if (ZSTDv07_isError(frameHeaderSize)) return frameHeaderSize; in ZSTDv07_decompressFrame() 3813 if (srcSize < frameHeaderSize+ZSTDv07_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv07_decompressFrame() 3814 … if (ZSTDv07_decodeFrameHeader(dctx, src, frameHeaderSize)) return ERROR(corruption_detected); in ZSTDv07_decompressFrame() 3815 ip += frameHeaderSize; remainingSize -= frameHeaderSize; in ZSTDv07_decompressFrame() 3929 { size_t const frameHeaderSize = ZSTDv07_frameHeaderSize(src, srcSize); in ZSTDv07_findFrameSizeInfoLegacy() local 3930 if (ZSTDv07_isError(frameHeaderSize)) { in ZSTDv07_findFrameSizeInfoLegacy() 3931 ZSTD_errorFrameSizeInfoLegacy(cSize, dBound, frameHeaderSize); in ZSTDv07_findFrameSizeInfoLegacy() 3938 if (srcSize < frameHeaderSize+ZSTDv07_blockHeaderSize) { in ZSTDv07_findFrameSizeInfoLegacy() 3942 ip += frameHeaderSize; remainingSize -= frameHeaderSize; in ZSTDv07_findFrameSizeInfoLegacy()
|
D | zstd_v05.c | 3434 { size_t frameHeaderSize; in ZSTDv05_decompress_continueDCtx() local 3436 frameHeaderSize = ZSTDv05_decodeFrameHeader_Part1(dctx, src, ZSTDv05_frameHeaderSize_min); in ZSTDv05_decompress_continueDCtx() 3437 if (ZSTDv05_isError(frameHeaderSize)) return frameHeaderSize; in ZSTDv05_decompress_continueDCtx() 3438 if (srcSize < frameHeaderSize+ZSTDv05_blockHeaderSize) return ERROR(srcSize_wrong); in ZSTDv05_decompress_continueDCtx() 3439 ip += frameHeaderSize; remainingSize -= frameHeaderSize; in ZSTDv05_decompress_continueDCtx() 3440 frameHeaderSize = ZSTDv05_decodeFrameHeader_Part2(dctx, src, frameHeaderSize); in ZSTDv05_decompress_continueDCtx() 3441 if (ZSTDv05_isError(frameHeaderSize)) return frameHeaderSize; in ZSTDv05_decompress_continueDCtx()
|
/external/zstd/lib/decompress/ |
D | zstd_decompress.c | 636 { size_t const frameHeaderSize = ZSTD_frameHeaderSize_internal( in ZSTD_decompressFrame() local 638 if (ZSTD_isError(frameHeaderSize)) return frameHeaderSize; in ZSTD_decompressFrame() 639 RETURN_ERROR_IF(remainingSrcSize < frameHeaderSize+ZSTD_blockHeaderSize, in ZSTD_decompressFrame() 641 FORWARD_IF_ERROR( ZSTD_decodeFrameHeader(dctx, ip, frameHeaderSize) , ""); in ZSTD_decompressFrame() 642 ip += frameHeaderSize; remainingSrcSize -= frameHeaderSize; in ZSTD_decompressFrame()
|
/external/zstd/lib/compress/ |
D | zstd_compress.c | 4903 size_t frameHeaderSize = 0; in ZSTD_compressSequences() local 4910 …frameHeaderSize = ZSTD_writeFrameHeader(op, dstCapacity, &cctx->appliedParams, srcSize, cctx->dict… in ZSTD_compressSequences() 4911 op += frameHeaderSize; in ZSTD_compressSequences() 4912 dstCapacity -= frameHeaderSize; in ZSTD_compressSequences() 4913 cSize += frameHeaderSize; in ZSTD_compressSequences()
|