拼接的形式为当主函数中的参数mnxy都为1时,将6*6个YUV图像拼接为一个大的YUV图案
#include "YUV.h"
#define _CRT_SECURE_NO_WARNINGS
#define IMAGEWIDTH 3840 //图像的宽
#define IMAGEHEIGHT 1920 //高
#define Y_SIZE ( IMAGEWIDTH*IMAGEHEIGHT)
#define YUV420_SIZE (Y_SIZE*3/2) //4:2:0格式
int main(int argc, char *argv[])
{
FILE * input_yuvfile[64]; //输入YUV图像
FILE * output_yuvfile; //输出YUV图像
char FileName[20];
if(NULL == (output_yuvfile = fopen("Driving in country.yuv", "wb")))
{
printf("File input is can't open!\n");
return -1;
}
int m = 1;//控制拼接时从第几行拼接
int n = 1;//控制拼接到倒数第几行结束
int x = 1;//控制拼接从第几列开始
int y = 1;//控制拼接到倒数第几列结束
int s = (8 - m - n)*(8 - x - y);
int readsize;
unsigned char *in_buff[64];
unsigned char *out_buff,*yuv_buff,*out_buff1;
yuv_buff=(unsigned