diff --git a/multimedia/image/image_js_standard/image/src/main/js/test/image.test.js b/multimedia/image/image_js_standard/image/src/main/js/test/image.test.js index e52bc59355c90abdb90178aa504150487b289b6a..c5f97c00ac6448977bc00bfef282e52e8875f7da 100644 --- a/multimedia/image/image_js_standard/image/src/main/js/test/image.test.js +++ b/multimedia/image/image_js_standard/image/src/main/js/test/image.test.js @@ -363,7 +363,7 @@ export default function imageJsTest() { bufferArr[i] = i + 1; } - let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } } + let opts = { editable: true, pixelFormat: 4, size: { height: 4, width: 6 } } image.createPixelMap(color, opts) .then(pixelmap => { globalpixelmap = pixelmap; @@ -422,7 +422,7 @@ export default function imageJsTest() { bufferArr[i] = i + 1; } - let opts = { editable: true, pixelFormat: 3, size: { height: 4, width: 6 } } + let opts = { editable: true, pixelFormat: 4, size: { height: 4, width: 6 } } image.createPixelMap(color, opts, (err, pixelmap) => { globalpixelmap = pixelmap; if (pixelmap == undefined) { diff --git a/multimedia/image/image_js_standard/image/src/main/js/test/testImg.js b/multimedia/image/image_js_standard/image/src/main/js/test/testImg.js index 1412919e2fdc4371e60cf3bcd9c8c64e0557ba3d..0c074095f7151d4c7f7c5ef7b9d047ad949911a7 100644 --- a/multimedia/image/image_js_standard/image/src/main/js/test/testImg.js +++ b/multimedia/image/image_js_standard/image/src/main/js/test/testImg.js @@ -607,10 +607,10 @@ let testJpg = new Uint8Array([255, 216, 255, 224, 0, 16, 74, 70, 73, 70, 0, 1, 1 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 2, 138, 40, 160, 15, 255, 217]) -let tcBuf020 = new Uint8Array([0,0,0,4,0,0,0,8,1,0,0,12,1,1,1,16,1,1,1,20,2,2,2,24,3,3,3,28,4,4,4,32,5,5,5,36,6,6,6,40,7,7,7,44,9,9,8,48,10,10,10,52,12,12,12,56,14,14,13,60,16,16,15,64,18,18,17,68,20,20,19,72,22,22,22,76,25,24,24,80,27,27,27,84,30,30,29,88,33,32,32,92,36,35,35,96]) - -let tcBuf020_1 = new Uint8Array([0,0,0,4,0,0,0,8,1,0,0,12,1,1,1,16,1,1,1,20,2,2,2,24,3,3,3,28,4,4,4,32,5,5,5,36,6,6,6,40,7,7,7,44,9,9,8,48,10,10,10,52,12,12,12,56,14,14,13,60,16,16,15,64,18,18,17,68,20,20,19,72,22,22,22,76,25,24,24,80,27,27,27,84,30,30,29,88,33,32,32,92,36,35,35,96]) +let tcBuf020 = new Uint8Array([0,0,0,4,0,0,0,8,0,0,1,12,1,1,1,16,1,1,1,20,2,2,2,24,3,3,3,28,4,4,4,32,5,5,5,36,6,6,6,40,7,7,7,44,8,9,9,48,10,10,10,52,12,12,12,56,13,14,14,60,15,16,16,64,17,18,18,68,19,20,20,72,22,22,22,76,24,24,25,80,27,27,27,84,29,30,30,88,32,32,33,92,35,35,36,96]) +let tcBuf020_1 = new Uint8Array([0,0,0,4,0,0,0,8,0,0,1,12,1,1,1,16,1,1,1,20,2,2,2,24,3,3,3,28,4,4,4,32,5,5,5,36,6,6,6,40,7,7,7,44,8,9,9,48,10,10,10,52,12,12,12,56,13,14,14,60,15,16,16,64,17,18,18,68,19,20,20,72,22,22,22,76,24,24,25,80,27,27,27,84,29,30,30,88,32,32,33,92,35,35,36,96]) + let tcBuf021 = new Uint8Array([0,0,0,4,0,0,0,8]) let tcBuf021_1 = new Uint8Array([0,0,0,4,0,0,0,8])