add png2bmp function code

main
xiaosuGW 3 years ago
parent 48096577f3
commit 6198ce284e

@ -0,0 +1 @@
Subproject commit 89f1beaabcfe9d3dfc5faba358f1dcfee711f218

@ -1,6 +1,6 @@
include Makefile.inc include Makefile.inc
TESTS=fibonacci big_fibonacci empty work work1k work10k work100k work1m forever filesys sockserver sockclient empty TESTS=fibonacci fibonacci2 fibonacci3 big_fibonacci C-Image-Manip empty work work1k work10k work100k work1m forever filesys sockserver sockclient empty
TESTSRT=$(TESTS:%=%_rt) TESTSRT=$(TESTS:%=%_rt)
@ -41,6 +41,11 @@ sod:
@cp ./sod/bin/license_plate_detection.so ${SLEDGE_BIN_DIR}/lpd_wasm.so @cp ./sod/bin/license_plate_detection.so ${SLEDGE_BIN_DIR}/lpd_wasm.so
@cp ./sod/bin/resize_image.so ${SLEDGE_BIN_DIR}/resize_wasm.so @cp ./sod/bin/resize_image.so ${SLEDGE_BIN_DIR}/resize_wasm.so
C-Image-Manip:
@echo "Making and Installing pngPlay"
@make pngPlay.so -C ./C-Image-Manip -f Makefile
@cp ./C-Image-Manip/pngPlay.so ${SLEDGE_BIN_DIR}/pngPlay_wasm.so
%_rt: %_rt:
@mkdir -p ${TMP_DIR} @mkdir -p ${TMP_DIR}
@echo "Compiling $(@:%_rt=%)" @echo "Compiling $(@:%_rt=%)"

@ -0,0 +1,42 @@
{
"active": true,
"name": "resize",
"path": "resize_wasm.so",
"port": 10000,
"relative-deadline-us": 50000,
"argsize": 1,
"http-req-headers": [],
"http-req-content-type": "image/jpeg",
"http-req-size": 1024000,
"http-resp-headers": [],
"http-resp-size": 1024000,
"http-resp-content-type": "image/png"
},
{
"active": true,
"name": "png2bmp",
"path": "C-Image-Manip_wasm.so",
"port": 10001,
"relative-deadline-us": 50000,
"argsize": 1,
"http-req-headers": [],
"http-req-content-type": "image/png",
"http-req-size": 4096000,
"http-resp-headers": [],
"http-resp-size": 4096000,
"http-resp-content-type": "image/bmp"
},
{
"active": true,
"name": "cifar10",
"path": "cifar10_wasm.so",
"port": 10002,
"relative-deadline-us": 50000,
"argsize": 1,
"http-req-headers": [],
"http-req-content-type": "image/bmp",
"http-req-size": 4096000,
"http-resp-headers": [],
"http-resp-size": 1024,
"http-resp-content-type": "text/plain"
}

@ -0,0 +1,14 @@
{
"active": true,
"name": "png2bmp",
"path": "C-Image-Manip_wasm.so",
"port": 10000,
"relative-deadline-us": 50000,
"argsize": 1,
"http-req-headers": [],
"http-req-content-type": "image/png",
"http-req-size": 1024000,
"http-resp-headers": [],
"http-resp-size": 1024000,
"http-resp-content-type": "image/bmp"
}
Loading…
Cancel
Save