Home
last modified time | relevance | path

Searched refs:pixelFmt (Results 1 – 20 of 20) sorted by relevance

/ohos5.0/foundation/multimodalinput/input/service/window_manager/test/
H A Dpointer_drawing_manager_ex_test.cpp337 pixelFmt = Media::PixelFormat::RGBA_8888;
340 pixelFmt = Media::PixelFormat::BGRA_8888;
343 pixelFmt = Media::PixelFormat::ALPHA_8;
346 pixelFmt = Media::PixelFormat::RGBA_F16;
349 pixelFmt = Media::PixelFormat::UNKNOWN;
352 pixelFmt = Media::PixelFormat::ARGB_8888;
355 pixelFmt = Media::PixelFormat::RGB_888;
358 pixelFmt = Media::PixelFormat::NV21;
361 pixelFmt = Media::PixelFormat::NV12;
364 pixelFmt = Media::PixelFormat::CMYK;
[all …]
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/utils/src/
H A Dhistreamer_ability_parser.cpp237 cJSON *pixelFmt = nullptr; in FromJson() local
238 cJSON_ArrayForEach(pixelFmt, videoPixelFmt) { in FromJson()
239 if (pixelFmt && pixelFmt->type == cJSON_Number) { in FromJson()
240 videoEncoderIn.pixel_fmt.push_back((VideoPixelFormat)pixelFmt->valuedouble); in FromJson()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/
H A Dheif_hw_decoder.cpp92 …uffer> HeifHardwareDecoder::AllocateOutputBuffer(uint32_t width, uint32_t height, int32_t pixelFmt) in AllocateOutputBuffer() argument
95 …I("BufferInfo: width=%{public}u, height=%{public}u, pixelFmt=%{public}d", width, height, pixelFmt); in AllocateOutputBuffer()
99 …optional<PixelFmt> fmt = TypeConverter::GraphicFmtToFmt(static_cast<GraphicPixelFormat>(pixelFmt)); in AllocateOutputBuffer()
111 .format = pixelFmt, in AllocateOutputBuffer()
234 int32_t pixelFmt = surfaceBuffer->GetFormat(); in GetUvPlaneOffsetFromSurfaceBuffer() local
235 if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_420_SP || pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010) { in GetUvPlaneOffsetFromSurfaceBuffer()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/pointer_render/
H A Drs_pointer_render_manager.cpp442 auto pixelFmt = param.buffer->GetFormat(); in GetIntersectImageFromGL() local
443 if (pixelFmt == GRAPHIC_PIXEL_FMT_BGRA_8888) { in GetIntersectImageFromGL()
445 … } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010 || pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_P010) { in GetIntersectImageFromGL()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/heif_hw_decode/common/
H A Dmock_heif_hw_decode_flow.cpp203 GraphicPixelFormat pixelFmt = iter->second; in AllocOutput() local
204 …tput_ = hwDecoder_.AllocateOutputBuffer(gridInfo_.displayWidth, gridInfo_.displayHeight, pixelFmt); in AllocOutput()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_yuv.cpp236 static void GetYUVStrideInfo(int32_t pixelFmt, OH_NativeBuffer_Planes *planes, YUVStrideInfo &dstSt… in GetYUVStrideInfo() argument
238 if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_420_SP) { in GetYUVStrideInfo()
244 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_420_SP) { in GetYUVStrideInfo()
250 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010) { in GetYUVStrideInfo()
256 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_P010) { in GetYUVStrideInfo()
295 int32_t pixelFmt = sb->GetFormat(); in CreateMemory() local
296 GetYUVStrideInfo(pixelFmt, planes, dstStrides); in CreateMemory()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_base_render_engine.cpp219 auto pixelFmt = buffer->GetFormat(); in CreateEglImageFromBuffer() local
239 if (pixelFmt == GRAPHIC_PIXEL_FMT_BGRA_8888) { in CreateEglImageFromBuffer()
241 … } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010 || pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_P010 || in CreateEglImageFromBuffer()
242 pixelFmt == GRAPHIC_PIXEL_FMT_RGBA_1010102) { in CreateEglImageFromBuffer()
H A Drs_base_render_util.h138 static Drawing::ColorType GetColorTypeFromBufferFormat(int32_t pixelFmt);
H A Drs_base_render_util.cpp920 Drawing::ColorType RSBaseRenderUtil::GetColorTypeFromBufferFormat(int32_t pixelFmt) in GetColorTypeFromBufferFormat() argument
922 switch (pixelFmt) { in GetColorTypeFromBufferFormat()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dimage_format_convert.cpp460 static void GetYUVStrideInfo(int32_t pixelFmt, OH_NativeBuffer_Planes *planes, YUVStrideInfo &dstSt… in GetYUVStrideInfo() argument
462 if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_420_SP) { in GetYUVStrideInfo()
468 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_420_SP) { in GetYUVStrideInfo()
474 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010) { in GetYUVStrideInfo()
480 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_P010) { in GetYUVStrideInfo()
527 int32_t pixelFmt = sb->GetFormat(); in CreateMemory() local
528 GetYUVStrideInfo(pixelFmt, planes, strides); in CreateMemory()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
H A Dcommand_parser.cpp408 int pixelFmt; in ParseResourceParam() local
410 value >> dst.dispW >> c >> dst.dispH >> c >> pixelFmt; in ParseResourceParam()
411 dst.pixFmt = static_cast<VideoPixelFormat>(pixelFmt); in ParseResourceParam()
/ohos5.0/drivers/peripheral/codec/test/unittest/hdi_image/
H A Dcodec_hdi_heif_encode_test.cpp114 … static sptr<NativeBuffer> AllocateNativeBuffer(uint32_t width, uint32_t height, uint32_t pixelFmt) in AllocateNativeBuffer() argument
123 .format = pixelFmt in AllocateNativeBuffer()
134 …static ImageItem CreateImageItem(ImgType imageType, uint32_t pixelFmt, bool needAllocPixelBuffer =… in CreateImageItem() argument
151 item.pixelBuffer = AllocateNativeBuffer(PIXEL_WIDTH, PIXEL_HEIGHT, pixelFmt); in CreateImageItem()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/
H A Dpicture.cpp204 int32_t pixelFmt = sBuffer->GetFormat(); in SetYuvDataInfo() local
205 …int uvPlaneOffset = (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_420_SP || pixelFmt == GRAPHIC_PIXEL_FMT_Y… in SetYuvDataInfo()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/hardware/
H A Dheif_hw_decoder.h33 sptr<SurfaceBuffer> AllocateOutputBuffer(uint32_t width, uint32_t height, int32_t pixelFmt);
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhencoder.h53 void CalcInputBufSize(PortInfo& info, VideoPixelFormat pixelFmt);
H A Dhcodec.cpp488 if (info.pixelFmt.has_value()) { in SetVideoPortInfo()
493 param.codecColorFormat = info.pixelFmt->graphicFmt; in SetVideoPortInfo()
H A Dhencoder.cpp343 void HEncoder::CalcInputBufSize(PortInfo &info, VideoPixelFormat pixelFmt) in CalcInputBufSize() argument
346 if (pixelFmt == VideoPixelFormat::RGBA) { in CalcInputBufSize()
H A Dhcodec.h115 std::optional<PixelFmt> pixelFmt; member
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/
H A Dimage_codec.cpp325 if (info.pixelFmt.has_value()) { in SetVideoPortInfo()
330 param.codecColorFormat = info.pixelFmt->graphicFmt; in SetVideoPortInfo()
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/hardware/imagecodec/
H A Dimage_codec.h101 std::optional<PixelFmt> pixelFmt; member