1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
OBJS = \
EntropyCodedSegment.class \
HuffmanTable.class \
Markers.class \
MarkerSegmentAPP0JFIF.class \
MarkerSegmentDHT.class \
MarkerSegmentDQT.class \
MarkerSegmentSOF.class \
MarkerSegmentSOS.class \
Parse.class \
QuantizationTable.class \
Utilities.class
all: ${OBJS}
PATHTOROOT = ../../../..
include ${PATHTOROOT}/Makefile.common.mk
clean:
rm -f *~ *.class core *.bak
testparse: ${OBJS}
rm -f /tmp/crap_copied.jpg
rm -f /tmp/crap_source.jpg
cp -v \
"$${HOME}/Documents/Clients/MDDX/Experiment20130905/crap.jpg" \
/tmp/crap_source.jpg
java -cp ${PATHTOROOT} com.pixelmed.codec.jpeg.Parse \
/tmp/crap_source.jpg \
/tmp/crap_copied.jpg
@echo "Comparing source and copied ... may fail with EOF if padding after EOI marker that is not copied, which is OK"
cmp /tmp/crap_source.jpg /tmp/crap_copied.jpg
@echo "Finished comparing"
hexdump -C /tmp/crap_source.jpg | tail -3
hexdump -C /tmp/crap_copied.jpg | tail -3
# without restart and working
#"$${HOME}/Documents/Medical/compression/JPEG/10918-1/jpeg-6/testimg.jpg"
#"${PATHTOROOT}/${PATHTOTESTFILESFROMROOT}/colorpngresavedfrompreview.jpg"
#"${PATHTOROOT}/${PATHTOTESTFILESFROMROOT}/huff_simple0.jpg"
#"$${HOME}/Documents/Clients/MDDX/Experiment20130905/crap.jpg"
#"${PATHTOROOT}/${PATHTOTESTFILESFROMROOT}/smpte_8_q1.jpg"
# without restart and not working
# with restart and working
#"$${HOME}/Pictures/Interesting/clunie_737_cropped_close.jpg"
#"${PATHTOROOT}/${PATHTOTESTFILESFROMROOT}/smpte_8_cjpeg_rst1.jpg"
#"/tmp/crap.jpg"
# with restart and not working
|