URL
https://opencores.org/ocsvn/mb-jpeg/mb-jpeg/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 56 |
Rev 57 |
Line 12... |
Line 12... |
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
{
|
{
|
int compression,sample;
|
int compression,sample;
|
unsigned int col, cols, row, rows;
|
unsigned int col, cols, row, rows;
|
|
|
if (argc<3) {
|
openBMPJPG(argc, argv[1], argv[2]);
|
xil_printf("USAGE: bmp2jpg source_file destination_file\n");
|
|
return 0;
|
|
}
|
|
|
|
if (openBMPJPG(argv[1], argv[2]) == 0) {
|
|
xil_printf("Input file %s does not exist!\n\nUSAGE: jpegcodec source_file destination_file [/E] [compression_rate]\n",argv[1]);
|
|
return 0;
|
|
}
|
|
|
|
|
|
rows = bmpheader->height>>4;
|
rows = bmpheader->height>>4;
|
cols = bmpheader->width>>4;
|
cols = bmpheader->width>>4;
|
|
|
dct_init_start();
|
dct_init_start();
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.