亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? decode.c

?? ISO mp3 sources (distribution 10) Layer 1/2/3, C Source, 512 k Sources of the Mpeg 1,2 layer 1,2
?? C
?? 第 1 頁 / 共 5 頁
字號:
/********************************************************************** * ISO MPEG Audio Subgroup Software Simulation Group (1996) * ISO 13818-3 MPEG-2 Audio Multichannel Decoder * * $Id: decode.c 1.12 1997/01/17 04:26:01 rowlands Exp $ * * $Log: decode.c $ * Revision 1.12  1997/01/17 04:26:01  rowlands * Fixed base bitstream joint stereo bugs. * Fixed PCM output file cleanup bugs. * * Revision 1.11  1996/04/18 05:37:23  rowlands * Release following Florence meeting * * Revision 1.10  1996/02/12 07:13:06  rowlands * Release following Munich meeting * * Revision 1.9.1.4  1996/01/29  03:36:47  rowlands * Fixed problem with dynamic crosstalk in 2/2 configuration * Fixed bug in dynamic crosstalk for 3/1 configuration. * * Revision 1.9.1.1  1996/01/20  17:28:45  rowlands * Received from Ralf Schwalbe (Telekom FTZ) - includes prediction * * Revision 1.7.1.3  1995/08/14  08:12:10  tenkate * ML-LSF added Warner ten Kate 7/8/95 (Philips) * change "alloc" and "sblimit" into "alloc_ml" and * "sblimit_ml" where appropriate. * * Revision 1.7.1.1  1995/07/14  06:12:46  rowlands * Updated dynamic crosstalk from FTZ: revision FTZ_03 * * Revision 1.3.3.1  1995/06/16  08:00:46  rowlands * Input from Sang Wook Kim (Samsung AIT) * * Revision 1.3.2.1  1995/06/16  03:27:20  rowlands * Corrected prediction select syntax according to IS * Added dematrixing procedure 2. Corrected dematrix weighting values. * **********************************************************************//********************************************************************** *   date   programmers                comment                        * * 2/25/91  Douglas Wong        start of version 1.0 records          * * 3/06/91  Douglas Wong        rename setup.h to dedef.h             * *                              removed extraneous variables          * *                              removed window_samples (now part of   * *                              filter_samples)                       * * 3/07/91  Davis Pan           changed output file to "codmusic"     * * 5/10/91  Vish (PRISM)        Ported to Macintosh and Unix.         * *                              Incorporated new "out_fifo()" which   * *                              writes out last incomplete buffer.    * *                              Incorporated all AIFF routines which  * *                              are also compatible with SUN.         * *                              Incorporated user interface for       * *                              specifying sound file names.          * *                              Also incorporated user interface for  * *                              writing AIFF compatible sound files.  * * 27jun91  dpwe (Aware)        Added musicout and &sample_frames as  * *                              args to out_fifo (were glob refs).    * *                              Used new 'frame_params' struct.       * *                              Clean,simplify, track clipped output  * *                              and total bits/frame received.        * * 7/10/91  Earle Jennings      changed to floats to FLOAT            * *10/ 1/91  S.I. Sudharsanan,   Ported to IBM AIX platform.           * *          Don H. Lee,                                               * *          Peter W. Farrett                                          * *10/ 3/91  Don H. Lee          implemented CRC-16 error protection   * *                              newly introduced functions are        * *                              buffer_CRC and recover_CRC_error      * *                              Additions and revisions are marked    * *                              with "dhl" for clarity                * * 2/11/92  W. Joseph Carter    Ported new code to Macintosh.  Most   * *                              important fixes involved changing     * *                              16-bit ints to long or unsigned in    * *                              bit alloc routines for quant of 65535 * *                              and passing proper function args.     * *                              Removed "Other Joint Stereo" option   * *                              and made bitrate be total channel     * *                              bitrate, irrespective of the mode.    * *                              Fixed many small bugs & reorganized.  * ********************************************************************** *                                                                    * *                                                                    * *  MPEG/audio Phase 2 coding/decoding multichannel                   * *                                                                    * *  Version 1.0                                                       * *                                                                    * *  7/27/93        Susanne Ritscher,  IRT Munich                      * *                                                                    * *                  thanks to                                         * *                  Ralf Schwalbe,    Telekom FTZ Berlin              * *                  Heiko Purnhagen,  Uni Hannover                    * *                                                                    * *  Version 2.0                                                       * *                                                                    * *  8/27/93        Susanne Ritscher, IRT Munich                       * *                 Channel-Switching is working                       * *                                                                    * *  Version 2.1                                                       * *                                                                    * *  9/1/93         Susanne Ritscher,  IRT Munich                      * *                 all channels normalized                            * *                                                                    * *  Version 3.0                                                       * *                                                                    * *  06/16/94       Ralf Schwalbe, Telekom FTZ Berlin                  * *                 all sources and variables adapted due to MPEG-2 -  * *                 DIS from March 1994                                * *                  - dematrix and denormalize procedure              * *                  - new tc - allocation (0-7)                       * *                  - some new structures and variables as a basis    * *                    for further decoding modes                      * ********************************************************************** *								      * *  Version 1.0                                                       * *                                                                    * *  11/04/94       Ralf Schwalbe,  Telekom FTZ Berlin                 * *                  - decoding tc-allocation                          * *                  - some new subroutines, globale variables and     * *                    structures (important to handle the ext. bitst.)* *                  - changed all functions to ANSI-C funktion header * *		    - corrected some bugs to decode bitstreams > 512kB* *								      * *  Version 1.1                                                       * *                                                                    * *  12/07/94       Ralf Schwalbe,  Telekom FTZ Berlin                 * *                  - decoding extension bitstream                    * *                                                                    * *  Version 1.1.1                                                     * *                 Ralf Schwalbe, Telekom FTZ Berlin                  * *                  - fixed some bugs                                 * *                                                                    * *  Version 1.2                                                       * *                                                                    * *  6/21/95       Ralf Schwalbe, Deutsche Telekom FTZ Berlin          * *            	    - decoding dynamic crosstalk                      * *                  - decoding phantom center                         *  *                  - decoding MPEG1 compatible part only (stereo)    * *                  - corrected some settings and bugs                * *                                                                    *  *  7/12/95	  Ralf Schwalbe, Deutsche Telekom FTZ Berlin          * *		    - corrected dynamic crosstalk 		      * *		    - 3/2,3/1,3/0,2/1, channel configurations         * *                    are working                                     * *		  						      * * 10/31/95	  Ralf Schwalbe, Deutsche Telekom FTZ Berlin	      * *		    - decoding of LFE-channel is working  	      * *		    - corrected any settings and bugs		      * *		    - corrected table-switch for channel mode < 3/2   * *		      and tc-allocation / dyn-crosstalk		      * *		    - still a problem with compl. bitstream 18/19     * *								      *	 * 01/12/96	  Ralf Schwalbe, Deutsche Telekom TZ Darmstadt	      * *		    - decoder prediction installed		      * *		    - problem with compl. bitstream 19 solved,        * *                                                                    *          *  Version 2.0                                                       * *                                                                    * * 01/28/97       Frans de Bont, Philips Sound & Vision, Eindhoven    * *		    - simultaneous use of tc allocation and dynamic   * *		      crosstalk working for all configurations	      * *		    - prediction working for all configurations	      * *		    - layer 1 MC working			      * *		    - variable bit rate and extension bitstreams      * *		    - fully compliant to 13818-3.2                    * *                                                                    *				      *		     **********************************************************************//********************************************************************** *                                                                    * *  06/06/95       Yeon Bae Thomas Kim,  Samsung AIT                  * *                 ancillary data is working                          * *								      * **********************************************************************/ /*********************************************************************/#include        "common.h"#include        "decoder.h"/***************************************************************/*/* This module contains the core of the decoder ie all the/* computational routines. (Layer I and II only)/* Functions are common to both layer unless/* otherwise specified./*/***************************************************************//*****************************************************************/*/* The following routines decode the system information/*/****************************************************************//************************* Layer II  ****************************/void decode_info(Bit_stream *bs,		 frame_params *fr_ps){   layer *hdr = fr_ps->header;   hdr->version = get1bit (bs);   hdr->lay = 4 - getbits (bs, 2);   hdr->error_protection = !get1bit (bs); /* error protect. TRUE/FALSE */   hdr->bitrate_index = getbits (bs, 4);   hdr->sampling_frequency = getbits (bs, 2);   hdr->padding = get1bit (bs);   hdr->extension = get1bit (bs);   hdr->mode = getbits (bs, 2);   hdr->mode_ext = getbits (bs, 2);   hdr->copyright = get1bit (bs);   hdr->original = get1bit (bs);   hdr->emphasis = getbits (bs, 2);}/**********************************************************************//*																	  *//*  7.7.93 Susanne Ritscher Systeminformation for multi-channel       *//* 27.5.94 Ralf Schwalbe    Systeminformation and names due to		  *//*					MPEG 2 DIS from March 1994  */					                        /*								*//**********************************************************************/void mc_header(Bit_stream *bs,	       frame_params *fr_ps){   layer *hdr = fr_ps->header;   hdr->ext_bit_stream_present = get1bit (bs);   if( hdr->ext_bit_stream_present == 1)	hdr->n_ad_bytes =  getbits (bs, 8);   hdr->center = getbits (bs, 2);   hdr->surround = getbits (bs, 2);   hdr->lfe = get1bit (bs);   hdr->audio_mix = get1bit (bs);     /* large or small room  R.S. */   hdr->dematrix_procedure = getbits (bs, 2);   hdr->no_of_multi_lingual_ch = getbits (bs, 3);   hdr->multi_lingual_fs = get1bit (bs);   hdr->multi_lingual_layer = get1bit (bs);   hdr->copyright_ident_bit = get1bit (bs);   hdr->copyright_ident_start = get1bit (bs);}/* R.S. prediction table MPEG-2 IS November, 1995 *//* FdB  prediction table MPEG-2 CD 13818-3.2 March, 1996 */int pred_coef_table[6][16] = {{6,4,4,4,2,2,2,0,2,2,2,0,0,0,0,0},			      {4,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0},			      {2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},			      {4,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0},			      {2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},			      {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}};void mc_composite_status_info(Bit_stream *bs,			      frame_params *fr_ps, int tca_log, int dynx_log){   layer *hdr = fr_ps->header;   int sbgr, j, pci;   hdr->tc_sbgr_select = get1bit (bs);   hdr->dyn_cross_on = get1bit (bs);   hdr->mc_prediction_on = get1bit (bs);   if(hdr->tc_sbgr_select == 1)   {	hdr->tc_allocation = getbits (bs, fr_ps->alloc_bits);	/* tc_allocation is valid for all sbgr R.S. */	for(sbgr = 0; sbgr < 12; sbgr++)   		hdr->tc_alloc[sbgr] = hdr->tc_allocation;   }   else   {	hdr->tc_allocation = 0;	for(sbgr = 0; sbgr < 12; sbgr++)		hdr->tc_alloc[sbgr] = getbits (bs, fr_ps->alloc_bits);   }   if (tca_log)      for (sbgr = 0; sbgr < 12; sbgr++)	 printf ("tc_alloc[ %2d ] = %2d\n", sbgr, hdr->tc_alloc[sbgr]);   if( hdr->dyn_cross_on == 1)   {		hdr->dyn_cross_LR = get1bit (bs);		for(sbgr = 0; sbgr < 12; sbgr++)		{			hdr->dyn_cross_mode[sbgr] = getbits (bs, fr_ps->dyn_cross_bits);			/* 960816 FdB dyn_second_stereo added */			if (hdr->surround == 3)				hdr->dyn_second_stereo[sbgr] = get1bit (bs);		}   }   else   {		hdr->dyn_cross_LR = 0;		for(sbgr = 0; sbgr < 12; sbgr++)			hdr->dyn_cross_mode[sbgr] = 0;   }   if (dynx_log)      for (sbgr = 0; sbgr < 12; sbgr++)	 printf ("dynx_mod[ %2d ] = %2d\n", sbgr, hdr->dyn_cross_mode[sbgr]);   if( hdr->mc_prediction_on == 1)   {	  for(sbgr = 0; sbgr < 8; sbgr++) 	  {  		if( (hdr->mc_prediction[sbgr] = get1bit (bs)) == 1 )		{/* R.S. read from npredcoef-table max number of coef. for 3/2 configuration *//* and then the predsi info -> 0    : no prediction    *//*			    -> 1..3 : 1..3 coefficient */		    for(pci=0; pci< pred_coef_table[fr_ps->pred_mode][hdr->dyn_cross_mode[sbgr]] ; pci++)			hdr->mc_predsi[sbgr][pci] = getbits (bs, 2);		}	  }   }}#ifdef Augmentation_7chvoid mc_aug_composite_status_info (Bit_stream *bs, frame_params *fr_ps, int tca_log, int dynx_log){   layer *hdr = fr_ps->header;   int sbgr, j, pci;   hdr->aug_mtx_proc = getbits (bs, 2);   hdr->aug_dyn_cross_on = get1bit (bs);   hdr->aug_future_ext = get1bit (bs);   if(hdr->aug_mtx_proc == 0)   {	for(sbgr = 0; sbgr < 12; sbgr++)   		hdr->tc_aug_alloc[sbgr] = getbits (bs, 3);   }   else if(hdr->aug_mtx_proc == 1)   {	for(sbgr = 0; sbgr < 12; sbgr++)		hdr->tc_aug_alloc[sbgr] = getbits (bs, 2);   }   else	for(sbgr = 0; sbgr < 12; sbgr++)		hdr->tc_aug_alloc[sbgr] = 0;   if (tca_log)      for (sbgr = 0; sbgr < 12; sbgr++)	 printf ("tc_aug_alloc[ %2d ] = %2d\n", sbgr, hdr->tc_aug_alloc[sbgr]);   if( hdr->aug_dyn_cross_on == 1)   {	for(sbgr = 0; sbgr < 12; sbgr++)		hdr->dyn_cross_aug_mode[sbgr] = getbits (bs, 5);   }   else	for(sbgr = 0; sbgr < 12; sbgr++)		hdr->dyn_cross_aug_mode[sbgr] = 0;   if (dynx_log)      for (sbgr = 0; sbgr < 12; sbgr++)	 printf ("dynx_aug_mod[ %2d ] = %2d\n", sbgr, hdr->dyn_cross_aug_mode[sbgr]);}#endif/*******************************************************************/*/* The bit allocation information is decoded. Layer I/* has 4 bit per subband whereas Layer II is Ws and bit rate/* dependent./*/********************************************************************/void I_decode_bitalloc (Bit_stream   *bs,			frame_params *fr_ps,			unsigned int bit_alloc[7][SBLIMIT],				int	     bits_log){   int i,j;   int stereo  = fr_ps->stereo;   int sblimit = fr_ps->sblimit;   int jsbound = fr_ps->jsbound;   int b;   for (i=0;i<jsbound;i++)      for (j=0;j<stereo;j++)	 bit_alloc[j][i] = getbits (bs, 4);   for (i=jsbound; i<SBLIMIT; i++)   {      b = getbits (bs, 4);      for (j=0; j<stereo; j++)	 bit_alloc[j][i] = b;   }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜不卡在线观看免费| 日本不卡在线视频| 91丨九色丨国产丨porny| 国产精品电影院| 91丨porny丨首页| 亚洲综合偷拍欧美一区色| 欧美视频在线观看一区| 免费在线一区观看| 26uuu欧美日本| 不卡的看片网站| 一区二区三区在线免费观看| 欧美日韩黄色一区二区| 日本vs亚洲vs韩国一区三区二区| 欧美xxx久久| 91在线观看美女| 日日骚欧美日韩| 精品成a人在线观看| 波多野结衣在线一区| 亚洲永久精品国产| 日韩精品专区在线影院观看| 成人在线综合网| 亚洲午夜羞羞片| 久久久精品蜜桃| 一本一道久久a久久精品| 日韩不卡免费视频| 亚洲国产精品成人综合| 欧美日韩精品一区二区| 国产成人精品影视| 亚洲成人福利片| 欧美国产禁国产网站cc| 欧美日韩国产天堂| 成人深夜视频在线观看| 日韩av一级片| 亚洲视频一区二区在线| 欧美一卡2卡三卡4卡5免费| 盗摄精品av一区二区三区| 视频一区中文字幕| 自拍偷拍亚洲欧美日韩| 欧美大片顶级少妇| 欧美探花视频资源| 成a人片亚洲日本久久| 国内精品免费在线观看| 日韩高清一区在线| 亚洲精品你懂的| 欧美激情一区三区| 日韩欧美中文字幕制服| 欧美午夜片在线看| 菠萝蜜视频在线观看一区| 国产在线视视频有精品| 婷婷一区二区三区| 亚洲精品va在线观看| 国产日韩欧美精品一区| 精品捆绑美女sm三区| 制服丝袜激情欧洲亚洲| 欧美自拍偷拍午夜视频| 91在线国产福利| 国产.欧美.日韩| 国产一区二区按摩在线观看| 日本美女视频一区二区| 五月婷婷色综合| 亚洲国产日韩a在线播放性色| 日韩理论片网站| 国产精品超碰97尤物18| 国产亚洲一区二区三区四区 | 亚洲国产精品一区二区尤物区| 国产精品视频一二三区| 国产日韩欧美一区二区三区综合| 91精品综合久久久久久| 欧美视频日韩视频在线观看| 欧美影院精品一区| 欧美日韩一区高清| 3d成人h动漫网站入口| 欧美日韩一级视频| 91麻豆精品国产91久久久| 在线不卡免费欧美| 日韩一区二区精品在线观看| 欧美日韩www| 欧美日韩国产在线播放网站| 在线免费观看不卡av| 欧美自拍偷拍午夜视频| 欧美男生操女生| 欧美成人综合网站| 精品久久久久久亚洲综合网| 精品久久久久久久久久久久久久久久久| 7777精品伊人久久久大香线蕉完整版| 欧美精品日韩综合在线| 欧美精品色综合| 亚洲精品一区二区三区蜜桃下载| 精品国产伦一区二区三区观看体验 | 色八戒一区二区三区| 日本乱人伦一区| 欧美日韩在线观看一区二区| 欧美人牲a欧美精品| 欧美大片在线观看一区二区| 久久嫩草精品久久久精品一| 日本一二三不卡| 亚洲理论在线观看| 日日摸夜夜添夜夜添国产精品| 狠狠色狠狠色综合日日91app| 国产精品一区三区| 不卡视频在线观看| 欧美日韩另类国产亚洲欧美一级| 精品三级在线观看| 国产精品三级视频| 午夜精品久久久久久久| 久久国产精品免费| 成人激情综合网站| 欧美日韩国产系列| 国产午夜一区二区三区| 一区二区三区精品视频在线| 美国av一区二区| 91在线观看一区二区| 91精品中文字幕一区二区三区| 久久精品人人做人人综合 | 国产亚洲欧洲一区高清在线观看| 国产精品视频第一区| 亚洲aaa精品| 成人性生交大片免费| 欧美喷潮久久久xxxxx| 国产精品欧美一区二区三区| 亚洲国产综合在线| 大桥未久av一区二区三区中文| 欧美精选午夜久久久乱码6080| 国产欧美日韩三级| 日韩电影在线一区二区| 91免费国产在线| 久久久亚洲精品一区二区三区| 亚洲自拍与偷拍| 成人午夜免费视频| 日韩欧美不卡一区| 亚洲一区二区视频| 成人激情小说网站| 日韩天堂在线观看| 亚洲一区二区在线播放相泽| 国产精品一区二区久激情瑜伽| 欧美精品vⅰdeose4hd| 伊人夜夜躁av伊人久久| 国产成人精品亚洲777人妖| 91精品婷婷国产综合久久竹菊| 亚洲少妇屁股交4| 国产成a人无v码亚洲福利| 日韩三级精品电影久久久 | 色综合天天视频在线观看| 精品久久久久一区| 亚洲成人激情自拍| 在线国产亚洲欧美| 亚洲人快播电影网| 成人福利视频在线| 国产婷婷一区二区| 国产一区二区在线电影| 欧美成人综合网站| 久久精品国产在热久久| 欧美一区二区视频网站| 天堂精品中文字幕在线| 在线看不卡av| 亚洲国产精品一区二区www在线| 色综合一个色综合| 一区二区在线观看不卡| 色综合一区二区三区| 一区二区在线免费观看| 91欧美一区二区| 亚洲精选视频在线| 91黄色小视频| 亚洲电影激情视频网站| 欧美性生活影院| 午夜精品久久久久久久99水蜜桃| 欧美美女喷水视频| 首页亚洲欧美制服丝腿| 欧美电影免费观看高清完整版| 老司机精品视频线观看86| 国产精品久久久久久久久免费桃花| 国产成人午夜片在线观看高清观看| 久久影视一区二区| 国产一区二区美女| 国产欧美日韩不卡| 91视频在线看| 亚洲 欧美综合在线网络| 欧美精品日日鲁夜夜添| 久久精工是国产品牌吗| 国产亚洲精品超碰| 不卡一区中文字幕| 亚洲国产一区二区视频| 欧美成人精品二区三区99精品| 国产精品资源网| 国产精品国产成人国产三级| 91久久香蕉国产日韩欧美9色| 亚洲福利视频三区| 亚洲精品一区二区在线观看| 国产成人在线色| 一区二区三区小说| 欧美一区二区三区视频免费播放| 国产一区二区三区日韩| 亚洲免费资源在线播放| 91精品在线免费| 成人一区二区三区| 亚洲第一主播视频| 久久久精品免费免费| 欧美性生活影院| 国产伦精一区二区三区| 一区二区三区欧美|