Lines Matching refs:stride
38 应用开发者需要根据width,height,stride三个值,处理相机预览流数据。
46 let stride = component.rowStride
48 if (stride == width) {
54 // 用法1.将component.byteBuffer中的数据去除掉stride,拷贝得到新的dstArr数据,传给其他不支持stride的接口处理。
59 const srcBuf = new Uint8Array(component.byteBuffer, j*stride, width)
67 … // 用法2.如果仅想通过byteBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素
69 size:{height: height, width: stride},
74 // 用法3. 将byteBuffer预览流数据和stride信息一起传给支持stride的接口处理
96 变更:应用开发者需要根据width,height,stride三个值,处理相机预览流数据。
105 let stride = component.rowStride
107 if (stride == width) {
113 // 用法1.将component.byteBuffer中的数据去除掉stride,拷贝得到新的dstArr数据,传给其他不支持stride的接口处理。
118 const srcBuf = new Uint8Array(component.byteBuffer, j*stride, width)
126 … // 用法2.如果仅想通过byteBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素
128 size:{height: height, width: stride},
133 // 用法3. 将byteBuffer预览流数据和stride信息一起传给支持stride的接口处理
178 应用开发者需要根据width,height,stride三个值,处理相机预览流数据
198 if (stride == width) {
201 // 用法1.将srcBuffer中的数据去除掉stride,拷贝得到新的dstBuffer数据,传给其他不支持stride的接口处理。
212 // 用法2.如果仅想通过srcBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素
218 // 用法3. 将srcBuffer预览流数据和stride信息一起传给支持stride的接口处理
237 应用开发者需要根据width,height,stride三个值,处理相机预览流数据。
257 if (stride == width) {
260 // 用法1.将srcBuffer中的数据去除掉stride,拷贝得到新的dstBuffer数据,传给其他不支持stride的接口处理。
271 // 用法2.如果仅想通过srcBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素
277 // 用法3. 将srcBuffer预览流数据和stride信息一起传给支持stride的接口处理
326 应用开发者需要根据width,height,stride三个值,处理相机预览流数据。
341 int32_t stride = 0;
342 errCode = OH_ImageNative_GetRowStride(image, component, &stride);
353 if (stride == width) {
357 // 用法1.将srcBuffer中的数据去除掉stride,拷贝得到新的dstBuffer数据,传给其他不支持stride的接口处理。
369 // 用法2.如果仅想通过srcBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素
375 // 用法3. 将srcBuffer预览流数据和stride信息一起传给支持stride的接口处理
395 变更:应用开发者需要根据width,height,stride三个值,处理相机预览流数据。
411 int32_t stride = 0;
412 errCode = OH_ImageNative_GetRowStride(image, component, &stride);
423 if (stride == width) {
427 // 用法1.将srcBuffer中的数据去除掉stride,拷贝得到新的dstBuffer数据,传给其他不支持stride的接口处理。
439 // 用法2.如果仅想通过srcBuffer预览流数据创建pixelMap然后显示,可以根据stride*height创建pixelMap,然后调用crop方法裁剪掉多余的像素
445 // 用法3. 将srcBuffer预览流数据和stride信息一起传给支持stride的接口处理