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

📄 input.format

📁 linux下将各类格式图片转换工具
💻 FORMAT
字号:
			----------------			| FILE FORMATS |			----------------PPM FORMAT----------See http://netpbm.sourceforge.net/doc/ppm.html .UCB YUV FORMAT--------------You should be aware that the YUV format used in the MPEG encoder is DIFFERENTthan the Abekas YUV format.  The reason for this is that in MPEG, the U andV components are subsampled 4:1.To give you an idea of what format the YUV file must be in, the followingcode will read in a YUV file:    unsigned char **y_data, **cr_data, **cb_data;    void	ReadYUV(char *fileName, int width, int height)    {	FILE *fpointer;	register int y;	/* should allocate memory for y_data, cr_data, cb_data here */	fpointer = fopen(fileName, "r");	for (y = 0; y < height; y++)			/* Y */	    fread(y_data[y], 1, width, fpointer);	for (y = 0; y < height / 2; y++)			/* U */	    fread(cb_data[y], 1, width / 2, fpointer);	for (y = 0; y < height / 2; y++)			/* V */	    fread(cr_data[y], 1, width / 2, fpointer);	fclose(fpointer);    }There are two reasons why you'd want to use YUV files rather than PPM files:	1)  The YUV files are 50% the size of the corresponding PPM files	2)  The ENCODER will run slightly faster, since it doesn't have to	    do the RGB to YUV conversion itself.ABEKAS YUV FORMAT -----------------The Abekas YUV Format interlaces the Y, U, and V values in a 4:2:2 format.The interlacing pattern isUYVYfor each group of 4 bytes in the file.PHILLIPS YUV FORMAT -------------------The Phillips YUV Format interlaces the Y, U, and V values in a 4:2:2 format.The interlacing pattern isYVYUfor each group of 4 bytes in the file.You may specify either ABEKAS, PHILLIPS, or UCB as the YUV_FORMAT whenencoding ; the encoder defaults to UCB YUV_FORMAT if not specified.In addition, if you've got a weird interlacing format, you can alsotry and de-interlace it by giving the YUV pattern in the YUV_FORMAT.So a YUV 4:4:4 format would beYUVYUV

⌨️ 快捷键说明

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