Searched refs:pngStruct (Results 1 – 2 of 2) sorted by relevance
/test/ostest/wukong/common/src/ |
D | wukong_util.cpp | 54 … png_structp pngStruct = png_create_write_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr); in TakeWuKongScreenCap() local 55 if (pngStruct == nullptr) { in TakeWuKongScreenCap() 59 png_infop pngInfo = png_create_info_struct(pngStruct); in TakeWuKongScreenCap() 62 png_destroy_write_struct(&pngStruct, nullptr); in TakeWuKongScreenCap() 68 png_destroy_write_struct(&pngStruct, &pngInfo); in TakeWuKongScreenCap() 71 png_init_io(pngStruct, fp); in TakeWuKongScreenCap() 72 …png_set_IHDR(pngStruct, pngInfo, width, height, bitmapDepth, PNG_COLOR_TYPE_RGBA, PNG_INTERLACE_NO… in TakeWuKongScreenCap() 74 png_set_packing(pngStruct); // set packing info in TakeWuKongScreenCap() 75 png_write_info(pngStruct, pngInfo); // write to header in TakeWuKongScreenCap() 77 png_write_row(pngStruct, data + (i * stride)); in TakeWuKongScreenCap() [all …]
|
/test/testfwk/arkxtest/uitest/server/ |
D | system_ui_controller.cpp | 445 … png_structp pngStruct = png_create_write_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr); in TakeScreenCap() local 446 if (pngStruct == nullptr) { in TakeScreenCap() 450 png_infop pngInfo = png_create_info_struct(pngStruct); in TakeScreenCap() 453 png_destroy_write_struct(&pngStruct, nullptr); in TakeScreenCap() 456 png_init_io(pngStruct, fp); in TakeScreenCap() 463 …png_set_IHDR(pngStruct, pngInfo, width, height, bitmapDepth, PNG_COLOR_TYPE_RGBA, PNG_INTERLACE_NO… in TakeScreenCap() 465 png_set_packing(pngStruct); // set packing info in TakeScreenCap() 466 png_write_info(pngStruct, pngInfo); // write to header in TakeScreenCap() 468 png_write_row(pngStruct, data + (column * stride)); in TakeScreenCap() 471 png_write_end(pngStruct, pngInfo); in TakeScreenCap() [all …]
|