• Home
  • Raw
  • Download

Lines Matching refs:outBuffer

458 Encode_Status VideoEncoderBase::getOutput(VideoEncOutputBuffer *outBuffer, uint32_t timeout) {  in getOutput()  argument
464 CHECK_NULL_RETURN_IFFAIL(outBuffer); in getOutput()
543 ret = prepareForOutput(outBuffer, &useLocalBuffer); in getOutput()
547 outBuffer->offset = 0; in getOutput()
548 outBuffer->flag = mCurOutputTask->flag; in getOutput()
549 outBuffer->type = mCurOutputTask->type; in getOutput()
550 outBuffer->timeStamp = mCurOutputTask->timestamp; in getOutput()
551 outBuffer->priv = mCurOutputTask->priv; in getOutput()
553 if (outBuffer->format == OUTPUT_EVERYTHING || outBuffer->format == OUTPUT_FRAME_DATA) { in getOutput()
554 ret = outputAllData(outBuffer); in getOutput()
557 ret = getExtFormatOutput(outBuffer); in getOutput()
561 LOG_V("out size for this getOutput call = %d\n", outBuffer->dataSize); in getOutput()
572 if (outBuffer->data && (useLocalBuffer == true)) { in getOutput()
573 delete[] outBuffer->data; in getOutput()
574 outBuffer->data = NULL; in getOutput()
676 VideoEncOutputBuffer *outBuffer, bool *useLocalBuffer) { in prepareForOutput() argument
734 if (outBuffer->data == NULL) { in prepareForOutput()
736 outBuffer->data = new uint8_t[mTotalSize - mTotalSizeCopied + 100]; in prepareForOutput()
737 if (outBuffer->data == NULL) { in prepareForOutput()
741 outBuffer->bufferSize = mTotalSize + 100; in prepareForOutput()
742 outBuffer->dataSize = 0; in prepareForOutput()
746 outBuffer->flag = 0; in prepareForOutput()
747 if (mSliceSizeOverflow) outBuffer->flag |= ENCODE_BUFFERFLAG_SLICEOVERFOLOW; in prepareForOutput()
764 outBuffer->flag |= ENCODE_BUFFERFLAG_DATAINVALID; in prepareForOutput()
765 outBuffer->dataSize = 0; in prepareForOutput()
872 Encode_Status VideoEncoderBase::outputAllData(VideoEncOutputBuffer *outBuffer) { in outputAllData() argument
878 CHECK_NULL_RETURN_IFFAIL(outBuffer->data); in outputAllData()
884 outBuffer->bufferSize, sizeCopiedHere, mTotalSizeCopied); in outputAllData()
886 if (mCurSegment->size < mOffsetInSeg || outBuffer->bufferSize < sizeCopiedHere) { in outputAllData()
891 if ((mCurSegment->size - mOffsetInSeg) <= outBuffer->bufferSize - sizeCopiedHere) { in outputAllData()
893 memcpy(outBuffer->data + sizeCopiedHere, in outputAllData()
899 sizeToBeCopied = outBuffer->bufferSize - sizeCopiedHere; in outputAllData()
900 memcpy(outBuffer->data + sizeCopiedHere, in outputAllData()
901 … (uint8_t *)mCurSegment->buf + mOffsetInSeg, outBuffer->bufferSize - sizeCopiedHere); in outputAllData()
904 outBuffer->dataSize = outBuffer->bufferSize; in outputAllData()
905 outBuffer->remainingSize = mTotalSize - mTotalSizeCopied; in outputAllData()
906 outBuffer->flag |= ENCODE_BUFFERFLAG_PARTIALFRAME; in outputAllData()
911 outBuffer->dataSize = sizeCopiedHere; in outputAllData()
912 outBuffer->remainingSize = 0; in outputAllData()
913 outBuffer->flag |= ENCODE_BUFFERFLAG_ENDOFFRAME; in outputAllData()