Searched refs:imageFile (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/drivers/peripheral/codec/test/demo/heif/src/ |
H A D | buffer_helper.cpp | 108 uint32_t BufferHelper::GetPixelFmtFromFileSuffix(const string& imageFile) in GetPixelFmtFromFileSuffix() argument 110 if (imageFile.rfind(".rgba") != string::npos) { in GetPixelFmtFromFileSuffix() 113 if (imageFile.rfind(".nv21") != string::npos) { in GetPixelFmtFromFileSuffix() 119 sptr<NativeBuffer> BufferHelper::CreateImgBuffer(const string& imageFile) in CreateImgBuffer() argument 121 IF_TRUE_RETURN_VAL(imageFile.length() <= 0, nullptr); in CreateImgBuffer() 122 ifstream ifs(imageFile, ios::binary); in CreateImgBuffer() 123 … IF_TRUE_RETURN_VAL_WITH_MSG(!ifs.is_open(), nullptr, "cannot open %{public}s", imageFile.c_str()); in CreateImgBuffer() 125 IF_TRUE_RETURN_VAL_WITH_MSG(!ExtractPixelInfoFromFilePath(imageFile, pixelInfo), nullptr, in CreateImgBuffer() 126 "invalid file path format: %{public}s", imageFile.c_str()); in CreateImgBuffer() 130 pixelInfo.pixFmt = GetPixelFmtFromFileSuffix(imageFile); in CreateImgBuffer()
|
/ohos5.0/drivers/peripheral/codec/test/demo/heif/include/ |
H A D | buffer_helper.h | 35 OHOS::sptr<OHOS::HDI::Base::NativeBuffer> CreateImgBuffer(const std::string& imageFile); 50 static uint32_t GetPixelFmtFromFileSuffix(const std::string& imageFile);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2_exporter.cpp | 1277 } else if (auto imageFile = fileManager.OpenFile(image->uri); imageFile) { in ExportImageData() local 1299 const size_t imageSize = static_cast<const size_t>(imageFile->GetLength()); in ExportImageData() 1305 imageFile->Read(dataBuffer.data() + imageOffset, imageSize); in ExportImageData()
|