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

Function LodePNGIText_copy

dependency/densecrf/examples/lodepng.cpp:2864–2878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2862}
2863
2864static unsigned LodePNGIText_copy(LodePNGInfo* dest, const LodePNGInfo* source)
2865{
2866 size_t i = 0;
2867 dest->itext_keys = 0;
2868 dest->itext_langtags = 0;
2869 dest->itext_transkeys = 0;
2870 dest->itext_strings = 0;
2871 dest->itext_num = 0;
2872 for(i = 0; i != source->itext_num; ++i)
2873 {
2874 CERROR_TRY_RETURN(lodepng_add_itext(dest, source->itext_keys[i], source->itext_langtags[i],
2875 source->itext_transkeys[i], source->itext_strings[i]));
2876 }
2877 return 0;
2878}
2879
2880void lodepng_clear_itext(LodePNGInfo* info)
2881{

Callers 1

lodepng_info_copyFunction · 0.85

Calls 1

lodepng_add_itextFunction · 0.85

Tested by

no test coverage detected