intsplit_yuv(char*str,uintheight,uintwidth){FILE*fp;FILE*fpy;FILE*fpu;FILE*fpv;unsignedchar*buf=(unsignedchar*)malloc(height*width*3/2);fp=fopen(str,"r");fpy=fopen("y.bin","wa");fpu=fopen("u.bin","wa");fpv=fopen("v.bin","wa");if(!fpv||!fpu||!fpy||!fp){fprintf(stderr,"line %d open file error.\n",__LINE__);returnFALSE;}fread(buf,1,height*width*3/2,fp);fwrite(buf,1,height*width,fpy);fwrite(buf+height*width,1,height*width>>2,fpu);fwrite(buf+(uint)(height*width*5/4),1,height*width>>2,fpv);fclose(fpv);fclose(fpu);fclose(fpy);fclose(fp);free(buf);returnTRUE;}