Home
last modified time | relevance | path

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

/test/ostest/wukong/common/src/
H A Dwukong_util.cpp97 png_structp pngStruct = png_create_write_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr); in TakeWuKongScreenCap() local
98 if (pngStruct == nullptr) { in TakeWuKongScreenCap()
102 png_infop pngInfo = png_create_info_struct(pngStruct); in TakeWuKongScreenCap()
105 png_destroy_write_struct(&pngStruct, nullptr); in TakeWuKongScreenCap()
111 png_destroy_write_struct(&pngStruct, &pngInfo); in TakeWuKongScreenCap()
114 png_init_io(pngStruct, fp); in TakeWuKongScreenCap()
115 png_set_IHDR(pngStruct, pngInfo, width, height, bitmapDepth, PNG_COLOR_TYPE_RGBA, PNG_INTERLACE_NONE, in TakeWuKongScreenCap()
117 png_set_packing(pngStruct); // set packing info in TakeWuKongScreenCap()
118 png_write_info(pngStruct, pngInfo); // write to header in TakeWuKongScreenCap()
120 png_write_row(pngStruct, dat in TakeWuKongScreenCap()
[all...]

Completed in 2 milliseconds