Home
last modified time | relevance | path

Searched refs:csdBuf (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/module/foundation/
DOpusHeader.cpp314 uint8_t *csdBuf = (uint8_t *)data + i; in GetOpusHeaderBuffers() local
315 if (!memcmp(csdBuf, AOPUS_CSD_OPUS_HEADER_MARKER, AOPUS_MARKER_SIZE)) { in GetOpusHeaderBuffers()
317 memcpy(&value, csdBuf + AOPUS_MARKER_SIZE, sizeof(value)); in GetOpusHeaderBuffers()
327 *opusHeadBuf = csdBuf + AOPUS_MARKER_SIZE + AOPUS_LENGTH_SIZE; in GetOpusHeaderBuffers()
330 } else if (!memcmp(csdBuf, AOPUS_CSD_CODEC_DELAY_MARKER, AOPUS_MARKER_SIZE)) { in GetOpusHeaderBuffers()
332 memcpy(&value, csdBuf + AOPUS_MARKER_SIZE, sizeof(value)); in GetOpusHeaderBuffers()
342 *codecDelayBuf = csdBuf + AOPUS_MARKER_SIZE + AOPUS_LENGTH_SIZE; in GetOpusHeaderBuffers()
344 } else if (!memcmp(csdBuf, AOPUS_CSD_SEEK_PREROLL_MARKER, AOPUS_MARKER_SIZE)) { in GetOpusHeaderBuffers()
346 memcpy(&value, csdBuf + AOPUS_MARKER_SIZE, sizeof(value)); in GetOpusHeaderBuffers()
356 *seekPreRollBuf = csdBuf + AOPUS_MARKER_SIZE + AOPUS_LENGTH_SIZE; in GetOpusHeaderBuffers()
/frameworks/av/media/libstagefright/tests/writer/
DWriterTest.cpp384 void *csdBuf; in extract() local
386 csdBuf = nullptr; in extract()
390 bool csdFound = AMediaFormat_getBuffer(format, csdName, &csdBuf, &csdSize); in extract()
391 if (!csdFound || !csdBuf || !csdSize) break; in extract()
394 memcpy(buffer + bufferOffset, csdBuf, csdSize); in extract()