Lines Matching refs:stride
99 // Obtain the row stride of the image.
100 int32_t stride = 0;
101 errCode = OH_ImageNative_GetRowStride(image, component, &stride);
102 OH_LOG_INFO(LOG_APP, "ImageReceiverNativeCTest buffer stride: %{public}d.", stride);
106 …heck whether the row stride is the same as the width of the preview stream. If they are different,…
107 if (stride == size.width) {
108 // Process the buffer by calling the API that does not support stride.
110 // Process the buffer by calling the API that supports stride or remove the stride data.
111 …e following uses the operation of removing the stride data as an example. Specifically, remove the…
118 srcBuffer += stride;
120 // Process the buffer by calling the API that does not support stride.