39 #define IS_MARKER(state, i, buf, buf_size) \
40 ((state == DCA_MARKER_14B_LE && (i < buf_size-2) && (buf[i+1] & 0xF0) == 0xF0 && buf[i+2] == 0x07) \
41 || (state == DCA_MARKER_14B_BE && (i < buf_size-2) && buf[i+1] == 0x07 && (buf[i+2] & 0xF0) == 0xF0) \
42 || state == DCA_MARKER_RAW_LE || state == DCA_MARKER_RAW_BE || state == DCA_HD_MARKER)
60 for (i = 0; i < buf_size; i++) {
61 state = (state << 8) | buf[i];
72 for (; i < buf_size; i++) {
74 state = (state << 8) | buf[i];
109 const uint16_t *ssrc = (
const uint16_t *) src;
110 uint16_t *sdst = (uint16_t *) dst;
113 if ((
unsigned) src_size > (unsigned) max_size)
119 memcpy(dst, src, src_size);
122 for (i = 0; i < (src_size + 1) >> 1; i++)
128 for (i = 0; i < (src_size + 1) >> 1; i++, src += 2) {
144 int ret, sample_blocks, sr_code;
155 sample_blocks =
get_bits(&gb, 7) + 1;
156 if (sample_blocks < 8)
158 *duration = 256 * (sample_blocks / 8);
163 if (*sample_rate == 0)
171 const uint8_t ** poutbuf,
int *poutbuf_size,
172 const uint8_t * buf,
int buf_size)
198 *poutbuf_size = buf_size;