Home
last modified time | relevance | path

Searched refs:planes (Results 1 – 25 of 57) sorted by relevance

123

/ohos5.0/drivers/hdf_core/framework/model/camera/buffer_manager/src/
H A Dcamera_buffer.c297 buffer->planes[planeNum].bytesUsed = planes[planeNum].bytesUsed; in CameraBufferPrepareMmap()
298 buffer->planes[planeNum].dataOffset = planes[planeNum].dataOffset; in CameraBufferPrepareMmap()
343 (buffer->planes[planeNum].length == planes[planeNum].length)) { in CameraBufferPrepareUserPtr()
350 planes[planeNum].memory.userPtr, planes[planeNum].length); in CameraBufferPrepareUserPtr()
375 if (planes[planeNum].length < buffer->planes[planeNum].minLength) { in CameraBufferAttachDmaPlane()
380 …if (dmaBuf == buffer->planes[planeNum].dmaBuf && buffer->planes[planeNum].length == planes[planeNu… in CameraBufferAttachDmaPlane()
438 buffer->planes[planeNum].bytesUsed = planes[planeNum].bytesUsed; in CameraBufferMapDmaBuffer()
439 buffer->planes[planeNum].length = planes[planeNum].length; in CameraBufferMapDmaBuffer()
440 buffer->planes[planeNum].memory.fd = planes[planeNum].memory.fd; in CameraBufferMapDmaBuffer()
441 buffer->planes[planeNum].dataOffset = planes[planeNum].dataOffset; in CameraBufferMapDmaBuffer()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/util/
H A Dfrustum_util.cpp38 auto& planes = frustum.planes; in CreateFrustum() local
39 planes[Frustum::PLANE_LEFT].x = matrix[0].w + matrix[0].x; in CreateFrustum()
40 planes[Frustum::PLANE_LEFT].y = matrix[1].w + matrix[1].x; in CreateFrustum()
41 planes[Frustum::PLANE_LEFT].z = matrix[2].w + matrix[2].x; in CreateFrustum()
42 planes[Frustum::PLANE_LEFT].w = matrix[3].w + matrix[3].x; in CreateFrustum()
54 planes[Frustum::PLANE_TOP].x = matrix[0].w + matrix[0].y; in CreateFrustum()
55 planes[Frustum::PLANE_TOP].y = matrix[1].w + matrix[1].y; in CreateFrustum()
56 planes[Frustum::PLANE_TOP].z = matrix[2].w + matrix[2].y; in CreateFrustum()
57 planes[Frustum::PLANE_TOP].w = matrix[3].w + matrix[3].y; in CreateFrustum()
71 planes[idx] *= rcpLength; in CreateFrustum()
[all …]
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/jpeg_yuv_decoder/
H A Djpeg_yuvdata_converter.cpp45 …if (data.planes[YCOM] == nullptr || data.planes[UCOM] == nullptr || data.planes[VCOM] == nullptr || in IsValidYuvData()
55 if (data.planes[YCOM] == nullptr || data.planes[UVCOM] == nullptr || in IsValidYuvNVData()
224 …rn JpegDecoderYuv::GetLibyuvConverter().I444ToI420(src.planes[YCOM], src.strides[YCOM], src.planes in I444ToI420_wrapper()
225 … src.strides[UCOM], src.planes[VCOM], src.strides[VCOM], dest.planes[YCOM], dest.strides[YCOM], in I444ToI420_wrapper()
226 … dest.planes[UCOM], dest.strides[UCOM], dest.planes[VCOM], dest.strides[VCOM], width, height); in I444ToI420_wrapper()
241 … src.strides[UCOM], src.planes[VCOM], src.strides[VCOM], dest.planes[YCOM], dest.strides[YCOM], in I444ToNV21_wrapper()
257 … src.strides[UCOM], src.planes[VCOM], src.strides[VCOM], dest.planes[YCOM], dest.strides[YCOM], in I422ToI420_wrapper()
258 … dest.planes[UCOM], dest.strides[UCOM], dest.planes[VCOM], dest.strides[VCOM], width, height); in I422ToI420_wrapper()
273 … src.strides[UCOM], src.planes[VCOM], src.strides[VCOM], dest.planes[YCOM], dest.strides[YCOM], in I422ToNV21_wrapper()
294 … src.strides[UCOM], src.planes[VCOM], src.strides[VCOM], dest.planes[YCOM], dest.strides[YCOM], in I420ToNV21_wrapper()
[all …]
H A Djpeg_decoder_yuv.cpp382 info.planes[YCOM] = data; in FillJpgOutYuvInfo()
384 info.planes[UCOM] = info.planes[YCOM] + info.planeWidth[YCOM] * info.planeHeight[YCOM]; in FillJpgOutYuvInfo()
385 info.planes[VCOM] = info.planes[UCOM] + info.planeWidth[UCOM] * info.planeHeight[UCOM]; in FillJpgOutYuvInfo()
505 if (srcPlaneInfo.planes[YCOM] == nullptr || srcPlaneInfo.planes[UCOM] == nullptr || in ValidateParameter()
550 dest.planes[YCOM] = outYData; in ConvertFrom4xx()
563 srcYVU.planes[UCOM] = srcPlaneInfo.planes[VCOM]; in ConvertFrom4xx()
564 srcYVU.planes[VCOM] = srcPlaneInfo.planes[UCOM]; in ConvertFrom4xx()
566 dest.planes[YCOM] = outYData; in ConvertFrom4xx()
606 dest.planes[YCOM] = outYData; in ConvertFromGray()
607 dest.planes[UCOM] = outUData; in ConvertFromGray()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/video_processing_engine/framework/algorithm/detail_enhancer/skia/
H A Dskia_impl.cpp118 rowbyte[CHANNEL_UV1] = planesInfo->planes[CHANNEL_UV1].columnStride; in ConfigYUVFormat()
120 static_cast<unsigned int>(planesInfo->planes[CHANNEL_UV1].offset); in ConfigYUVFormat()
125 rowbyte[CHANNEL_UV1] = planesInfo->planes[CHANNEL_UV2].columnStride; in ConfigYUVFormat()
127 static_cast<unsigned int>(planesInfo->planes[CHANNEL_UV2].offset); in ConfigYUVFormat()
132 rowbyte[CHANNEL_UV1] = planesInfo->planes[CHANNEL_UV1].columnStride; in ConfigYUVFormat()
133 rowbyte[CHANNEL_UV2] = planesInfo->planes[CHANNEL_UV2].columnStride; in ConfigYUVFormat()
135 static_cast<unsigned int>(planesInfo->planes[CHANNEL_UV1].offset); in ConfigYUVFormat()
142 rowbyte[CHANNEL_UV1] = planesInfo->planes[CHANNEL_UV2].columnStride; in ConfigYUVFormat()
143 rowbyte[CHANNEL_UV2] = planesInfo->planes[CHANNEL_UV1].columnStride; in ConfigYUVFormat()
153 rowbyte[CHANNEL_UV1] = planesInfo->planes[CHANNEL_UV1].columnStride; in ConfigYUVFormat()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A D_o_h___native_buffer___planes.md22 | uint32_t [planeCount](#planecount) | Number of planes.|
23 | [OH_NativeBuffer_Plane](_o_h___native_buffer___plane.md) [planes](#planes) [4] | Array holding th…
37 Number of planes.
40 ### planes subsection
43 OH_NativeBuffer_Plane OH_NativeBuffer_Planes::planes[4]
/ohos5.0/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/
H A Dcamera_buffer.cpp113 if (!HdfSbufReadUint32(respData, &userBuffer.planes[0].memory.offset)) { in CameraQueryMemory()
117 if (!HdfSbufReadUint32(respData, &userBuffer.planes[0].length)) { in CameraQueryMemory()
127 if (!HdfSbufReadUint32(respData, &userBuffer.planes[0].length)) { in CameraQueryMemory()
140 struct UserCameraPlane planes[planeCount_] = {}; in CameraAllocBuffer() local
145 buf.planes = planes; in CameraAllocBuffer()
158 lengthArray_[bufferId] = buf.planes[0].length; in CameraAllocBuffer()
159 offArray_[bufferId] = buf.planes[0].memory.offset; in CameraAllocBuffer()
170 lengthArray_[bufferId] = buf.planes[0].length; in CameraAllocBuffer()
262 struct UserCameraPlane planes[planeCount_] = {}; in CameraReleaseBuffers() local
267 buf.planes = planes; in CameraReleaseBuffers()
[all …]
/ohos5.0/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/
H A Dv4l2_buffer.cpp94 struct v4l2_plane planes[1] = {}; in V4L2QueueBuffer() local
101 buf.m.planes = planes; in V4L2QueueBuffer()
158 buf.m.planes[0].length = frameSpec->buffer_->GetSize(); in SetInqueueBuffer()
172 buf.m.planes[0].length = adapterBufferMap_[buf.index].length; in SetMmapInqueueBuffer()
187 buf.m.planes[0].length = adapterBufferMap_[buf.index].length; in SetDmaInqueueBuffer()
188 buf.m.planes[0].m.fd = adapterBufferMap_[buf.index].dmafd; in SetDmaInqueueBuffer()
199 struct v4l2_plane planes[1] = {}; in V4L2DequeueBuffer() local
205 buf.m.planes = planes; in V4L2DequeueBuffer()
254 struct v4l2_plane planes[1] = {}; in V4L2AllocBuffer() local
266 buf.m.planes = planes; in V4L2AllocBuffer()
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_yuv.cpp239 auto yStride = planes->planes[PLANE_Y].columnStride; in GetYUVStrideInfo()
240 auto uvStride = planes->planes[PLANE_U].columnStride; in GetYUVStrideInfo()
241 auto yOffset = planes->planes[PLANE_Y].offset; in GetYUVStrideInfo()
242 auto uvOffset = planes->planes[PLANE_U].offset; in GetYUVStrideInfo()
245 auto yStride = planes->planes[PLANE_Y].columnStride; in GetYUVStrideInfo()
247 auto yOffset = planes->planes[PLANE_Y].offset; in GetYUVStrideInfo()
248 auto uvOffset = planes->planes[PLANE_V].offset; in GetYUVStrideInfo()
253 auto yOffset = planes->planes[PLANE_Y].offset / 2; in GetYUVStrideInfo()
254 auto uvOffset = planes->planes[PLANE_U].offset / 2; in GetYUVStrideInfo()
259 auto yOffset = planes->planes[PLANE_Y].offset / 2; in GetYUVStrideInfo()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/
H A D_o_h___native_buffer___planes.md23 | [OH_NativeBuffer_Plane](_o_h___native_buffer___plane.md) [planes](#planes) [4] | 图像平面格式信息数组。 |
40 ### planes subsection
43 OH_NativeBuffer_Plane OH_NativeBuffer_Planes::planes[4]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dimage_format_convert.cpp463 auto yStride = planes->planes[PLANE_Y].columnStride; in GetYUVStrideInfo()
464 auto uvStride = planes->planes[PLANE_U].columnStride; in GetYUVStrideInfo()
465 auto yOffset = planes->planes[PLANE_Y].offset; in GetYUVStrideInfo()
466 auto uvOffset = planes->planes[PLANE_U].offset; in GetYUVStrideInfo()
469 auto yStride = planes->planes[PLANE_Y].columnStride; in GetYUVStrideInfo()
471 auto yOffset = planes->planes[PLANE_Y].offset; in GetYUVStrideInfo()
472 auto uvOffset = planes->planes[PLANE_V].offset; in GetYUVStrideInfo()
477 auto yOffset = planes->planes[PLANE_Y].offset / 2; in GetYUVStrideInfo()
478 auto uvOffset = planes->planes[PLANE_U].offset / 2; in GetYUVStrideInfo()
483 auto yOffset = planes->planes[PLANE_Y].offset / 2; in GetYUVStrideInfo()
[all …]
/ohos5.0/foundation/graphic/graphic_surface/surface/src/
H A Dnative_buffer.cpp249 OH_NativeBuffer_Planes *planes = nullptr; in OH_NativeBuffer_MapPlanes() local
250 GSError retVal = sbuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in OH_NativeBuffer_MapPlanes()
255 outPlanes->planeCount = planes->planeCount; in OH_NativeBuffer_MapPlanes()
256 for (uint32_t i = 0; i < planes->planeCount && i < 4; i++) { // 4: max plane count in OH_NativeBuffer_MapPlanes()
257 outPlanes->planes[i].offset = planes->planes[i].offset; in OH_NativeBuffer_MapPlanes()
258 outPlanes->planes[i].rowStride = planes->planes[i].rowStride; in OH_NativeBuffer_MapPlanes()
259 outPlanes->planes[i].columnStride = planes->planes[i].columnStride; in OH_NativeBuffer_MapPlanes()
H A Dsurface_buffer_impl.cpp440 planesInfo_.planeCount = layout.planes.size(); in GetPlanesInfo()
442 planesInfo_.planes[i].offset = layout.planes[i].offset; in GetPlanesInfo()
443 planesInfo_.planes[i].rowStride = layout.planes[i].hStride; in GetPlanesInfo()
444 planesInfo_.planes[i].columnStride = layout.planes[i].vStride; in GetPlanesInfo()
/ohos5.0/drivers/peripheral/display/buffer/vdi_base/src/
H A Dhi_gbm.cpp43 const PlaneLayoutInfo *planes;
103 if ((fmtInfo != nullptr) && (fmtInfo->planes != nullptr)) { in AdjustStrideFromFormat()
104 uint32_t sum = fmtInfo->planes->radio[0]; in AdjustStrideFromFormat()
105 for (uint32_t i = 1; (i < fmtInfo->planes->numPlanes) && (i < MAX_PLANES); i++) { in AdjustStrideFromFormat()
106 sum += fmtInfo->planes->radio[i]; in AdjustStrideFromFormat()
109 tmpHeight = DIV_ROUND_UP((height * sum), fmtInfo->planes->radio[0]); in AdjustStrideFromFormat()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/
H A Dpicture.cpp196 OH_NativeBuffer_Planes *planes = nullptr; in SetYuvDataInfo() local
197 GSError retVal = sBuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in SetYuvDataInfo()
200 if (retVal != OHOS::GSERROR_OK || planes == nullptr || planes->planeCount <= NUM_1) { in SetYuvDataInfo()
203 } else if (planes->planeCount >= NUM_2) { in SetYuvDataInfo()
207 info.yStride = planes->planes[NUM_0].columnStride; in SetYuvDataInfo()
208 info.uvStride = planes->planes[uvPlaneOffset].columnStride; in SetYuvDataInfo()
209 info.yOffset = planes->planes[NUM_0].offset; in SetYuvDataInfo()
210 info.uvOffset = planes->planes[uvPlaneOffset].offset; in SetYuvDataInfo()
H A Dauxiliary_generator.cpp151 OH_NativeBuffer_Planes *planes = nullptr; in SetDmaYuvInfo() local
152 GSError retVal = surfaceBuffer->GetPlanesInfo(reinterpret_cast<void **>(&planes)); in SetDmaYuvInfo()
153 if (retVal != OHOS::GSERROR_OK || planes == nullptr) { in SetDmaYuvInfo()
157 const OH_NativeBuffer_Plane &planeY = planes->planes[0]; in SetDmaYuvInfo()
159 …const OH_NativeBuffer_Plane &planeUV = planes->planes[isNV21 ? NV21_PLANE_UV_INDEX : NV12_PLANE_UV… in SetDmaYuvInfo()
/ohos5.0/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/
H A Davmetadatahelper_impl.cpp224 OH_NativeBuffer_Planes *planes = nullptr; in CreatePixelMapYuv() local
229 GSError retVal = mySurfaceBuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in CreatePixelMapYuv()
230 isPlanesAvailable = (retVal == OHOS::GSERROR_OK) && (planes != nullptr); in CreatePixelMapYuv()
240 SetPixelMapYuvInfo(pixelMap, isPlanesAvailable, planes); in CreatePixelMapYuv()
288 OH_NativeBuffer_Planes *planes) in SetPixelMapYuvInfo() argument
299 if (isPlanesAvailable && planes != nullptr) { in SetPixelMapYuvInfo()
300 yuvDataInfo.yStride = planes->planes[PLANE_Y].columnStride / NUM_2; in SetPixelMapYuvInfo()
301 yuvDataInfo.uvStride = planes->planes[PLANE_U].columnStride / NUM_2; in SetPixelMapYuvInfo()
302 yuvDataInfo.yOffset = planes->planes[PLANE_Y].offset / NUM_2; in SetPixelMapYuvInfo()
303 yuvDataInfo.uvOffset = planes->planes[PLANE_U].offset / NUM_2; in SetPixelMapYuvInfo()
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/model/camera/include/
H A Dsg_dma.h23 if (planeId >= buffer->numPlanes || buffer->planes[planeId].memPriv == NULL) { in DmaSgPlaneDesc()
28 return (struct sg_table *)queue->memOps->getCookie(buffer->planes[planeId].memPriv); in DmaSgPlaneDesc()
H A Dcontig_dma.h23 if (planeId >= buffer->numPlanes || buffer->planes[planeId].memPriv == NULL) { in ContigDmaGetAddr()
28 addr = queue->memOps->getCookie(buffer->planes[planeId].memPriv); in ContigDmaGetAddr()
/ohos5.0/drivers/peripheral/display/hal/default/
H A Ddisplay_gralloc.c59 const PlaneLayoutInfo *planes; member
127 if ((fmtInfo != NULL) && (fmtInfo->planes != NULL)) { in AdjustStrideFromFormat()
128 uint32_t sum = fmtInfo->planes->radio[0]; in AdjustStrideFromFormat()
129 for (uint32_t i = 1; (i < fmtInfo->planes->numPlanes) && (i < MAX_PLANES); i++) { in AdjustStrideFromFormat()
130 sum += fmtInfo->planes->radio[i]; in AdjustStrideFromFormat()
133 width = DIV_ROUND_UP((width * sum), fmtInfo->planes->radio[0]); in AdjustStrideFromFormat()
/ohos5.0/foundation/graphic/graphic_surface/surface/test/unittest/
H A Dnative_buffer_test.cpp766 ASSERT_EQ(outPlanes.planes[0].offset, 0);
767 ASSERT_NE(outPlanes.planes[1].offset, 0);
768 ASSERT_NE(outPlanes.planes[2].offset, 0);
771 std::cout << "offset:" << outPlanes.planes[j].offset <<
772 " rowStride:" << outPlanes.planes[j].rowStride << " columnStride:" <<
773 outPlanes.planes[j].columnStride << std::endl;
834 ASSERT_EQ(outPlanes.planes[0].offset, 0);
835 ASSERT_NE(outPlanes.planes[1].offset, 0);
836 ASSERT_NE(outPlanes.planes[2].offset, 0);
/ohos5.0/drivers/peripheral/display/hal/default_standard/src/display_device/drm/
H A Ddrm_device.cpp217 drmModePlanePtr p = drmModeGetPlane(GetDrmFd(), planeRes->planes[i]); in FindAllPlane()
268 std::vector<std::shared_ptr<DrmPlane>> planes; in GetDrmPlane() local
272 planes.push_back(plane); in GetDrmPlane()
275 DISPLAY_LOGD("the planes count %{public}zd", planes.size()); in GetDrmPlane()
276 return planes; in GetDrmPlane()
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhdecoder.cpp591 OH_NativeBuffer_Planes *planes = nullptr; in UpdateFormatFromSurfaceBuffer() local
592 GSError err = surfaceBuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in UpdateFormatFromSurfaceBuffer()
593 if (err != GSERROR_OK || planes == nullptr) { in UpdateFormatFromSurfaceBuffer()
597 for (uint32_t i = 0; i < planes->planeCount; i++) { in UpdateFormatFromSurfaceBuffer()
599 … i, planes->planes[i].offset, planes->planes[i].rowStride, planes->planes[i].columnStride); in UpdateFormatFromSurfaceBuffer()
601 …int32_t sliceHeight = static_cast<int32_t>(static_cast<int64_t>(planes->planes[1].offset) / stride… in UpdateFormatFromSurfaceBuffer()
/ohos5.0/drivers/peripheral/display/composer/vdi_base/src/
H A Ddrm_device.cpp241 drmModePlanePtr p = drmModeGetPlane(GetDrmFd(), planeRes->planes[i]); in FindAllPlane()
277 std::vector<std::shared_ptr<DrmPlane>> planes; in GetDrmPlane() local
280 planes.push_back(plane); in GetDrmPlane()
283 DISPLAY_LOGD("the planes count %{public}zd", planes.size()); in GetDrmPlane()
284 return planes; in GetDrmPlane()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_decoder.cpp350 OH_NativeBuffer_Planes *planes = nullptr; in HeapMemAlloc() local
352 if (retVal != OHOS::GSERROR_OK || planes == nullptr || planes->planeCount < NUM_2) { in HeapMemAlloc()
362 context.yuvInfo.yStride = planes->planes[0].columnStride; in HeapMemAlloc()
363 context.yuvInfo.uvStride = planes->planes[uvPlaneOffset].columnStride; in HeapMemAlloc()
364 context.yuvInfo.yOffset = planes->planes[0].offset; in HeapMemAlloc()
365 context.yuvInfo.uvOffset = planes->planes[uvPlaneOffset].offset; in HeapMemAlloc()
1221 OH_NativeBuffer_Planes *planes = nullptr; in HeapMemAlloc() local
1226 context.yuvInfo.yStride = planes->planes[0].columnStride; in HeapMemAlloc()
1227 context.yuvInfo.uvStride = planes->planes[1].columnStride; in HeapMemAlloc()
1228 context.yuvInfo.yOffset = planes->planes[0].offset; in HeapMemAlloc()
[all …]

123