/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/ |
H A D | image_loader_libjpeg.cpp | 43 void MyErrorExit(j_common_ptr cinfo) in MyErrorExit() argument 45 if (cinfo == nullptr) { in MyErrorExit() 46 CORE_LOG_E("cinfo is nullptr in MyErrorExit"); in MyErrorExit() 49 MyErrorMgr *myerr = reinterpret_cast<MyErrorMgr *>(cinfo->err); in MyErrorExit() 50 if (cinfo->err->output_message == nullptr) { in MyErrorExit() 51 CORE_LOG_E("cinfo err output_message is nullptr in MyErrorExit"); in MyErrorExit() 54 (*cinfo->err->output_message)(cinfo); in MyErrorExit() 72 void HandleJPEGColorType(jpeg_decompress_struct &cinfo, uint32_t loadFlags, LibBaseImage::Info &info) in HandleJPEGColorType() argument 76 if (cinfo in HandleJPEGColorType() 97 ReadBuffer16Bit(jpeg_decompress_struct &cinfo, uint16_t *buff, int row_stride, bool needVerticalFlip) ReadBuffer16Bit() argument 119 ReadBuffer8Bit(jpeg_decompress_struct &cinfo, uint8_t *buff, int row_stride, bool needVerticalFlip) ReadBuffer8Bit() argument 139 LoadFromMemory(jpeg_decompress_struct &cinfo, uint32_t loadFlags, Info &info) LoadFromMemory() argument 186 struct jpeg_decompress_struct cinfo; Load() local [all...] |
/foundation/distributedhardware/distributed_screen/services/common/imageJpeg/src/ |
H A D | jpeg_image_processor.cpp | 232 jpeg_compress_struct cinfo; in CompressRgbaToJpeg() local 235 cinfo.err = jpeg_std_error(&jerr); in CompressRgbaToJpeg() 236 jpeg_create_compress(&cinfo); in CompressRgbaToJpeg() 239 jpeg_mem_dest(&cinfo, &outBuffer, &outSize); in CompressRgbaToJpeg() 240 cinfo.image_width = damage.w; in CompressRgbaToJpeg() 241 cinfo.image_height = damage.h; in CompressRgbaToJpeg() 242 cinfo.input_components = RGB_CHROMA; in CompressRgbaToJpeg() 243 cinfo.in_color_space = JCS_RGB; in CompressRgbaToJpeg() 244 jpeg_set_defaults(&cinfo); in CompressRgbaToJpeg() 245 jpeg_set_quality(&cinfo, JPEG_QUALIT in CompressRgbaToJpeg() 280 jpeg_decompress_struct cinfo; DecompressJpegToNV12() local [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/ |
H A D | jpeg_utils.cpp | 142 void InitDstStream(j_compress_ptr cinfo) in InitDstStream() argument 144 if ((cinfo == nullptr) || (cinfo->dest == nullptr)) { in InitDstStream() 148 JpegDstMgr *dest = static_cast<JpegDstMgr *>(cinfo->dest); in InitDstStream() 154 boolean EmptyOutputBuffer(j_compress_ptr cinfo) in EmptyOutputBuffer() argument 156 if (cinfo == nullptr) { in EmptyOutputBuffer() 160 JpegDstMgr *dest = static_cast<JpegDstMgr *>(cinfo->dest); in EmptyOutputBuffer() 163 ERREXIT(cinfo, JERR_FILE_WRITE); in EmptyOutputBuffer() 168 ERREXIT(cinfo, JERR_FILE_WRITE); in EmptyOutputBuffer() 177 void TermDstStream(j_compress_ptr cinfo) in TermDstStream() argument [all...] |
H A D | icc_profile_info.cpp | 50 sk_sp<SkData> ICCProfileInfo::GetICCData(j_decompress_ptr cinfo) in GetICCData() argument 57 isReadIccProfile = jpeg_read_icc_profile(cinfo, &icc_profile, &icc_data_len); in GetICCData() 70 uint32_t ICCProfileInfo::ParsingICCProfile(j_decompress_ptr cinfo) in ParsingICCProfile() argument 75 sk_sp<SkData> profile = GetICCData(cinfo); in ParsingICCProfile() 107 uint32_t ICCProfileInfo::PackingICCProfile(j_compress_ptr cinfo, const SkImageInfo& info) in PackingICCProfile() argument 127 jpeg_write_marker(cinfo, ICC_MARKER, jpegMarkerData->bytes(), jpegMarkerData->size()); in PackingICCProfile()
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/include/ |
H A D | jpeg_utils.h | 67 void ErrorExit(j_common_ptr cinfo); 68 void OutputErrorMessage(j_common_ptr cinfo); 75 void InitDstStream(j_compress_ptr cinfo); 76 boolean EmptyOutputBuffer(j_compress_ptr cinfo); 77 void TermDstStream(j_compress_ptr cinfo);
|
H A D | icc_profile_info.h | 44 * @param cinfo jpeg decompress pointer. 47 sk_sp<SkData> GetICCData(j_decompress_ptr cinfo); 51 * @param cinfo jpeg decompress pointer. 54 uint32_t ParsingICCProfile(j_decompress_ptr cinfo); 70 * @param cinfo jpeg decompress pointer. 74 uint32_t PackingICCProfile(j_compress_ptr cinfo, const SkImageInfo& info);
|
/foundation/arkui/ui_lite/frameworks/common/ |
H A D | image.cpp | 414 struct jpeg_decompress_struct cinfo; in SetJPEGSrc() local 423 cinfo.err = jpeg_std_error(&jerr); in SetJPEGSrc() 424 jpeg_create_decompress(&cinfo); in SetJPEGSrc() 425 jpeg_stdio_src(&cinfo, infile); in SetJPEGSrc() 426 jpeg_read_header(&cinfo, TRUE); in SetJPEGSrc() 427 jpeg_start_decompress(&cinfo); in SetJPEGSrc() 430 uint16_t width = cinfo.output_width; in SetJPEGSrc() 431 uint16_t height = cinfo.output_height; in SetJPEGSrc() 433 uint16_t rowStride = cinfo.output_width * pixelByteSize; in SetJPEGSrc() 434 JSAMPARRAY buffer = (*cinfo in SetJPEGSrc() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | jpeg_utils_test.cpp | 79 j_compress_ptr cinfo = nullptr; in HWTEST_F() local 80 ImagePlugin::InitDstStream(cinfo); in HWTEST_F() 92 j_compress_ptr cinfo = nullptr; in HWTEST_F() local 93 boolean ret = ImagePlugin::EmptyOutputBuffer(cinfo); in HWTEST_F() 106 j_compress_ptr cinfo = nullptr; in HWTEST_F() local 107 ImagePlugin::TermDstStream(cinfo); in HWTEST_F()
|
/foundation/communication/wifi/wifi/frameworks/cj/src/ |
H A D | wifi_callback.cpp | 342 CWifiP2PLinkedInfo cinfo; variable 343 cinfo.connectState = static_cast<int32_t>(info.GetConnectState()); 344 cinfo.isGroupOwner = info.IsGroupOwner(); 345 cinfo.groupOwnerAddr = const_cast<char*>(info.GetGroupOwnerAddress().c_str()); 346 p2pConnectionChange(cinfo); variable
|
H A D | wifi_ffi.cpp | 161 static void SetInfoElemContent(const WifiInfoElem &infoElem, CWifiInfoElem &cinfo) in SetInfoElemContent() argument 180 cinfo.content.head = reinterpret_cast<uint8_t *>(buf); in SetInfoElemContent() 181 cinfo.content.size = inLen - 1; in SetInfoElemContent()
|
/foundation/window/window_manager/snapshot/src/ |
H A D | snapshot_utils.cpp | 68 void mission_error_exit(j_common_ptr cinfo) in mission_error_exit() argument 70 if (cinfo == nullptr || cinfo->err == nullptr) { in mission_error_exit() 74 auto err = reinterpret_cast<MissionErrorMgr*>(cinfo->err); in mission_error_exit()
|
/foundation/arkui/ace_engine/frameworks/bridge/plugin_frontend/ |
H A D | plugin_frontend.cpp | 753 auto cinfo = CopyEventInfo(info); in HandleAsyncEvent() local 755 [eventMarker, cinfo] { eventMarker.CallUiArgFunction(cinfo.get()); }, "ArkUIPluginCallUiArgFunction"); in HandleAsyncEvent()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ |
H A D | declarative_frontend.cpp | 1223 auto cinfo = CopyEventInfo(info); in Initialize() local 1225 [eventMarker, cinfo] { eventMarker.CallUiArgFunction(cinfo.get()); }, "ArkUICallUiArgFunction"); in Initialize()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/ |
H A D | plugin_libjpeg_test.cpp | 1903 j_compress_ptr cinfo = nullptr;
in HWTEST_F() local 1905 uint32_t result = iccProfileInfo.PackingICCProfile(cinfo, info);
in HWTEST_F()
|