⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 step1.h

📁 改进的基于6个mips核的NOC网络
💻 H
字号:
/****************************************************************
 *  Purpose     :   Parse the input image and send FBlock-s to
 *                  step2.c for IDCT and further processing.
 *  Author      :   Pierre Guerrier, March 1998, ported to
 *                  the minimips platform by
 *                  Jose Prats, June 2005.
 ****************************************************************/

#ifndef STEP1_H
#define STEP1_H

#include "jpeg.h" /* For PBlock */

/*--------------------------------------------*/
/* global variables here		      */
/*--------------------------------------------*/
extern cd_t   comp[3]; /* for every component, useful stuff */

extern PBlock MCU_buff[10];  /* decoded component buffer */
			      /* between IDCT and color convert */
extern int    MCU_valid[10];  /* for every DCT block, component id then -1 */

extern PBlock QTable[4];     /* three quantization tables */
extern int    QTvalid[4];     /* at most, but seen as four ... */
			 
/* picture attributes */
extern int x_size, y_size;	/* Video frame size     */
extern int rx_size, ry_size;	/* down-rounded Video frame size */
				/* in pixel units, multiple of MCU */
extern int MCU_sx, MCU_sy;  	/* MCU size in pixels   */
extern int mx_size, my_size;	/* picture size in units of MCUs */
extern int n_comp;		/* number of components 1,3 */

/* processing cursor variables */
extern int in_frame, curcomp;
			/* current position in MCU unit */
/*extern int image_pos;*/ /* Offset in chars of the next character to be read */
                      /* from the memory area that represents the image */
                      /* file loaded in memory.*/

/*-----------------------------------------
 * prototypes from utils.c		   
 *-----------------------------------------*/

/*extern void show_FBlock(FBlock *S);
extern void show_PBlock(PBlock *S);
extern void bin_dump(FILE *fi);

extern int      ceil_div(int N, int D);
extern int      floor_div(int N, int D);
extern void     reset_prediction();
extern int	reformat(unsigned long S, int good);
extern void	suicide();
extern void	RGB_save(FILE *fo);*/

/*-----------------------------------------
 * prototypes from parse.c		  
 *-----------------------------------------*/

/*extern unsigned char mgetc(void); */
        /* Get one char from the input
         * image and increase the "file" pointer.

extern void	clear_bits(void);
extern unsigned long	get_bits(int number);
extern unsigned char	get_one_bit(void);
extern unsigned int	get_size(void);
extern unsigned int     get_next_MK(void);
extern int	load_quant_tables(void);
extern int      init_MCU();
extern void     skip_segment(void);
extern int      process_MCU(void);*/

/*-------------------------------------------
 * prototypes from fast_idct.c               
 *-------------------------------------------*/

/*extern void	IDCT(const FBlock *S, PBlock *T);*/

/*-----------------------------------------
 * prototypes from color.c		   
 *-----------------------------------------*/

/*extern void	color_conversion();*/

/*-------------------------------------------
 * prototypes from table_vld.c or tree_vld.c 
 *-------------------------------------------*/

/*extern int	load_huff_tables();*/
/*extern unsigned char    get_symbol(FILE *fi, int select);*/

/*-----------------------------------------
 * prototypes from huffman.c 		   
 *-----------------------------------------*/

/*extern void	unpack_block(FILE *fi, FBlock *T, int comp);
unpack, predict, dequantize, reorder on store */

/*-----------------------------------------
 * prototypes from spy.c
 *-----------------------------------------*/

/*extern void 	trace_bits(int number, int type);
extern void	output_stats(char *dumpfile);*/

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -