Lines Matching refs:data
32 * @param data pointer to the compressed audio data
33 * @param offset offset in bytes relative to data of where the frame is supposed to start
34 * @param size the size in bytes of the data block starting at data
38 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) {
47 const uint8_t *syncword = data + offset;
53 const uint8_t protectionAbsent = data[offset+1] & 0x1;
55 const uint8_t* header = data + offset + 3;
76 * @param data pointer to the compressed audio data
77 * @param size the size in bytes of the data block to validate
78 * @return SL_RESULT_SUCCESS if there is AAC ADTS data, and it starts and ends on frame boundaries,
83 SLresult AacBqToPcmCbRenderer::validateBufferStartEndOnFrameBoundaries(void* data, size_t size)
88 if ((NULL == data) || (size == 0)) {
94 if ((frameSize = getAdtsFrameSize((uint8_t *)data, offset, size)) == 0) {
101 SL_LOGE("found incomplete ADTS frame at end of data");
148 // only decoding a single track of data
207 // The data source, and audio source (a decoder) are ready to be used