Home
last modified time | relevance | path

Searched refs:pngStruct (Results 1 – 2 of 2) sorted by relevance

/test/ostest/wukong/common/src/
Dwukong_util.cpp57 … png_structp pngStruct = png_create_write_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr); in TakeWuKongScreenCap() local
58 if (pngStruct == nullptr) { in TakeWuKongScreenCap()
62 png_infop pngInfo = png_create_info_struct(pngStruct); in TakeWuKongScreenCap()
65 png_destroy_write_struct(&pngStruct, nullptr); in TakeWuKongScreenCap()
71 png_destroy_write_struct(&pngStruct, &pngInfo); in TakeWuKongScreenCap()
74 png_init_io(pngStruct, fp); in TakeWuKongScreenCap()
75 …png_set_IHDR(pngStruct, pngInfo, width, height, bitmapDepth, PNG_COLOR_TYPE_RGBA, PNG_INTERLACE_NO… in TakeWuKongScreenCap()
77 png_set_packing(pngStruct); // set packing info in TakeWuKongScreenCap()
78 png_write_info(pngStruct, pngInfo); // write to header in TakeWuKongScreenCap()
80 png_write_row(pngStruct, data + (i * stride)); in TakeWuKongScreenCap()
[all …]
/test/testfwk/arkxtest/uitest/server/
Dsystem_ui_controller.cpp582 … png_structp pngStruct = png_create_write_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr); in TakeScreenCap() local
583 if (pngStruct == nullptr) { in TakeScreenCap()
587 png_infop pngInfo = png_create_info_struct(pngStruct); in TakeScreenCap()
590 png_destroy_write_struct(&pngStruct, nullptr); in TakeScreenCap()
593 png_init_io(pngStruct, fp); in TakeScreenCap()
600 …png_set_IHDR(pngStruct, pngInfo, width, height, bitmapDepth, PNG_COLOR_TYPE_RGBA, PNG_INTERLACE_NO… in TakeScreenCap()
602 png_set_packing(pngStruct); // set packing info in TakeScreenCap()
603 png_write_info(pngStruct, pngInfo); // write to header in TakeScreenCap()
605 png_write_row(pngStruct, data + (column * stride)); in TakeScreenCap()
608 png_write_end(pngStruct, pngInfo); in TakeScreenCap()
[all …]