/*************************************************************************
> File Name: bgra2rgba.c
> Author: llvision
> Mail: wangkf@llvision.com
> Created Time: 2017年07月13日 星期四 11时25分01秒
************************************************************************/
#include<stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
#include <sys/time.h> // for gettimeofday()
#include <stdlib.h>
int main(int argc, char **argv) {
int from_fd, to_fd;
int filelen;
int bytes_read,bytes_write;
int tmp = 0;
int alpha = 0;
unsigned char *ptr = NULL;
int i = 0,j = 0;
if (argc != 5) {
printf("usage: ./a.out srcfilename,destfilename,filelen,alpha");
fprintf(stderr, "Usage:%s fromfile tofile\n\a", argv[0]);
exit
bgra转rgba 工具
最新推荐文章于 2024-08-29 10:12:47 发布