Lines Matching refs:newhead
186 decode_header(PMPSTR mp, struct frame *fr, unsigned long newhead)
190 if (newhead & (1 << 20)) {
191 fr->lsf = (newhead & (1 << 19)) ? 0x0 : 0x1;
200 fr->lay = 4 - ((newhead >> 17) & 3);
206 if (((newhead >> 10) & 0x3) == 0x3) {
211 fr->sampling_frequency = 6 + ((newhead >> 10) & 0x3);
214 fr->sampling_frequency = ((newhead >> 10) & 0x3) + (fr->lsf * 3);
216 fr->error_protection = ((newhead >> 16) & 0x1) ^ 0x1;
219 fr->bitrate_index = ((newhead >> 12) & 0xf);
221 fr->bitrate_index = ((newhead >> 12) & 0xf);
222 fr->padding = ((newhead >> 9) & 0x1);
223 fr->extension = ((newhead >> 8) & 0x1);
224 fr->mode = ((newhead >> 6) & 0x3);
225 fr->mode_ext = ((newhead >> 4) & 0x3);
226 fr->copyright = ((newhead >> 3) & 0x1);
227 fr->original = ((newhead >> 2) & 0x1);
228 fr->emphasis = newhead & 0x3;