Lines Matching defs:size
26 // ADTS header size is 7, but frame size information ends on byte 6 (when counting from byte 1)
30 * Returns the size of an AAC ADTS frame.
31 * Note that if the returned value + offset > size, it means that a partial frame starts at that
32 * offset, but this function will still return the size of the full frame.
35 * @param size the size in bytes of the data block starting at data
36 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given
39 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) {
42 if (!(offset + ADTS_HEADER_SIZE_UP_TO_FRAMESIZE < (off64_t) size)) {
58 // the frame size read already contains the size of the header, so no need to add it here
78 * @param size the size in bytes of the data block to validate
84 SLresult AacBqToPcmCbRenderer::validateBufferStartEndOnFrameBoundaries(void* data, size_t size)
89 if ((NULL == data) || (size == 0)) {
94 while (offset < (off64_t) size) {
95 if ((frameSize = getAdtsFrameSize((uint8_t *)data, offset, size)) == 0) {
96 SL_LOGE("found ADTS frame of size 0 at offset %lld", (long long) offset);
101 if (offset > (off64_t) size) {
106 if (offset != (off64_t) size) {
109 assert(offset == (off64_t) size);