Все тВ и Радио каналы будут
所有的電視和電臺都會有頻道。
удален ы.После перезагрузки
已洗掉。重新啟動后
приставки необходимо произвести
必須生產
поИск каналов. Выберите кнопку "Да
搜索通道。選擇“是”
для подт ве рждения сброса каналов.
用來解除通道的爆裂
uj5u.com熱心網友回復:
Все настройки будут сброшены К所有設定都將重置到
значениям, установленным В сети
網路設定的值
МТС. Все пользовательские данные
再說一遍所有用戶資料
будут стерты. Вы уверены, что хотите
他們會被抹去的。你確定你想要
сбросить все настройки?
是否要重置所有設定?
uj5u.com熱心網友回復:
#include <unistd.h>#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
int bmp_write(unsigned char *image, int xsize, intysize, char *filename)
{
unsignedchar header[54] = {0x42, 0x4d, 0, 0, 0, 0, 0, 0, 0, 0,
54, 0, 0, 0,40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 32, 0,
0, 0, 0, 0, 0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0
};
longfile_size = (long)xsize * (long)ysize * 4+ 54;
header[2] =(unsigned char)(file_size &0x000000ff);
header[3] = (file_size >> 8) &0x000000ff;
header[4] =(file_size >> 16) & 0x000000ff;
header[5] =(file_size >> 24) & 0x000000ff;
long width =xsize;
header[18] =width & 0x000000ff;
header[19] =(width >> 8) &0x000000ff;
header[20] =(width >> 16) &0x000000ff;
header[21] =(width >> 24) &0x000000ff;
long height= ysize;
header[22] =height &0x000000ff;
header[23] =(height >> 8) &0x000000ff;
header[24] =(height >> 16) &0x000000ff;
header[25] =(height >> 24) &0x000000ff;
charfname_bmp[128];
sprintf(fname_bmp, "%s.bmp", filename);
FILE *fp;
if (!(fp =fopen(fname_bmp, "wb")))
return -1;
fwrite(header, sizeof(unsigned char), 54, fp);
fwrite(image, sizeof(unsigned char), (size_t)(long)xsize * ysize * 4,fp);
fclose(fp);
return 0;
}
int main(int argc, char** argv)
{
printf("\nusage: source filename,width,height,picture name \n");
intbReverse = 1;
int width = atoi(argv[2]);
intheight = atoi(argv[3]);
printf("width:%d height:%d\n",width,height);
#if 1
FILE*fp;
if (!(fp =fopen(argv[1], "rb")))
return -1;
unsignedchar * buff = (unsigned char *)malloc(width*height*4);
memset(buff,0,width*height*4);
size_tcount = fread(buff,width*height*4,1,fp);
if(bReverse)
{
unsigned char * tmp = (unsigned char *)malloc(width*height*4);
memset(tmp,0,width*height*4);
int i=0;
for(;i<height;++i)
{
memcpy(tmp+(height-1-i)*width*4,buff+width*i*4,width*4);
}
bmp_write(tmp,width,height,argv[4]);
free(tmp);
}
else
bmp_write(buff,width,height,argv[4]);
fclose(fp);
free(buff);
#endif
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/120424.html
標籤:非技術區
上一篇:DigitalMicrograph怎么做顆粒尺寸分析
下一篇:M3U8合并工具
