Home
last modified time | relevance | path

Searched refs:planes (Results 1 - 25 of 30) sorted by relevance

12

/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()
44 planes[Frustum::PLANE_RIGHT].x = matrix[0].w - matrix[0].x; in CreateFrustum()
45 planes[Frustum::PLANE_RIGHT].y = matrix[1].w - matrix[1].x; in CreateFrustum()
46 planes[Frustum::PLANE_RIGHT].z = matrix[2].w - matrix[2].x; in CreateFrustum()
47 planes[Frustu in CreateFrustum()
[all...]
/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()
65 if (data.planes[YCOM] == nullptr || data.strides[YCOM] == 0) { in IsValidYuvGrayData()
147 srcY = src.planes[YCOM] + k * src.strides[YCOM]; in CopyYData()
148 uint8_t* outY = dest.planes[YCOM] + k * dest.strides[YCOM]; in CopyYData()
155 uint8_t* outY = dest.planes[YCOM] + height * dest.strides[YCOM]; in CopyYData()
177 const uint8_t* srcU = src.planes[UCO in I4xxToI420_c()
[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()
455 jpegOutYuvInfo.planes, width, nullptr, height, 0); in DoDecodeToYuvPlane()
505 if (srcPlaneInfo.planes[YCOM] == nullptr || srcPlaneInfo.planes[UCOM] == nullptr || in ValidateParameter()
506 srcPlaneInfo.planes[VCOM] == nullptr) { in ValidateParameter()
550 dest.planes[YCO in ConvertFrom4xx()
[all...]
/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()
137 static_cast<unsigned int>(planesInfo->planes[CHANNEL_UV2].offset); in ConfigYUVFormat()
142 rowbyte[CHANNEL_UV1] = planesInfo->planes[CHANNEL_UV2].columnStride; in ConfigYUVFormat()
143 rowbyte[CHANNEL_UV2] = planesInfo->planes[CHANNEL_UV in ConfigYUVFormat()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dimage_format_convert.cpp428 static void GetYUVStrideInfo(int32_t pixelFmt, OH_NativeBuffer_Planes *planes, YUVStrideInfo &dstStrides) in GetYUVStrideInfo() argument
431 auto yStride = planes->planes[PLANE_Y].columnStride; in GetYUVStrideInfo()
432 auto uvStride = planes->planes[PLANE_U].columnStride; in GetYUVStrideInfo()
433 auto yOffset = planes->planes[PLANE_Y].offset; in GetYUVStrideInfo()
434 auto uvOffset = planes->planes[PLANE_U].offset; in GetYUVStrideInfo()
437 auto yStride = planes in GetYUVStrideInfo()
488 OH_NativeBuffer_Planes *planes = nullptr; CreateMemory() local
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_yuv.cpp214 static void GetYUVStrideInfo(int32_t pixelFmt, OH_NativeBuffer_Planes *planes, YUVStrideInfo &dstStrides) in GetYUVStrideInfo() argument
217 auto yStride = planes->planes[PLANE_Y].columnStride; in GetYUVStrideInfo()
218 auto uvStride = planes->planes[PLANE_U].columnStride; in GetYUVStrideInfo()
219 auto yOffset = planes->planes[PLANE_Y].offset; in GetYUVStrideInfo()
220 auto uvOffset = planes->planes[PLANE_U].offset; in GetYUVStrideInfo()
223 auto yStride = planes in GetYUVStrideInfo()
268 OH_NativeBuffer_Planes *planes = nullptr; CreateMemory() local
[all...]
H A Dpixel_map.cpp602 OH_NativeBuffer_Planes *planes = nullptr; in InitYuvDataOutInfo() local
603 GSError retVal = surfaceBuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in InitYuvDataOutInfo()
604 if (retVal != OHOS::GSERROR_OK || planes == nullptr || planes->planeCount < NUM_2) { in InitYuvDataOutInfo()
615 yuvInfo.yStride = planes->planes[0].columnStride; in InitYuvDataOutInfo()
616 yuvInfo.uvStride = planes->planes[uvPlaneOffset].columnStride; in InitYuvDataOutInfo()
617 yuvInfo.yOffset = planes->planes[ in InitYuvDataOutInfo()
3776 GetYUVStrideInfo(int32_t pixelFmt, OH_NativeBuffer_Planes *planes, YUVStrideInfo &dstStrides) GetYUVStrideInfo() argument
3823 OH_NativeBuffer_Planes *planes = nullptr; UpdateSdrYuvStrides() local
[all...]
/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[ in OH_NativeBuffer_MapPlanes()
[all...]
H A Dsurface_buffer_impl.cpp454 planesInfo_.planeCount = layout.planes.size(); in GetPlanesInfo()
456 planesInfo_.planes[i].offset = layout.planes[i].offset; in GetPlanesInfo()
457 planesInfo_.planes[i].rowStride = layout.planes[i].hStride; in GetPlanesInfo()
458 planesInfo_.planes[i].columnStride = layout.planes[i].vStride; in GetPlanesInfo()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/
H A Dpicture.cpp192 OH_NativeBuffer_Planes *planes = nullptr; in SetYuvDataInfo() local
193 GSError retVal = sBuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in SetYuvDataInfo()
196 if (retVal != OHOS::GSERROR_OK || planes == nullptr || planes->planeCount <= NUM_1) { in SetYuvDataInfo()
199 } else if (planes->planeCount >= NUM_2) { in SetYuvDataInfo()
200 info.yStride = planes->planes[NUM_0].columnStride; in SetYuvDataInfo()
201 info.uvStride = planes->planes[NUM_1].columnStride; in SetYuvDataInfo()
202 info.yOffset = planes in SetYuvDataInfo()
[all...]
/foundation/multimedia/av_codec/services/services/codec/ipc/
H A Dbuffer_converter.cpp429 OH_NativeBuffer_Planes *planes = nullptr; in GetSliceHeightFromSurfaceBuffer() local
430 GSError err = surfaceBuffer->GetPlanesInfo(reinterpret_cast<void **>(&planes)); in GetSliceHeightFromSurfaceBuffer()
431 if (err != GSERROR_OK || planes == nullptr) { in GetSliceHeightFromSurfaceBuffer()
435 uint32_t count = planes->planeCount; in GetSliceHeightFromSurfaceBuffer()
437 AVCODEC_LOGW("planes count is %{public}u", count); in GetSliceHeightFromSurfaceBuffer()
440 return static_cast<int32_t>(static_cast<int64_t>(planes->planes[1].offset) / surfaceBuffer->GetStride()); in GetSliceHeightFromSurfaceBuffer()
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/util/
H A Dintf_frustum_util.h57 BASE_NS::Math::Vec4 planes[PLANE_COUNT]; member
66 /** Create frustum planes from input matrix.
67 * @param matrix Matrix to create planes from. (Usually view-proj matrix)
68 * @return Frustum with normalized planes, normals pointing towards the center of the frustum.
72 /** Test sphere against frustum planes.
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_decoder.cpp333 OH_NativeBuffer_Planes *planes = nullptr; in HeapMemAlloc() local
334 GSError retVal = hwBuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in HeapMemAlloc()
335 if (retVal != OHOS::GSERROR_OK || planes == nullptr || planes->planeCount < NUM_2) { in HeapMemAlloc()
345 context.yuvInfo.yStride = planes->planes[0].columnStride; in HeapMemAlloc()
346 context.yuvInfo.uvStride = planes->planes[uvPlaneOffset].columnStride; in HeapMemAlloc()
347 context.yuvInfo.yOffset = planes->planes[ in HeapMemAlloc()
1160 OH_NativeBuffer_Planes *planes = nullptr; HeapMemAlloc() local
[all...]
/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhdecoder.cpp540 OH_NativeBuffer_Planes *planes = nullptr; in UpdateFormatFromSurfaceBuffer() local
541 GSError err = surfaceBuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in UpdateFormatFromSurfaceBuffer()
542 if (err != GSERROR_OK || planes == nullptr) { in UpdateFormatFromSurfaceBuffer()
546 for (uint32_t i = 0; i < planes->planeCount; i++) { in UpdateFormatFromSurfaceBuffer()
548 i, planes->planes[i].offset, planes->planes[i].rowStride, planes->planes[ in UpdateFormatFromSurfaceBuffer()
[all...]
H A Dhcodec_dfx.cpp420 OH_NativeBuffer_Planes *planes = nullptr; in DecideDumpInfo() local
421 GSError err = surfaceBuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in DecideDumpInfo()
422 if (err != GSERROR_OK || planes == nullptr) { // compressed in DecideDumpInfo()
427 alignedH = static_cast<int32_t>(static_cast<int64_t>(planes->planes[1].offset) / byteStride); in DecideDumpInfo()
/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/
H A Davmetadatahelper_impl.cpp458 OH_NativeBuffer_Planes *planes = nullptr; in SetPixelMapYuvInfo() local
459 GSError retVal = surfaceBuffer->GetPlanesInfo(reinterpret_cast<void**>(&planes)); in SetPixelMapYuvInfo()
460 if (retVal != OHOS::GSERROR_OK || planes == nullptr) { in SetPixelMapYuvInfo()
465 yuvDataInfo.yStride = planes->planes[PLANE_Y].columnStride / ratio; in SetPixelMapYuvInfo()
466 yuvDataInfo.uvStride = planes->planes[PLANE_U].columnStride / ratio; in SetPixelMapYuvInfo()
467 yuvDataInfo.yOffset = planes->planes[PLANE_Y].offset / ratio; in SetPixelMapYuvInfo()
468 yuvDataInfo.uvOffset = planes in SetPixelMapYuvInfo()
[all...]
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/jpeg_yuv_decoder/
H A Djpeg_yuvdata_converter.h38 unsigned char *planes[YUVCOMPONENT_MAX] = { 0 }; member
/foundation/multimedia/media_foundation/engine/plugin/plugins/sink/sdl/video_sink/
H A Dsdl_video_sink_plugin.cpp392 if (videoMeta->planes != 3) { // 3 in VideoImageDisaplay()
393 MEDIA_LOG_E("Invalid video buffer, planes: " PUBLIC_LOG_U32, videoMeta->planes); in VideoImageDisaplay()
399 if (videoMeta->planes != 2) { // 2 in VideoImageDisaplay()
400 MEDIA_LOG_E("Invalid video buffer, planes: " PUBLIC_LOG_U32, videoMeta->planes); in VideoImageDisaplay()
/foundation/graphic/graphic_surface/interfaces/inner_api/surface/
H A Dnative_buffer.h364 uint32_t planeCount; ///< Number of distinct planes.
365 OH_NativeBuffer_Plane planes[4]; ///< Array of image planes. member
536 * @param outPlanes Indicates all image planes that contain the pixel data.
/foundation/multimedia/media_foundation/engine/include/plugin/common/
H A Dplugin_buffer.h167 /// the number of planes in the image.
168 uint32_t planes {0};
170 /// array of strides for the planes.
173 /// array of offsets for the planes.
/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/
H A Djpeg_encoder.cpp277 JSAMPARRAY planes[COMPONENT_NUM_YUV420SP]{ y, u, v }; in Yuv420spEncoder()
303 jpeg_write_raw_data(&encodeInfo_, planes, Y_SAMPLE_ROW); in Yuv420spEncoder()
/foundation/multimedia/media_foundation/engine/plugin/common/
H A Dplugin_buffer.cpp183 bufferMeta->planes = planes; in Clone()
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/video_capture/
H A Dvideo_file_capture_plugin.cpp236 videoMeta->planes = videoMeta->stride.size(); in SetVideoBufferMeta()
H A Dvideo_capture_plugin.cpp285 videoMeta->planes = videoMeta->stride.size(); in SetVideoBufferMeta()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/
H A Dheif_hw_decoder.cpp233 offset = outputPlanes->planes[PLANE_U].offset; in GetUvPlaneOffsetFromSurfaceBuffer()
235 offset = outputPlanes->planes[PLANE_V].offset; in GetUvPlaneOffsetFromSurfaceBuffer()

Completed in 23 milliseconds

12