Lines Matching refs:naluStream

422 Decode_Status VideoDecoderAVCSecure::copyNaluHeader(uint8_t *stream, NaluByteStream *naluStream) {  in copyNaluHeader()  argument
426 naluType = *(uint8_t *)(stream + naluStream->naluOffset); in copyNaluHeader()
431 naluHeaderLen = min(naluStream->naluLen, MAX_SLICE_HEADER_SIZE); in copyNaluHeader()
434 naluHeaderLen = naluStream->naluLen; in copyNaluHeader()
439 …memcpy(naluStream->byteStream + naluStream->streamPos, &(naluStream->naluOffset), sizeof(int32_t)); in copyNaluHeader()
440 naluStream->streamPos += 4; in copyNaluHeader()
442 memcpy(naluStream->byteStream + naluStream->streamPos, &(naluStream->naluLen), sizeof(int32_t)); in copyNaluHeader()
443 naluStream->streamPos += 4; in copyNaluHeader()
445 memcpy(naluStream->byteStream + naluStream->streamPos, &naluHeaderLen, sizeof(int32_t)); in copyNaluHeader()
446 naluStream->streamPos += 4; in copyNaluHeader()
449 …memcpy(naluStream->byteStream + naluStream->streamPos, (uint8_t*)(stream + naluStream->naluOffset)… in copyNaluHeader()
450 naluStream->streamPos += naluHeaderLen; in copyNaluHeader()
457 …oDecoderAVCSecure::parseAnnexBStream(uint8_t *stream, int32_t length, NaluByteStream *naluStream) { in parseAnnexBStream() argument
467 naluStream->streamPos = 4; in parseAnnexBStream()
468 naluStream->naluCount = 0; in parseAnnexBStream()
469 memset(naluStream->byteStream, 0, MAX_NALU_HEADER_BUFFER); in parseAnnexBStream()
477 if (naluStream->naluCount == 0) { in parseAnnexBStream()
478 naluStream->naluOffset = naluOffset; in parseAnnexBStream()
480 naluStream->naluLen = naluOffset - naluStream->naluOffset - STARTCODE_PREFIX_LEN; in parseAnnexBStream()
481 ret = copyNaluHeader(stream, naluStream); in parseAnnexBStream()
487 naluStream->naluOffset = naluOffset; in parseAnnexBStream()
491 naluStream->naluCount++; in parseAnnexBStream()
499 if (naluStream->naluCount > 0) { in parseAnnexBStream()
500 naluStream->naluLen = length - naluStream->naluOffset; in parseAnnexBStream()
501 memcpy(naluStream->byteStream, &(naluStream->naluCount), sizeof(int32_t)); in parseAnnexBStream()
503 copyNaluHeader(stream, naluStream); in parseAnnexBStream()