Home
last modified time | relevance | path

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

/foundation/multimodalinput/input/service/window_manager/test/
H A Dpointer_drawing_manager_ex_test.cpp510 Media::PixelFormat pixelFmt = Media::PixelFormat::RGB_565; in HWTEST_F() local
511 EXPECT_EQ(pointerDrawingManager.PixelFormatToColorType(pixelFmt), in HWTEST_F()
513 pixelFmt = Media::PixelFormat::RGBA_8888; in HWTEST_F()
514 EXPECT_EQ(pointerDrawingManager.PixelFormatToColorType(pixelFmt), in HWTEST_F()
516 pixelFmt = Media::PixelFormat::BGRA_8888; in HWTEST_F()
517 EXPECT_EQ(pointerDrawingManager.PixelFormatToColorType(pixelFmt), in HWTEST_F()
519 pixelFmt = Media::PixelFormat::ALPHA_8; in HWTEST_F()
520 EXPECT_EQ(pointerDrawingManager.PixelFormatToColorType(pixelFmt), in HWTEST_F()
522 pixelFmt = Media::PixelFormat::RGBA_F16; in HWTEST_F()
523 EXPECT_EQ(pointerDrawingManager.PixelFormatToColorType(pixelFmt), in HWTEST_F()
[all...]
H A Dpointer_drawing_manager_test.cpp1795 Media::PixelFormat pixelFmt = Media::PixelFormat::RGB_565; in HWTEST_F() local
1796 EXPECT_EQ(pointerDrawingManager.PixelFormatToColorType(pixelFmt), in HWTEST_F()
1798 pixelFmt = Media::PixelFormat::RGBA_8888; in HWTEST_F()
1799 EXPECT_EQ(pointerDrawingManager.PixelFormatToColorType(pixelFmt), in HWTEST_F()
1801 pixelFmt = Media::PixelFormat::BGRA_8888; in HWTEST_F()
1802 EXPECT_EQ(pointerDrawingManager.PixelFormatToColorType(pixelFmt), in HWTEST_F()
1804 pixelFmt = Media::PixelFormat::ALPHA_8; in HWTEST_F()
1805 EXPECT_EQ(pointerDrawingManager.PixelFormatToColorType(pixelFmt), in HWTEST_F()
1807 pixelFmt = Media::PixelFormat::RGBA_F16; in HWTEST_F()
1808 EXPECT_EQ(pointerDrawingManager.PixelFormatToColorType(pixelFmt), in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/
H A Dheif_hw_decoder.cpp89 sptr<SurfaceBuffer> HeifHardwareDecoder::AllocateOutputBuffer(uint32_t width, uint32_t height, int32_t pixelFmt) in AllocateOutputBuffer() argument
92 LOGI("BufferInfo: width=%{public}u, height=%{public}u, pixelFmt=%{public}d", width, height, pixelFmt); in AllocateOutputBuffer()
96 optional<PixelFmt> fmt = TypeConverter::GraphicFmtToFmt(static_cast<GraphicPixelFormat>(pixelFmt)); in AllocateOutputBuffer()
108 .format = pixelFmt, in AllocateOutputBuffer()
184 int32_t pixelFmt = output->GetFormat(); in ConfigureDecoder() local
185 format.SetValue(ImageCodecDescriptionKey::PIXEL_FORMAT, pixelFmt); in ConfigureDecoder()
186 is10Bit_ = (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010 || pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_P010); in ConfigureDecoder()
231 int32_t pixelFmt in GetUvPlaneOffsetFromSurfaceBuffer() local
[all...]
/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()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/magic_pointer_render/
H A Drs_magic_pointer_render_manager.cpp458 auto pixelFmt = param.buffer->GetFormat();
459 if (pixelFmt == GRAPHIC_PIXEL_FMT_BGRA_8888) {
461 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010 || pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_P010) {
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/
H A Dcommand_parser.cpp81 {"pixelFmt", required_argument, nullptr, OPT_PIXEL_FMT},
127 std::cout << " --pixelFmt video pixel fmt. 1 is I420, 2 is NV12, 3 is NV21, 5 is RGBA" << std::endl; in ShowUsage()
403 int pixelFmt; in ParseResourceParam() local
405 value >> dst.dispW >> c >> dst.dispH >> c >> pixelFmt; in ParseResourceParam()
406 dst.pixFmt = static_cast<VideoPixelFormat>(pixelFmt); in ParseResourceParam()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_base_render_engine.cpp193 auto pixelFmt = buffer->GetFormat(); in CreateEglImageFromBuffer() local
213 if (pixelFmt == GRAPHIC_PIXEL_FMT_BGRA_8888) { in CreateEglImageFromBuffer()
215 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010 || pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_P010 || in CreateEglImageFromBuffer()
216 pixelFmt == GRAPHIC_PIXEL_FMT_RGBA_1010102) { in CreateEglImageFromBuffer()
H A Drs_base_render_util.h137 static Drawing::ColorType GetColorTypeFromBufferFormat(int32_t pixelFmt);
H A Drs_base_render_util.cpp918 Drawing::ColorType RSBaseRenderUtil::GetColorTypeFromBufferFormat(int32_t pixelFmt)
920 switch (pixelFmt) {
/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
430 if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_420_SP) { in GetYUVStrideInfo()
436 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_420_SP) { in GetYUVStrideInfo()
442 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010) { in GetYUVStrideInfo()
448 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_P010) { in GetYUVStrideInfo()
495 int32_t pixelFmt = sb->GetFormat(); in CreateMemory() local
496 GetYUVStrideInfo(pixelFmt, planes, strides); in CreateMemory()
/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
216 if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_420_SP) { in GetYUVStrideInfo()
222 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_420_SP) { in GetYUVStrideInfo()
228 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010) { in GetYUVStrideInfo()
234 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_P010) { in GetYUVStrideInfo()
273 int32_t pixelFmt = sb->GetFormat(); in CreateMemory() local
274 GetYUVStrideInfo(pixelFmt, planes, dstStrides); in CreateMemory()
H A Dpixel_map.cpp3776 static void GetYUVStrideInfo(int32_t pixelFmt, OH_NativeBuffer_Planes *planes, YUVStrideInfo &dstStrides) in GetYUVStrideInfo() argument
3778 if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_420_SP) { in GetYUVStrideInfo()
3784 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_420_SP) { in GetYUVStrideInfo()
3790 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCBCR_P010) { in GetYUVStrideInfo()
3796 } else if (pixelFmt == GRAPHIC_PIXEL_FMT_YCRCB_P010) { in GetYUVStrideInfo()
3828 int32_t pixelFmt = sb->GetFormat(); in UpdateSdrYuvStrides() local
3829 GetYUVStrideInfo(pixelFmt, planes, dstStrides); in UpdateSdrYuvStrides()
/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 output_ = hwDecoder_.AllocateOutputBuffer(gridInfo_.displayWidth, gridInfo_.displayHeight, pixelFmt); in AllocOutput()
/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);
/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhencoder.h54 void CalcInputBufSize(PortInfo& info, VideoPixelFormat pixelFmt);
H A Dhcodec.h115 std::optional<PixelFmt> pixelFmt; member
H A Dhcodec.cpp488 if (info.pixelFmt.has_value()) { in SetVideoPortInfo()
493 param.codecColorFormat = info.pixelFmt->graphicFmt; in SetVideoPortInfo()
H A Dhencoder.cpp342 void HEncoder::CalcInputBufSize(PortInfo &info, VideoPixelFormat pixelFmt) in CalcInputBufSize() argument
345 if (pixelFmt == VideoPixelFormat::RGBA) { in CalcInputBufSize()
/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()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/include/hardware/imagecodec/
H A Dimage_codec.h101 std::optional<PixelFmt> pixelFmt; member

Completed in 32 milliseconds