Lines Matching refs:bs

302                                   HANDLE_FDK_BITSTREAM bs )  in parseExcludedChannels()  argument
309 if (FDKreadBits(bs,1)) { in parseExcludedChannels()
315 while (FDKreadBits(bs,1)) { in parseExcludedChannels()
317 if (FDKreadBits(bs,1)) { in parseExcludedChannels()
341 HANDLE_FDK_BITSTREAM bs, in aacDecoder_drcMarkPayload() argument
351 bsStartPos = FDKgetValidBits(bs); in aacDecoder_drcMarkPayload()
358 if (FDKreadBits(bs,1)) { /* pce_tag_present */ in aacDecoder_drcMarkPayload()
359 FDKreadBits(bs,8); /* pce_instance_tag + drc_tag_reserved_bits */ in aacDecoder_drcMarkPayload()
363 if (FDKreadBits(bs,1)) { /* excluded_chns_present */ in aacDecoder_drcMarkPayload()
364 FDKreadBits(bs,7); /* exclude mask [0..7] */ in aacDecoder_drcMarkPayload()
366 while (FDKreadBits(bs,1)) { /* additional_excluded_chns */ in aacDecoder_drcMarkPayload()
367 FDKreadBits(bs,7); /* exclude mask [x..y] */ in aacDecoder_drcMarkPayload()
372 if (FDKreadBits(bs,1)) { /* drc_bands_present */ in aacDecoder_drcMarkPayload()
373 numBands += FDKreadBits(bs, 4); /* drc_band_incr */ in aacDecoder_drcMarkPayload()
374 FDKreadBits(bs,4); /* reserved */ in aacDecoder_drcMarkPayload()
377 FDKreadBits(bs,8); /* drc_band_top[i] */ in aacDecoder_drcMarkPayload()
382 if (FDKreadBits(bs,1)) { /* prog_ref_level_present */ in aacDecoder_drcMarkPayload()
383 FDKreadBits(bs,8); /* prog_ref_level + prog_ref_level_reserved_bits */ in aacDecoder_drcMarkPayload()
388 FDKreadBits(bs,8); /* dyn_rng_sgn[i] + dyn_rng_ctl[i] */ in aacDecoder_drcMarkPayload()
393 && ((INT)FDKgetValidBits(bs) >= 0) ) in aacDecoder_drcMarkPayload()
403 if (FDKreadBits(bs, 8) == DVB_ANC_DATA_SYNC_BYTE) in aacDecoder_drcMarkPayload()
409 …FDKreadBits(bs, 8); /* mpeg_audio_type, dolby_surround_mode, presentation… in aacDecoder_drcMarkPayload()
413 FDKreadBits(bs, 3); /* reserved, set to 0 */ in aacDecoder_drcMarkPayload()
414 dmxLevelsPresent = FDKreadBits(bs, 1); /* downmixing_levels_MPEG4_status */ in aacDecoder_drcMarkPayload()
415 FDKreadBits(bs, 1); /* reserved, set to 0 */ in aacDecoder_drcMarkPayload()
416 compressionPresent = FDKreadBits(bs, 1); /* audio_coding_mode_and_compression status */ in aacDecoder_drcMarkPayload()
417 coarseGrainTcPresent = FDKreadBits(bs, 1); /* coarse_grain_timecode_status */ in aacDecoder_drcMarkPayload()
418 fineGrainTcPresent = FDKreadBits(bs, 1); /* fine_grain_timecode_status */ in aacDecoder_drcMarkPayload()
423 FDKreadBits(bs, 8); /* downmixing_levels_MPEG4 */ in aacDecoder_drcMarkPayload()
428 FDKreadBits(bs, 16); /* audio_coding_mode, Compression_value */ in aacDecoder_drcMarkPayload()
433 FDKreadBits(bs, 16); /* coarse_grain_timecode */ in aacDecoder_drcMarkPayload()
438 FDKreadBits(bs, 16); /* fine_grain_timecode */ in aacDecoder_drcMarkPayload()
442 && ((INT)FDKgetValidBits(bs) >= 0) ) in aacDecoder_drcMarkPayload()
468 HANDLE_FDK_BITSTREAM bs, in aacDecoder_drcParse() argument
475 FDKpushBiDirectional(bs, FDKgetValidBits(bs)-payloadPosition); in aacDecoder_drcParse()
478 if (FDKreadBits(bs,1)) in aacDecoder_drcParse()
480 pDrcBs->pceInstanceTag = FDKreadBits(bs, 4); /* pce_instance_tag */ in aacDecoder_drcParse()
482 FDKreadBits(bs, 4); /* drc_tag_reserved_bits */ in aacDecoder_drcParse()
488 if (FDKreadBits(bs,1)) { /* excluded_chns_present */ in aacDecoder_drcParse()
490 bitCnt += parseExcludedChannels(&pDrcBs->excludedChnsMask, bs); in aacDecoder_drcParse()
496 if (FDKreadBits(bs,1)) /* drc_bands_present */ in aacDecoder_drcParse()
499 numBands += FDKreadBits(bs, 4); /* drc_band_incr */ in aacDecoder_drcParse()
500 pDrcBs->channelData.drcInterpolationScheme = FDKreadBits(bs, 4); /* drc_interpolation_scheme */ in aacDecoder_drcParse()
505 pDrcBs->channelData.bandTop[i] = FDKreadBits(bs, 8); /* drc_band_top[i] */ in aacDecoder_drcParse()
515 if (FDKreadBits(bs,1)) /* prog_ref_level_present */ in aacDecoder_drcParse()
517 pDrcBs->progRefLevel = FDKreadBits(bs, 7); /* prog_ref_level */ in aacDecoder_drcParse()
518 FDKreadBits(bs, 1); /* prog_ref_level_reserved_bits */ in aacDecoder_drcParse()
526 pDrcBs->channelData.drcValue[i] = FDKreadBits(bs, 1) << 7; /* dyn_rng_sgn[i] */ in aacDecoder_drcParse()
527 pDrcBs->channelData.drcValue[i] |= FDKreadBits(bs, 7) & 0x7F; /* dyn_rng_ctl[i] */ in aacDecoder_drcParse()
550 HANDLE_FDK_BITSTREAM bs, in aacDecoder_drcReadCompression() argument
559 FDKpushBiDirectional(bs, FDKgetValidBits(bs)-payloadPosition); in aacDecoder_drcReadCompression()
562 if ( FDKgetValidBits(bs) < 24 ) { in aacDecoder_drcReadCompression()
567 if (FDKreadBits(bs, 8) != DVB_ANC_DATA_SYNC_BYTE) { in aacDecoder_drcReadCompression()
572 if (FDKreadBits(bs, 2) != 3) { /* mpeg_audio_type */ in aacDecoder_drcReadCompression()
576 FDKreadBits(bs, 2); /* dolby_surround_mode */ in aacDecoder_drcReadCompression()
577 pDrcBs->presMode = FDKreadBits(bs, 2); /* presentation_mode */ in aacDecoder_drcReadCompression()
578 FDKreadBits(bs, 1); /* stereo_downmix_mode */ in aacDecoder_drcReadCompression()
579 if (FDKreadBits(bs, 1) != 0) { /* reserved, set to 0 */ in aacDecoder_drcReadCompression()
584 if (FDKreadBits(bs, 3) != 0) { /* reserved, set to 0 */ in aacDecoder_drcReadCompression()
587 dmxLevelsPresent = FDKreadBits(bs, 1); /* downmixing_levels_MPEG4_status */ in aacDecoder_drcReadCompression()
588 extensionPresent = FDKreadBits(bs, 1); /* ancillary_data_extension_status; */ in aacDecoder_drcReadCompression()
589 compressionPresent = FDKreadBits(bs, 1); /* audio_coding_mode_and_compression status */ in aacDecoder_drcReadCompression()
590 coarseGrainTcPresent = FDKreadBits(bs, 1); /* coarse_grain_timecode_status */ in aacDecoder_drcReadCompression()
591 fineGrainTcPresent = FDKreadBits(bs, 1); /* fine_grain_timecode_status */ in aacDecoder_drcReadCompression()
595 FDKreadBits(bs, 8); /* downmixing_levels_MPEG4 */ in aacDecoder_drcReadCompression()
605 if ( FDKreadBits(bs, 7) != 0 ) { /* The reserved bits shall be set to "0". */ in aacDecoder_drcReadCompression()
608 compressionOn = (UCHAR)FDKreadBits(bs, 1); /* compression_on */ in aacDecoder_drcReadCompression()
609 compressionValue = (UCHAR)FDKreadBits(bs, 8); /* Compression_value */ in aacDecoder_drcReadCompression()
638 FDKreadBits(bs, 16); /* coarse_grain_timecode */ in aacDecoder_drcReadCompression()
642 FDKreadBits(bs, 16); /* fine_grain_timecode */ in aacDecoder_drcReadCompression()
650 FDKreadBits(bs, 1); /* reserved, set to 0 */ in aacDecoder_drcReadCompression()
651 if (FDKreadBits(bs, 1)) extBits += 8; /* ext_downmixing_levels_status */ in aacDecoder_drcReadCompression()
652 if (FDKreadBits(bs, 1)) extBits += 16; /* ext_downmixing_global_gains_status */ in aacDecoder_drcReadCompression()
653 if (FDKreadBits(bs, 1)) extBits += 8; /* ext_downmixing_lfe_level_status */ in aacDecoder_drcReadCompression()
655 FDKpushFor(bs, extBits - 4); /* skip the extension payload remainder. */ in aacDecoder_drcReadCompression()