OSDN Git Service
(root)
/
fpga-leon-mjpeg
/
leon-mjpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
works
[fpga-leon-mjpeg/leon-mjpeg.git]
/
snapgear-2.6-p42
/
user
/
jpeg-6b
/
dmjpeg.c
diff --git
a/snapgear-2.6-p42/user/jpeg-6b/dmjpeg.c
b/snapgear-2.6-p42/user/jpeg-6b/dmjpeg.c
index
5fcd00d
..
4621f1f
100644
(file)
--- a/
snapgear-2.6-p42/user/jpeg-6b/dmjpeg.c
+++ b/
snapgear-2.6-p42/user/jpeg-6b/dmjpeg.c
@@
-63,7
+63,7
@@
static const char * const cdjpeg_message_table[] = {
#include <sys/time.h>
#include "kmjpeg.h"
static int f_num=0;
#include <sys/time.h>
#include "kmjpeg.h"
static int f_num=0;
-
+static int markflag=0;
/*
* This list defines the known output image formats
/*
* This list defines the known output image formats
@@
-360,11
+360,14
@@
push_mjpegdata(j_decompress_ptr cinfo){
for(i=0;i<64;i++){
INPUT_4BYTES(cinfo, mjdata, exit(0));
scandata.fourbdata[i] = mjdata;
for(i=0;i<64;i++){
INPUT_4BYTES(cinfo, mjdata, exit(0));
scandata.fourbdata[i] = mjdata;
- // fprintf(stderr,"%08X\n",mjdata);
+ //
fprintf(stderr,"%08X\n",mjdata);
}
ioctl(cinfo->dev_fd, IOCTL_WRITE, &scandata);
}
ioctl(cinfo->dev_fd, IOCTL_WRITE, &scandata);
- // for(i=0;i<300000;i++);
- for(i=0;i<100000;i++);
+ if(mjdata == 0xd9ffd9ff){
+ jpeg_destroy_decompress(cinfo);
+ exit(0);
+ }
+ // for(i=0;i<100000;i++);
}
}
}
}