LOOP-PVT.H
资源名称:mpeg.zip [点击查看]
上传用户:njqiyou
上传日期:2007-01-08
资源大小:574k
文件大小:4k
源码类别:
mpeg/mp3
开发平台:
C/C++
- /**********************************************************************
- * ISO MPEG Audio Subgroup Software Simulation Group (1996)
- * ISO 13818-3 MPEG-2 Audio Encoder - Lower Sampling Frequency Extension
- *
- * $Id: loop-pvt.h,v 1.1 1996/02/14 04:04:23 rowlands Exp $
- *
- * Private interface declarations for loop.c
- *
- * $Log: loop-pvt.h,v $
- * Revision 1.1 1996/02/14 04:04:23 rowlands
- * Initial revision
- *
- * Received from Mike Coleman
- **********************************************************************/
- #ifndef LOOP_PVT_H
- #define LOOP_PVT_H
- /*
- Revision History:
- Date Programmer Comment
- ========== ========================= ===============================
- 1995/10/01 mc@fivebats.com created
- */
- int outer_loop( double xr[2][2][576], /*vector of the magnitudees of the spectral values */
- int max_bits,
- III_psy_xmin *l3_xmin, /* the allowed distortion of the scalefactor */
- int l3_enc[2][2][576], /* vector of quantized values ix(0..575) */
- frame_params *fr_ps,
- III_scalefac_t *scalefac, /* scalefactors */
- int gr,
- int ch,
- III_side_info_t *l3_side );
- int part2_length( III_scalefac_t *scalefac,
- frame_params *fr_ps,
- int gr,
- int ch,
- III_side_info_t *si );
- int quantanf_init( double xr[576] );
- int inner_loop( double xr[2][2][576],
- int l3_enc[2][2][576],
- int max_bits,
- gr_info *cod_info,
- int gr,
- int ch );
- void calc_xmin( double xr[2][2][576],
- III_psy_ratio *ratio,
- gr_info *cod_info,
- III_psy_xmin *l3_xmin,
- int gr,
- int ch );
- double xr_max( double xr[576],
- unsigned int begin,
- unsigned int end );
- void calc_scfsi( double xr[576],
- III_side_info_t *l3_side,
- III_psy_xmin *l3_xmin,
- int ch,
- int gr );
- void gr_deco( gr_info *cod_info );
- int count_bit( int ix[576], unsigned int start, unsigned int end, unsigned int table);
- int bigv_bitcount( int ix[576], gr_info *cod_info );
- int choose_table( int max);
- void bigv_tab_select( int ix[576], gr_info *cod_info );
- void subdivide( gr_info *cod_info );
- int count1_bitcount( int ix[576], gr_info *cod_info );
- void calc_runlen( int ix[576],
- gr_info *cod_info );
- int scale_bitcount( III_scalefac_t *scalefac,
- gr_info *cod_info,
- int gr,
- int ch );
- void calc_noise( double xr[576],
- int ix[576],
- gr_info *cod_info,
- double xfsf[4][CBLIMIT] );
- int loop_break( III_scalefac_t *scalefac,
- gr_info *cod_info,
- int gr,
- int ch );
- void preemphasis( double xr[576],
- double xfsf[4][CBLIMIT],
- III_psy_xmin *l3_xmin,
- int gr,
- int ch,
- III_side_info_t *l3_side );
- int amp_scalefac_bands( double xr[576],
- double xfsf[4][CBLIMIT],
- III_psy_xmin *l3_xmin,
- III_side_info_t *l3_side,
- III_scalefac_t *scalefac,
- int gr,
- int ch,
- int iteration );
- void quantize( double xr[576],
- int ix[576],
- gr_info *cod_info );
- int ix_max( int ix[576],
- unsigned int begin,
- unsigned int end );
- int
- new_choose_table( int ix[576],
- unsigned int begin,
- unsigned int end );
- #endif