Home
last modified time | relevance | path

Searched refs:stride (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.50/
H A Dchangelogs-multimedia.md74 // 用法3. 将byteBuffer预览流数据和stride信息一起传给支持stride的接口处理
133 // 用法3. 将byteBuffer预览流数据和stride信息一起传给支持stride的接口处理
198 if (stride == width) {
201 // 用法1.将srcBuffer中的数据去除掉stride,拷贝得到新的dstBuffer数据,传给其他不支持stride的接口处理。
218 // 用法3. 将srcBuffer预览流数据和stride信息一起传给支持stride的接口处理
260 // 用法1.将srcBuffer中的数据去除掉stride,拷贝得到新的dstBuffer数据,传给其他不支持stride的接口处理。
277 // 用法3. 将srcBuffer预览流数据和stride信息一起传给支持stride的接口处理
341 int32_t stride = 0;
375 // 用法3. 将srcBuffer预览流数据和stride信息一起传给支持stride的接口处理
411 int32_t stride = 0;
[all …]
/ohos5.0/drivers/peripheral/display/test/unittest/lite/
H A Dloadbmp_test.c134 uint8_t **outBuf, uint32_t *stride) in LoadPicToBuffer() argument
150 *stride = videoLogo->width * videoLogo->bpp; in LoadPicToBuffer()
151 if ((*stride % FOUR_BITS_PER_PIXEL) != 0) { in LoadPicToBuffer()
152 *stride = (*stride & 0xfffc) + FOUR_BITS_PER_PIXEL; in LoadPicToBuffer()
155 byteNum = videoLogo->height * (*stride); in LoadPicToBuffer()
179 videoLogo->stride = videoLogo->width * TWO_BITS_PER_PIXEL; in LoadPicToBuffer()
242 LoadRgbData(videoLogo, enFmt, stride, origBuf); in Copy3BitsByFmt()
246 ret = LoadData(videoLogo, enFmt, stride, origBuf); in Copy3BitsByFmt()
279 uint32_t stride; in LoadBMPEx() local
293 ret = Copy2BitsAnd4Bits(videoLogo, stride, origBmpBuf); in LoadBMPEx()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/assets/3d/vertexinputdeclarations/
H A Dcore3d_dm_depth.shadervid8 { "binding" : 0, "stride" : 12, "vertexInputRate" : "vertex" },
9 { "binding" : 1, "stride" : 8, "vertexInputRate" : "vertex" },
10 { "binding" : 2, "stride" : 4, "vertexInputRate" : "vertex" },
11 { "binding" : 3, "stride" : 4, "vertexInputRate" : "vertex" },
12 { "binding" : 4, "stride" : 8, "vertexInputRate" : "vertex" },
13 { "binding" : 5, "stride" : 4, "vertexInputRate" : "vertex" },
14 { "binding" : 6, "stride" : 4, "vertexInputRate" : "vertex" },
15 { "binding" : 7, "stride" : 4, "vertexInputRate" : "vertex" }
H A Dcore3d_dm_fw.shadervid8 { "binding" : 0, "stride" : 12, "vertexInputRate" : "vertex" },
9 { "binding" : 1, "stride" : 8, "vertexInputRate" : "vertex" },
10 { "binding" : 2, "stride" : 4, "vertexInputRate" : "vertex" },
11 { "binding" : 3, "stride" : 4, "vertexInputRate" : "vertex" },
12 { "binding" : 4, "stride" : 8, "vertexInputRate" : "vertex" },
13 { "binding" : 5, "stride" : 4, "vertexInputRate" : "vertex" },
14 { "binding" : 6, "stride" : 4, "vertexInputRate" : "vertex" },
15 { "binding" : 7, "stride" : 4, "vertexInputRate" : "vertex" }
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/templates/vertexinputdeclarations/
H A Dvertex_input_declaration.shadervid8 { "binding" : 0, "stride" : 12, "vertexInputRate" : "vertex" },
9 { "binding" : 1, "stride" : 8, "vertexInputRate" : "vertex" },
10 { "binding" : 2, "stride" : 4, "vertexInputRate" : "vertex" },
11 { "binding" : 3, "stride" : 4, "vertexInputRate" : "vertex" },
12 { "binding" : 4, "stride" : 8, "vertexInputRate" : "vertex" },
13 { "binding" : 5, "stride" : 4, "vertexInputRate" : "vertex" },
14 { "binding" : 6, "stride" : 4, "vertexInputRate" : "vertex" },
15 { "binding" : 7, "stride" : 4, "vertexInputRate" : "vertex" }
/ohos5.0/docs/zh-cn/application-dev/media/camera/
H A Dnative-camera-preview-imageReceiver.md100 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 // 判断行距与预览流宽是否一致,如不一致,需要考虑stride对读取buffer的影响
107 if (stride == size.width) {
108 // 传给其他不需要stride的接口处理
110 // 传给其他支持stride的接口处理,或去除stride数据
111 // 去除stride数据示例:将byteBuffer中的数据去除stride,拷贝得到新的dstBuffer数据
118 srcBuffer += stride;
120 // 传给其他不需要stride的接口处理
H A Dcamera-dual-channel-preview.md73 let stride = imgComponent.rowStride; // 获取图片的stride
74 console.debug(`getComponent with width:${width} height:${height} stride:${stride}`);
75 // stride与width一致
76 if (stride == width) {
82 // stride与width不一致
111 方式一:去除imgComponent.byteBuffer中stride数据,拷贝得到新的buffer,调用不支持stride的接口处理buffer。
138 方式三:将原始imgComponent.byteBuffer和stride信息一起传给支持stride的接口处理。
275 let stride = imgComponent.rowStride; // 获取图片的stride
276 console.debug(`getComponent with width:${width} height:${height} stride:${stride}`);
277 // stride与width一致
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dimage_format_convert_ext_utils.cpp110 destParam.slice[0], destParam.stride[0], destParam.slice[1], destParam.stride[1], in I420ToYuv()
115 destParam.slice[0], destParam.stride[0], destParam.slice[1], destParam.stride[1], in I420ToYuv()
128 srcParam.stride[0] = static_cast<int>(rgbInfo.stride); in RGBToYuvParam()
148 … converter.NV12ToI420(srcParam.slice[0], srcParam.stride[0], srcParam.slice[1], srcParam.stride[1], in YuvToI420()
235 destParam.stride[0] = dstStride; in YuvToRGBParam()
377 srcParam.stride[0] = static_cast<int>(rgbInfo.stride); in RGBToYuvP010Param()
477 destParam.slice[0], destParam.stride[0], destParam.slice[1], destParam.stride[1], in RGB10ToI420ToYuv()
486 destParam.slice[0], destParam.stride[0], destParam.slice[1], destParam.stride[1], in RGB10ToI420ToYuv()
891 destParam.stride[0] = dstStride; in YuvP010ToRGBParam()
1251 destParam.slice[0], destParam.stride[0], destParam.slice[1], destParam.stride[1], in RGBToYuvConverter()
[all …]
H A Dimage_format_convert_utils.cpp99 srcParam.stride[0] = static_cast<int>(yDInfo.yStride); in YuvToRGBParam()
112 destParam.stride[0] = dstStride; in YuvToRGBParam()
120 srcParam.stride[0] = static_cast<int>(rgbInfo.stride); in RGBToYuvParam()
130 destParam.stride[0] = destWidth; in RGBToYuvParam()
131 destParam.stride[1] = uvStride; in RGBToYuvParam()
146 frame->linesize[0] = stride[0]; in FillFrameInfo()
147 frame->linesize[1] = stride[1]; in FillFrameInfo()
286 destParam.stride[0] = dstStride; in YuvP010ToRGBParam()
346 srcParam.stride[0] = static_cast<int>(rgbInfo.stride); in RGBToYuvP010Param()
1125 destParam.stride[0] = dstyStride; in YuvToYuvParam()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_builder.cpp132 uint32_t stride; member
635 if (dstData.stride == srcData.stride && dstData.stride == dstElementSize) { in Fill()
662 dstPtr, dstData.stride, srcPtr, srcData.stride, count); in Fill()
673 dstPtr, dstData.stride, srcPtr, srcData.stride, count); in Fill()
677 dstPtr, dstData.stride, srcPtr, srcData.stride, count); in Fill()
691 dstPtr, dstData.stride, srcPtr, srcData.stride, count); in Fill()
702 dstPtr, dstData.stride, srcPtr, srcData.stride, count); in Fill()
713 dstPtr, dstData.stride, srcPtr, srcData.stride, count); in Fill()
724 dstPtr, dstData.stride, srcPtr, srcData.stride, count); in Fill()
735 dstPtr, dstData.stride, srcPtr, srcData.stride, count); in Fill()
[all …]
/ohos5.0/foundation/window/window_manager/snapshot/test/unittest/
H A Dsnapshot_utils_test.cpp192 .stride = pixelMap->GetRowBytes(),
247 .stride = 256 * BPP,
264 .stride = 256 * BPP,
281 .stride = 256 * BPP,
361 .stride = 0,
378 .stride = 0,
395 .stride = 1,
412 .stride = 256 * BPP,
446 .stride = 1,
480 .stride = 1,
[all …]
/ohos5.0/foundation/arkui/ui_lite/frameworks/render/
H A Drender_buffer.h45 RenderBuffer(uint8_t* renBuf, uint32_t areaWidth, uint32_t areaHeight, int32_t stride) in RenderBuffer() argument
52 Attach(renBuf, areaWidth, areaHeight, stride); in RenderBuffer()
62 void Attach(uint8_t* renBuf, uint32_t areaWidth, uint32_t areaHeight, int32_t stride) in Attach() argument
68 bufStride_ = stride; in Attach()
69 if (stride < 0) { in Attach()
70 start_ = renBuf - static_cast<int32_t>(areaHeight - 1) * stride; in Attach()
/ohos5.0/docs/en/application-dev/media/camera/
H A Dnative-camera-preview-imageReceiver.md99 // 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;
[all …]
H A Dcamera-dual-channel-preview.md73 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) {
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.
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/
H A Dge_mesa_blur_shader_filter.cpp123 int stride = 2; // 2: stride in SetBlurParamsFivePassSmall() local
147 bParam.offsets[stride * i] = scale * offsetTableFivePasses[index][stride * i]; in SetBlurParamsFivePassSmall()
148 bParam.offsets[stride * i + 1] = scale * offsetTableFivePasses[index][stride * i + 1]; in SetBlurParamsFivePassSmall()
153 bParam.offsets[stride * i] = w2 * offsetTableFivePasses[index][stride * i] + in SetBlurParamsFivePassSmall()
155 bParam.offsets[stride * i + 1] = w2 * offsetTableFivePasses[index][stride * i + 1] + in SetBlurParamsFivePassSmall()
178 bParam.offsets[stride * i] = scale * offsetTableFivePasses[index][stride * i]; in SetBlurParamsFivePassLarge()
179 bParam.offsets[stride * i + 1] = scale * offsetTableFivePasses[index][stride * i + 1]; in SetBlurParamsFivePassLarge()
194 bParam.offsets[stride * i] = offsetTableFourPasses[0][stride * i] * mys; in SetBlurParams()
195 bParam.offsets[stride * i + 1] = offsetTableFourPasses[0][stride * i + 1] * mys; in SetBlurParams()
216 bParam.offsets[stride * i] = scale * offsetTableFourPasses[0][stride * i]; in SetBlurParams()
[all …]
/ohos5.0/foundation/multimedia/av_codec/services/engine/common/
H A Dcodec_utils.cpp49 int32_t stride, const Format &format) in WriteYuvDataStride() argument
62 int32_t writeSize = dataSize > stride ? stride : dataSize; in WriteYuvDataStride()
65 dstPos += stride; in WriteYuvDataStride()
71 writeSize = dataSize > (stride / UV_SCALE_FACTOR) ? (stride / UV_SCALE_FACTOR) : dataSize; in WriteYuvDataStride()
74 dstPos += (stride / UV_SCALE_FACTOR); in WriteYuvDataStride()
80 dstPos += (stride / UV_SCALE_FACTOR); in WriteYuvDataStride()
85 writeSize = dataSize > stride ? stride : dataSize; in WriteYuvDataStride()
88 dstPos += stride; in WriteYuvDataStride()
97 int32_t stride, const Format &format) in WriteRgbDataStride() argument
104 int32_t writeSize = dataSize > stride ? stride : dataSize; in WriteRgbDataStride()
[all …]
/ohos5.0/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/stable_sample/sample/encoder/
H A Dvenc_sample.cpp42 int32_t stride) in ReadYUV420SP() argument
47 int32_t pixelSize = int32_t(stride / width); in ReadYUV420SP()
51 addr += stride; in ReadYUV420SP()
57 int32_t stride) in ReadYUV420P() argument
62 int32_t pixelSize = int32_t(stride / width); in ReadYUV420P()
67 addr += stride; in ReadYUV420P()
70 stride >>= 1; in ReadYUV420P()
74 addr += stride; in ReadYUV420P()
88 addr += stride; in ReadRGBA()
90 return stride * height; in ReadRGBA()
[all …]
/ohos5.0/foundation/window/window_manager_lite/services/wms/
H A Dlite_win.cpp161 uint32_t stride = surface_->GetStride(); in FlushWithModeCopy() local
162 …uint8_t* srcBuf = reinterpret_cast<uint8_t*>(backBuf_->GetVirAddr()) + y1 * stride + x1 * sizeof(C… in FlushWithModeCopy()
163 uint8_t* dstBuf = layerData->virAddr + dy * layerData->stride + dx * sizeof(LayerColorType); in FlushWithModeCopy()
177 srcBuf += stride; in FlushWithModeCopy()
178 dstBuf += layerData->stride; in FlushWithModeCopy()
189 uint32_t stride = surface_->GetStride(); in FlushWithModeBlend() local
191 uint8_t* dstBuf = layerData->virAddr + dy * layerData->stride + dx * sizeof(LayerColorType); in FlushWithModeBlend()
223 srcBuf += stride; in FlushWithModeBlend()
224 dstBuf += layerData->stride; in FlushWithModeBlend()
242 srcData.stride = surface_->GetStride(); in Flush()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/
H A D_o_h___native_buffer___config.md30 | [stride](#stride) | 输出参数。本地窗口缓冲区步幅,单位为Byte。 |
58 ### stride subsection
61 int32_t OH_NativeBuffer_Config::stride
/ohos5.0/docs/en/application-dev/reference/apis-image-kit/
H A D_o_h_o_s_1_1_media_1_1_ohos_image_component.md25 | int32_t [rowStride](#rowstride) | Row stride of the pixel data. |
26 | int32_t [pixelStride](#pixelstride) | Pixel stride of the pixel data. |
68 Pixel stride of the pixel data.
79 Row stride of the pixel data. Camera preview stream data must be read based on the stride. For deta…
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/
H A Dimage_pixel_map_switch_test.cpp912 uint32_t stride = 8; variable
920 uint32_t res1 = pixelMap.ReadPixels(bufferSize, offset, stride, rect, dst);
927 uint32_t res2 = pixelMap.ReadPixels(bufferSize, offset, stride, rect, dst);
934 uint32_t res3 = pixelMap.ReadPixels(bufferSize, offset, stride, rect, dst);
939 stride = std::numeric_limits<int32_t>::max();
940 uint32_t res4 = pixelMap.ReadPixels(bufferSize, offset, stride, rect, dst);
944 stride = 8;
984 uint32_t stride = 8; variable
1020 stride = 6;
1025 stride = 8;
[all …]
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/display/
H A D_i_surface_v10.md23 | int [stride](#stride) | 图像跨度 |
148 ### stride subsection
151 int ISurface::stride
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A D_o_h___native_buffer___config.md30 | [stride](#stride) | Output parameter. Stride of the local window buffer, in bytes.|
58 ### stride subsection
61 int32_t OH_NativeBuffer_Config::stride
/ohos5.0/foundation/arkui/ui_lite/frameworks/dfx/
H A Dui_screenshot.cpp41 ImagePixelFormat format, uint32_t stride) override in OnScreenshotEnd() argument
79 WriteBlockToFile(fd, argb8888Addr, virAddr, row, width, format, stride); in OnScreenshotEnd()
83 WriteBlockToFile(fd, argb8888Addr, virAddr, height, width, format, stride); in OnScreenshotEnd()
103 uint32_t width, ImagePixelFormat format, uint32_t stride) const in WriteBlockToFile()
117 startAddr += stride; in WriteBlockToFile()
/ohos5.0/foundation/graphic/surface_lite/interfaces/innerkits/
H A Dsurface_buffer_impl.h44 int32_t stride; /* the stride of memory */ member
130 return bufferData_.handle.stride; in GetStride()
137 void SetStride(int32_t stride) in SetStride() argument
139 bufferData_.handle.stride = stride; in SetStride()

12345678910>>...15