Lines Matching refs:headerLen
201 int headerLen = 0; in WriteOpusHeaders() local
216 memcpy(output + headerLen, AOPUS_CSD_OPUS_HEADER_MARKER, AOPUS_MARKER_SIZE); in WriteOpusHeaders()
217 headerLen += AOPUS_MARKER_SIZE; in WriteOpusHeaders()
220 headerLen += AOPUS_LENGTH_SIZE; in WriteOpusHeaders()
222 int headerSize = WriteOpusHeader(header, inputSampleRate, output + headerLen, in WriteOpusHeaders()
223 outputSize - headerLen); in WriteOpusHeaders()
228 headerLen += headerSize; in WriteOpusHeaders()
246 if (headerLen > (outputSize - AOPUS_MARKER_SIZE - AOPUS_LENGTH_SIZE - length)) { in WriteOpusHeaders()
251 memcpy(output + headerLen, AOPUS_CSD_CODEC_DELAY_MARKER, AOPUS_MARKER_SIZE); in WriteOpusHeaders()
252 headerLen += AOPUS_MARKER_SIZE; in WriteOpusHeaders()
253 memcpy(output + headerLen, &length, AOPUS_LENGTH_SIZE); in WriteOpusHeaders()
254 headerLen += AOPUS_LENGTH_SIZE; in WriteOpusHeaders()
255 memcpy(output + headerLen, &codecDelay, length); in WriteOpusHeaders()
256 headerLen += length; in WriteOpusHeaders()
259 if (headerLen > (outputSize - AOPUS_MARKER_SIZE - AOPUS_LENGTH_SIZE - length)) { in WriteOpusHeaders()
264 memcpy(output + headerLen, AOPUS_CSD_SEEK_PREROLL_MARKER, AOPUS_MARKER_SIZE); in WriteOpusHeaders()
265 headerLen += AOPUS_MARKER_SIZE; in WriteOpusHeaders()
266 memcpy(output + headerLen, &length, AOPUS_LENGTH_SIZE); in WriteOpusHeaders()
267 headerLen += AOPUS_LENGTH_SIZE; in WriteOpusHeaders()
268 memcpy(output + headerLen, &seekPreRoll, length); in WriteOpusHeaders()
269 headerLen += length; in WriteOpusHeaders()
271 return headerLen; in WriteOpusHeaders()