Lines Matching defs:byte

1138                 int byte = bytestream2_get_byteu(&gb);
1139 samples[m ] = adpcm_ima_qt_expand_nibble(cs, byte & 0x0F);
1140 samples[m + 1] = adpcm_ima_qt_expand_nibble(cs, byte >> 4 );
1250 int byte = bytestream2_get_byteu(&gb);
1251 *samples++ = adpcm_ms_expand_nibble(&c->status[channel], byte >> 4 );
1252 *samples++ = adpcm_ms_expand_nibble(&c->status[channel], byte & 0x0F);
1289 int byte = bytestream2_get_byteu(&gb);
1290 *samples++ = adpcm_ms_expand_nibble(&c->status[0 ], byte >> 4 );
1291 *samples++ = adpcm_ms_expand_nibble(&c->status[st], byte & 0x0F);
1520 int byte[2];
1522 byte[0] = bytestream2_get_byteu(&gb);
1524 byte[1] = bytestream2_get_byteu(&gb);
1526 *samples++ = adpcm_ima_expand_nibble(&c->status[channel], byte[channel] & 0x0F, 3);
1529 *samples++ = adpcm_ima_expand_nibble(&c->status[channel], byte[channel] >> 4 , 3);
1571 * 2324 byte per sector XA; the remainder is padding */
1593 int byte = bytestream2_get_byteu(&gb);
1594 *samples++ = adpcm_ima_expand_nibble(&c->status[0], byte >> 4, 3);
1595 *samples++ = adpcm_ima_expand_nibble(&c->status[st], byte & 0x0F, 3);
1600 int byte = bytestream2_get_byteu(&gb);
1601 *samples++ = adpcm_ima_expand_nibble(&c->status[0], byte >> 4, 6);
1602 *samples++ = adpcm_ima_expand_nibble(&c->status[st], byte & 0x0F, 6);
1612 /* Each EA ADPCM frame has a 12-byte header followed by 30-byte pieces,
1624 int byte = bytestream2_get_byteu(&gb);
1625 coeff1l = ea_adpcm_table[ byte >> 4 ];
1626 coeff2l = ea_adpcm_table[(byte >> 4 ) + 4];
1627 coeff1r = ea_adpcm_table[ byte & 0x0F];
1628 coeff2r = ea_adpcm_table[(byte & 0x0F) + 4];
1630 byte = bytestream2_get_byteu(&gb);
1631 shift_left = 20 - (byte >> 4);
1632 shift_right = 20 - (byte & 0x0F);
1635 byte = bytestream2_get_byteu(&gb);
1636 next_left_sample = sign_extend(byte >> 4, 4) * (1 << shift_left);
1637 next_right_sample = sign_extend(byte, 4) * (1 << shift_right);
1661 int byte = bytestream2_get_byteu(&gb);
1663 coeff[channel][i] = ea_adpcm_table[(byte >> 4) + 4*i];
1664 shift[channel] = 20 - (byte & 0x0F);
1667 int byte[2];
1669 byte[0] = bytestream2_get_byteu(&gb);
1670 if (st) byte[1] = bytestream2_get_byteu(&gb);
1673 int sample = sign_extend(byte[channel] >> i, 4) * (1 << shift[channel]);
1721 int byte = bytestream2_get_byte(&gb);
1722 if (byte == 0xEE) { /* only seen in R2 and R3 */
1729 coeff1 = ea_adpcm_table[ byte >> 4 ];
1730 coeff2 = ea_adpcm_table[(byte >> 4) + 4];
1731 shift = 20 - (byte & 0x0F);
1735 next_sample = (unsigned)sign_extend(byte, 4) << shift;
1737 byte = bytestream2_get_byte(&gb);
1738 next_sample = (unsigned)sign_extend(byte >> 4, 4) << shift;
1788 int byte = bytestream2_get_byteu(&gb);
1790 level = sign_extend(byte >> 4, 4) * (1 << shift[n]);
1794 level = sign_extend(byte, 4) * (1 << shift[n]);
1813 int byte = bytestream2_get_byteu(&gb);
1814 *samples++ = adpcm_ima_expand_nibble(&c->status[0], byte & 0x0F, 3);
1815 *samples++ = adpcm_ima_expand_nibble(&c->status[st], byte >> 4, 3);
1890 /* the first byte is a raw sample */
1899 int byte = bytestream2_get_byteu(&gb);
1901 byte >> 4, 4, 0);
1903 byte & 0x0F, 4, 0);
1907 int byte = bytestream2_get_byteu(&gb);
1909 byte >> 5 , 3, 0);
1911 (byte >> 2) & 0x07, 3, 0);
1913 byte & 0x03, 2, 0);
1917 int byte = bytestream2_get_byteu(&gb);
1919 byte >> 6 , 2, 2);
1921 (byte >> 4) & 0x03, 2, 2);
1923 (byte >> 2) & 0x03, 2, 2);
1925 byte & 0x03, 2, 2);
1971 int byte = bytestream2_get_byteu(&gb);
1972 int scale = 1 << (byte >> 4);
1973 int index = byte & 0xf;
1982 sampledat = sign_extend(byte, 4);
1984 byte = bytestream2_get_byteu(&gb);
1985 sampledat = sign_extend(byte >> 4, 4);
2047 int byte = bytestream2_get_byteu(&gb);
2048 int index = (byte >> 4) & 7;
2049 unsigned int exp = byte & 0x0F;
2058 sampledat = sign_extend(byte, 4);
2060 byte = bytestream2_get_byteu(&gb);
2061 sampledat = sign_extend(byte >> 4, 4);
2081 int byte, header;
2107 byte = bytestream2_get_byteu(&gb);
2109 sampledat = sign_extend(byte, 4);
2111 sampledat = sign_extend(byte >> 4, 4);
2132 int filter, shift, flag, byte;
2146 scale = sign_extend(byte >> 4, 4);
2148 byte = bytestream2_get_byteu(&gb);
2149 scale = sign_extend(byte, 4);
2173 * Format of the control byte:
2189 /* Get the control byte and decode the samples, 2 at a time. */