Lines Matching refs:stride
73 let stride = imgComponent.rowStride; // Obtain the image stride.
74 console.debug(`getComponent with width:${width} height:${height} stride:${stride}`);
75 // The value of stride is the same as that of width.
76 if (stride == width) {
82 // The value of stride is different from that of width.
86 const srcBuf = new Uint8Array(imgComponent.byteBuffer, j * stride, width)
111 …stride data from **imgComponent.byteBuffer**, obtain a new buffer by means of copy, and process th…
120 const srcBuf = new Uint8Array(imgComponent.byteBuffer, j * stride, width);
128 …Method 2: Create a PixelMap based on the value of stride * height, and call **cropSync** of the Pi…
131 // Create a PixelMap, with width set to the value of stride.
133 size:{height: height, width: stride}, srcPixelFormat: 8});
138 Method 3: Pass **imgComponent.byteBuffer** and **stride** to the API that supports stride.
277 let stride = imgComponent.rowStride; // Obtain the image stride.
278 console.debug(`getComponent with width:${width} height:${height} stride:${stride}`);
279 // The value of stride is the same as that of width.
280 if (stride == width) {
286 // The value of stride is different from that of width.
290 const srcBuf = new Uint8Array(imgComponent.byteBuffer, j * stride, width)