Lines Matching defs:nalSize
361 uint8_t *inBuffer, uint32_t bufSize, uint32_t *nalSize,
389 *nalSize = bufSize - pos;
447 *nalSize = bufSize - dataRemaining - *nalOffset - 3;
451 *nalSize = bufSize - *nalOffset;
460 uint32_t nalSize = 0;
476 nalType = nalSize = nalOffset = 0;
477 ret = getOneNALUnit(buf, bufSize, &nalSize, &nalType, &nalOffset, status);
480 LOG_V("NAL type = %d, NAL size = %d, offset = %d\n", nalType, nalSize, nalOffset);
481 size = nalSize + nalOffset;
537 uint32_t nalSize = 0;
545 mCurSegment->size - mOffsetInSeg, &nalSize, &nalType, &nalOffset, mCurSegment->status);
550 sizeToBeCopied = nalSize + nalOffset;
552 sizeToBeCopied = nalSize;
563 mOffsetInSeg += (nalSize + nalOffset);
595 uint32_t nalSize = 0;
611 mCurSegment->size - mOffsetInSeg, &nalSize, &nalType, &nalOffset, mCurSegment->status);
614 if (nalSize + 4 <= outBuffer->bufferSize - sizeCopiedHere) {
616 outBuffer->data[sizeCopiedHere] = (nalSize >> 24) & 0xff;
617 outBuffer->data[sizeCopiedHere + 1] = (nalSize >> 16) & 0xff;
618 outBuffer->data[sizeCopiedHere + 2] = (nalSize >> 8) & 0xff;
619 outBuffer->data[sizeCopiedHere + 3] = nalSize & 0xff;
625 (uint8_t *)mCurSegment->buf + mOffsetInSeg + nalOffset, nalSize);
627 sizeCopiedHere += nalSize;
628 mTotalSizeCopied += nalSize;
629 mOffsetInSeg += (nalSize + nalOffset);
664 uint32_t nalSize = 0;
682 mCurSegment->size - mOffsetInSeg, &nalSize, &nalType, &nalOffset, mCurSegment->status);
685 if (nalSize + 4 <= outBuffer->bufferSize - NALUINFO_OFFSET - sizeCopiedHere) {
688 (uint8_t *)mCurSegment->buf + mOffsetInSeg, nalSize + nalOffset);
690 sizeCopiedHere += nalSize + nalOffset;
691 mTotalSizeCopied += nalSize + nalOffset;
692 mOffsetInSeg += (nalSize + nalOffset);
707 *nalLength = nalSize + nalOffset;