MCPcopy Create free account
hub / github.com/LuminanceHDR/LuminanceHDR / print_image_htmlcode

Function print_image_htmlcode

src/HdrHTML/hdrhtml.cpp:895–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

893}
894
895void print_image_htmlcode(ostream &out, HDRHTMLSet *hdrhtml_set,
896 const HDRHTMLImage &it) {
897 string obj_name("hdr_");
898 obj_name.append(it.base_name);
899
900 ostringstream img_dir;
901 if (hdrhtml_set->image_dir != NULL)
902 img_dir << hdrhtml_set->image_dir << "/";
903
904 ReplacePattern replace_list[] = {
905 ReplacePattern("hdr_img_width", it.width),
906 ReplacePattern("hdr_img_height", it.height),
907 ReplacePattern("img_dir", img_dir.str()),
908 ReplacePattern("hist_width", it.hist_width),
909 ReplacePattern("base_name", it.base_name),
910 ReplacePattern("help_mark_pos", it.hist_width - 12),
911 ReplacePattern("hdr_img_object", obj_name),
912 ReplacePattern("version", hdrhtml_version),
913 ReplacePattern()};
914
915 try {
916 create_from_template(out, hdrhtml_set->image_template, replace_list);
917 } catch (pfs::Exception &e) {
918 throw;
919 }
920}
921
922void print_image_htmlcode(ostream &out, void *user_data,
923 const char *parameter) {

Callers 1

generate_webpageMethod · 0.85

Calls 6

ReplacePatternClass · 0.85
create_from_templateFunction · 0.85
ExceptionClass · 0.85
appendMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected