MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / LodePNGText_copy

Function LodePNGText_copy

dependency/densecrf/examples/lodepng.cpp:2795–2806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2793}
2794
2795static unsigned LodePNGText_copy(LodePNGInfo* dest, const LodePNGInfo* source)
2796{
2797 size_t i = 0;
2798 dest->text_keys = 0;
2799 dest->text_strings = 0;
2800 dest->text_num = 0;
2801 for(i = 0; i != source->text_num; ++i)
2802 {
2803 CERROR_TRY_RETURN(lodepng_add_text(dest, source->text_keys[i], source->text_strings[i]));
2804 }
2805 return 0;
2806}
2807
2808void lodepng_clear_text(LodePNGInfo* info)
2809{

Callers 1

lodepng_info_copyFunction · 0.85

Calls 1

lodepng_add_textFunction · 0.85

Tested by

no test coverage detected